The Artistic Way of Programming

12 years back, when I started my formal classes in computer science, the first thing I learnt was “data” means “information”. A few days after that, we started conventional programming, where code and data were treated separately. For example, only data can be passed as the functional arguments. It was difficult for me to digest that “code, which is also information, is not treated as data”. I strongly felt that this will increase complexity of softwares in the long run.

A system does three things – read, transform (processing data), write. In other words – the mathematics (the transform part), and the effect of that in real life (the read/write part). The data transformation is indeed a mathematical concept, and with the help of read and write we make the mathematics (the transform part) useful to the real world. Bringing the “transform” part fully inside mathematical domain has its own benefit of using mathematics without fear (possible errors) for the analysis of the system, making the system more tractable mathematically. The catch is to treat both the elements of transformations, data and functions, equally.

Initially, code used to be bigger than the data, so sending data over the wire was feasible. But with time, data becoming huge, sending code to systems over the wire becomes the need, resting the data on the systems intact. With big data, the need of the hour is to treat the code as data, so that the code can be taken as argument to another meta function on a system having huge data which expects an algorithm for transformations.

Roughly speaking, codes are algorithms, algorithms are mathematical functions, functions are in turn actually look-up tables, i.e. data. Hence with this principle, all codes or functions are data.This is exactly the cornerstone of the functional paradigm. The functional programming is programming with functions, they treat functions and data likewise. Another principle I love, to control complexity, rules should not be complex itself.

Thumb rules rewritten for the functional paradigm:

Read-write and transformations(algorithms) should be separate.
Use immutable variables. Discourage use of reassignment statements.
Discourage side-effects (input/output or changing any variable in-place), every function should ONLY return its expected result.
Use referentially transparent functions (sometimes it is called pure functions) with no side effects, i.e. if x = y, f(x) and f(y) should be same forever.
Unit testing is a must for each function.
One of the main design patterns should be followed is to use expressions instead of instructions, i.e. it should be declarative in nature. Discourage use of loops like for/while – use recursive statements as shown above to calculate sum. Tell computers what needs to be done, not how to do it – it reduces error, especially edge cases.
With the need to control the complexity of the system and the advance design, the design pattern for the functional composition can be made to follow some basic algebraic structures, which in turn becomes more robust.

Posted in Uncategorized | Comments Off on The Artistic Way of Programming

Stay Healthy and Wealthy

When you make those New Year’s resolutions, you’re thinking about fresh starts and the year ahead. What you might not realize is that some resolutions also could save money. Here are some popular resolutions that could help get you and your finances in shape in 2017.

Quit smoking: You can save money by stopping a pack-a-day habit, which can cost between $1,825 and $3,650 per year, depending on the cost of cigarettes in your area. Nationally, a pack-a-day smoker is going to spend an average of $2,000 annually on cigarette costs.

Set up and stick to a realistic budget: If you want to resolve to stick to a budget in 2017, you must start with a realistic plan. People tend to make financial resolutions the same way they do a weight loss plan. If you start with lofty goals they will be unachievable within a month. List your priorities for spending rather than restricting your spending. Focus on necessary expenses then include a certain amount for retirement savings. Then with the remaining money you have each month, set aside a little for enjoyment. It’s critical you have rewards in your budget.

Exercise regularly: You’ll save money in several ways with regular exercise. On average, Americans are spending $7,800 annually on health care, according to the National Association of Health Underwriters. But exercise brings real savings. “If people are eating right and exercising three times a week for 20 minutes a day, they see prescription costs decrease by 70 percent and medical costs decrease by 30 percent,” says Ric Edelman of Edelman Financial Services. Stop spending money recklessly: One of the best ways to stop spending your money recklessly is to track where it is going each month. Check with your credit union and download their free mobile budgeting app that shows expenditures by category so you can monitor your spending. A great way to get your spending under control is quit trying to “keep up with the Joneses”. If you want to fix your bad spending habits in 2017 start hanging out with other spendthrifts because you will likely become one yourself.

Eat healthier: A healthy eating plan can be as — or more — economical than fast food. It’s a total myth that eating healthy is expensive. Buy smaller but leaner cuts of meat, eat protein-rich beans and buy produce in season when it’s freshest and least expensive. A smaller amount of a leaner cut can slice your food bill and your bad cholesterol.

Build an emergency fund: Nothing takes the stress out of financial situation like spare cash. If you are among the millions of Americans that don’t have enough money set aside to cover unexpected expenses or emergencies, then you should resolve to build one in 2017. Experts recommend putting enough money in a savings account to cover six months’ worth of expenses in case of unexpected emergencies like job loss, maternity leave or medical issues. You can always apply a small amount of your paycheck towards this account, so you make sure it is hidden from you.

Pay off high-interest debt: Paying down credit card debt is one of the most popular short-term goals in 2017. Try focusing on paying off your high-interest credit card debt before other debts because it is more expensive. And, it you are motivated by seeing those results first hand, start by paying off your card with the lowest balance first so you can feel that sense of accomplishment. Create your estate plan: An important 2017 resolution would be to tie up any financial loose ends for your loved ones so they aren’t left trying to pick up the pieces. Make sure you have a will or trust that designates who’s in control of your assets. You certainly don’t want the state court system to make that decision for you. Don’t forget to designate a guardian for your children, and someone who will make financial and healthcare decisions for you if you are unable to do so.

Develop common financial goals with your partner: Many times finances are the biggest source of conflict between couples. It’s important that couples sit down and create a financial plan. It doesn’t usually work to try and manage their finances separately.

Any of these resolutions can help improve your financial security in 2017. I suggest tackling one financial tip each month so you don’t get overwhelmed. Then as you get accustomed to the new approach to spending and saving, add another. By the time 2017 starts dwindling toward 2018, you will find you’ve made progress on achieving your financial goals.

Posted in Uncategorized | Comments Off on Stay Healthy and Wealthy

3 Content Marketing Trends to Watch

“Content marketing is a success defining element for today’s businesses. Better the content marketing better is the business.”

Content marketing in a right way can give your business a right exposure. In this fast paced world of internet, you cannot neglect it, otherwise your business might extinguish in the end. You have to pay equal attention to content creation and promotion.

With each passing day, we see new trends emerging in almost every aspect of online marketing. Content marketing is no different. From Facebook, Twitter to Snapchat, new platforms are being emerged, promising to deliver better value for content marketing.

To stay competitive, companies have to stay updated with the emerging trends. That’s why today I aim to shed light on major trends that you should watch closely in 2017.

Content Marketing Through Videos

Video is visual description of your story.

Being in trend from quite some time, videos will continue to lead the content marketing in 2017. The effectiveness of videos is obvious as indicated by the following statistics on HubSpot.com.

  • Videos increase click-through rate by 200-300%
  • Videos increase conversion by 80%
  • 64% of customers make buying decisions after watching the video
  • YouTube reports 100% increase in mobile video views every year.

No doubt, marketing through videos is really effective but that does not mean you start doing it haphazardly. You should do strategic video marketing to squeeze maximum juice out of it. Make purposeful videos and align with your long-term strategy. Through videos, you can:

  • Deliver your brand message
  • Communicate your brand story
  • Explain your value proposition
  • Build relations with your customers and prospects.

However, you also need to be careful while creating videos. A boring video or a video that does not have any value for customers will go in vain.

Keep following do’s and don’ts in mind:

Do’s:

  • Videos should be purposeful and carry value for your customers.
  • Videos should be attention grabbing.
  • Videos should be bit emotional or sentimental.

Don’ts:

  • Videos should not be too long or too short
  • Videos should not be boring
  • Videos should not be offensive by any mean.

So heads up for 2017 and aim to interact and convert your customers through strategic video marketing.

Content Marketing Through Snapchat

As reported on Bloomberg, every month Snapchat gets about 10 billion views and 100 million active users. Imagine the wider audience you can reach by using Snapchat.

Snapchat is on scene since 2012. Earlier, it was considered mainly as a sexting app. But with the passage of time, Snapchat added features that make it a really attractive marketing medium for businesses. 2017 is expected to see exponential growth in Snapchat use for content marketing.

Snapchat allows 10 second snapshots. That means nothing useless, only the message that you really want to convey. Not only it is highly engaging, it also allows easy interaction with customers. Through a 10-second snapshot, you can

  • Introduce your business
  • Convey your inspiring story
  • Create a teaser
  • Offer a discount or promotion
  • Find the talent
  • Promote your product

And the options are unlimited.

So keep your fingers crossed in 2017 to explore thousands of ways you can use Snapchat to reach a wider audience.

Use Data-Backed Content

Whatever medium you are using for content marketing, make sure that the content you are marketing is valuable. It should be informative, educative and interesting. Back it with important statistics, facts and figures to build a high level of trust with your audience. Include case studies, expert opinions and empirical evidences to support your information.

So keep these points in mind while you are planning a content marketing strategy for 2017. Focus on these areas and you will have a brilliant year ahead.

Best of Luck!

Posted in Uncategorized | Comments Off on 3 Content Marketing Trends to Watch

Caribbean Travel – Why Visit ?

Barbados is a beautiful tropical island, with plenty of cultures around to satisfy all kinds of travelers. The location is so beautiful that you will instantly fall in love with it. The turquoise waters of the Caribbean, the budding Port of Bridgetown, secluded quaint and beaches, British communities with past times ranging from mid-afternoon tea sessions up to the on-going games of cricket. But apart from this, many travelers want to know what are some of the other things which one can enjoy at this beautiful location. Here are some reasons why I feel Barbados is the best place to spend a quality vacation.

The Turquoise Beaches There is no doubt in this fact that Barbados is home to some of the most amazing beaches in the world. As an island, this location is surrounded by water and has the most fascinating beaches in the world, which is it’s most loved attraction. It is something that must be experienced by all as there is something for everyone. Those who love to surf can head to the East Coast of the island, and those who want to relax or go for a swim can head to the South and West coast beaches.

The Food Is Delicious

Barbados has earned the title of “culinary capital of the Caribbean”, and it has earned it rightfully. This place is a heaven for food lovers, from street food to fine dining you can experience it all here. You can stop at rum shop for ham, cheese cutters or fish cakes, or you can head to a nice restaurant enjoy best fish dishes on the island along with sidelines like macaroni pie.

The Locals Are Friendly

The locals are one of the most priced treasures of this destination. They are popular in the world as the friendliest people, who will always help in making your vacations enjoyable. They love sharing stories about the island’s culture and teaching others about how things work in their country Things To Do

You will never get bored in Barbados! There are a lot of fun activities to do here, like the ones mentioned below:

• Explore Harrisons Cave.

• Go on a boat trip to explore the island’s reefs and swim with the fishes and turtles.

• Go for safari tour, glass bottom tours and The Boat Yard.

• Make sure you also check out the nightlife.

The Weather

The weather here stays warm all year round. The temperature here is usually around 85 degrees with steady and fresh tropical breezes.

Posted in Uncategorized | Comments Off on Caribbean Travel – Why Visit ?

Unlike Last Season, Early Schedule Will Challenge Cubs In 2017

The celebration has ended, the 108 year drought is over, and baseball on Chicago’s North Side should return to normal. In other words, fans of the Cubs can go back to worrying.

Several big concerns face them as they look toward the 2017 season, in addition to the nearly impossible task of topping the World Series Championship they earned in October. No team has won the Fall Classic back to back in this century, although a much shorter span than the Cubs endured between titles.

That trip to the World Series was made easier by the early schedule, an arrangement the Cubs will not enjoy next April. Chicago did not play a winning team until April 18 against the Cardinals, which was their fifth series of the season. The Cubs did not play another winning team until May 2, when they played the Pirates. Spending the first month against the likes of Cincinnati, Arizona, Atlanta, and Milwaukee would provide nearly any team with the confidence needed to carry them through the most important stretch of the season. To emphasize just how important a hot start is, examine the National League from last season.

All four of the teams who reached the Division Series posted winning percentages over.700 during the first week of 2016, led by the Cubs and Nationals winning eight of their first nine games. The Giants were victorious in six of their first eight, and the Dodgers won seven of their first ten.

The advantage of opening against non-contenders will not be available to the Cubs in 2017, when the early part of their schedule features matchups against the only two teams that had winning records against Chicago last year. They open in St. Louis on April 2nd, a Sunday night game between the two rivals that will be broadcast on national television.

What could make that initial series even more troubling for the Cubs is the strong possibility that one of their most exciting players from last year will be playing for the opposing team. Center fielder Dexter Fowler, Chicago’s spark plug at the top of the batting order, is a free agent. Many baseball writers have projected St. Louis as the most likely team to sign Fowler. After the series in St. Louis, the Cubs must play the team that nearly eliminated them in the NLCS. The Dodgers, who won both of their regular season series against the Cubs in 2016, have the opportunity to avenge their playoff loss on the opening weekend in April.

The hot start Chicago used to build momentum for their World Series run last year is far less likely to befall them in 2017, simply because of the competition. Instead of opening against last place clubs like San Diego and Cincinnati, the Cubs will be tested right out of the chute by teams expecting to be contenders.

Posted in Uncategorized | Comments Off on Unlike Last Season, Early Schedule Will Challenge Cubs In 2017