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

How to Get What You Want in 2017

It is almost 2017 and time to start thinking about those New Year’s resolutions but the problem with New Year’s resolutions is that so few people actually achieve them. Why is this and what can you do to make sure you actually get what you want in 2017?

1. Write Down Your New Year’s Resolutions and Set SMART goals

The first step towards achieving what you want is to actually write it down and turn resolutions into goals. An unwritten resolution is quickly forgotten and unless you have some written, specific goals chances are you are just going to be wandering. SMART goals are specific, measurable, attainable, realistic and time-bound. In other words, say exactly what you want to achieve, by when and have ways of measuring how you are getting along. 2. Develop Habits and Consistency

Another problem that often occurs with New Year’s resolutions is that people do not form habits and develop consistency in those actions that are going to get them there. For instance, if you want to lose weight, it needs to become a habit to exercise and eat healthy foods. They say it takes 21 days to develop a habit but it is actually better to consistently stick to it for 63 days to ensure that the habit is well entrenched into your lifestyle before taking any breaks. Not all habits need to be done every day but you do need to be consistent in doing those things that will get you towards your goal.

3. Track and Measure

Set smaller goals and ways of measuring how you are making progress towards your major goal and then track these. Start by tracking those habits that it will take to get you there – how many times have you exercised this week for example. As you are tracking you will see how even the small steps count and will be more motivated to keep moving towards your major goal.

4. Stay Positive

Your mindset has a huge role to play in whether you are going to achieve your goals or not. Always try to remain positive and think positively. Focus on what it is you want but don’t beat yourself up over setbacks or slip ups, you will get times where things don’t go perfectly or you may have a setback but just keep going and you will get there.

Instead of just setting some New Year’s Resolutions for this next year why not turn them into actionable goals, develop habits that will help you achieve them and track these consistently. Keep positive and all the best for achieving whatever it is you want to achieve in 2017.

Posted in Uncategorized | Comments Off on How to Get What You Want in 2017

Economic Cycles, Stock Market Crashes and the Scary Scenarios

Here we are ready to inaugurate a new president in 2017 and our stock markets are at all-time highs after a huge ‘Trump Bounce’ after the election. Many that study stock market history admit that we are in a need for a pull back as the DOW is almost ready to break 20,000 pts. What does all this mean?

Well, many analysts are suggesting it is very possible we could get a market correction in mid to late 2017 and that it could be 10-20% by the time it is done, the longer this nonsense goes on, and the bigger the bubble builds then the bigger the drop, we are over bought, almost everywhere. Then all that money printed that ended up inflating emerging markets will look for safe haven, coming back here in the short term. As those go one-by-one, that money flies out, because the money is looking for the nicest looking house (for now) in a majorly bad neighborhood, look at the EU, Japan, Middle East, India, and who knows what the hell China’s real numbers are, they have one thing going for them, they own our debt – but that might not be worth much if things go on. All that money coming back to safe haven in the US will cause inflation here, but at what cost?

Cheap loans, another bubble burst and look at the Student Loan issues 35% in default (past 90-days) and cheap car loans is only producing higher repo rates which are hidden by increased sales figures. It’s all lipstick on a big pig, socialism doesn’t work and you can’t have utopia unless you build it, and that takes capitalism which we are crushing into next week for the falsehood of cronyism. But I digress.

If we don’t get a back pedal on the stock market soon, it will all come at once, and 2008 was 8-years ago remember? That wasn’t a recovery that I’d be bragging about – basically we’ve increased regulations, size of government, and cut our military – all very stupid things to do in the present period. We are digging a hole, and I assume when if it starts to fall apart the left will blame capitalism and get their people back into power – and they will just make things worse – this seems to be a repeating problem with humanity doesn’t it? That is what socialists always attempt to do, but it all collapses anyway – Venezuela, Argentina, Greece, Spain, Italy, Portugal, Zimbabwe, hell, how about that Arab Spring a few years ago, still in shambles – Libya, Egypt, Tunisia, Syria, Yemen, who’s next? Jordan, Turkey, Saudi Arabia? Civil unrest, food shortages, people will demand what was promised and take down their governments to get what’s left. Beware the socialist mobs. But I keep digressing.

Posted in Uncategorized | Comments Off on Economic Cycles, Stock Market Crashes and the Scary Scenarios

4 Content Marketing Trends for Business Owners

As we approach 2017, it’s interesting to think about where we’re headed in the coming year when it comes to marketing our business.

All business owners want to stay on top of their game by being prepared for what’s ahead but in today’s fast-changing world, what does that look like?

Below are some content marketing trends you’ll want to prepare for when marketing your business in the coming year:

1) Incorporate More Social Media Graphics, Infographics, Visuals and Videos. Since your followers are 80 percent more likely to read your content if you use coloured visuals, this area needs to be built up more across your social media channels.

The popularity of visual content will only increase, so you must be prepared. Using Facebook live is still a hot commodity so be sure to dive into that opportunity too!

2) Build a Team. 60 percent of marketers in one survey said content creation was their biggest challenge last year.

To overcome this obstacle, get a team of people to help make content development and publishing easy. This includes having a good writer and social media specialist.
3) Tap Into Influencers. 90% of consumers trust peer recommendations where only 33% trust ads.

Consumers have begun to tune out traditional ads and increasingly connect to their social networks to guide their buying decisions. That’s why connecting with influencers is so important.

What is an influencer? “Influencers are people with significant networks (followers, readers, etc.) who can speak to a broad range of products and services with the ability to sway opinions in their favor.” – Jess Estrada.

Identify influencers to reach out to in your industry. Follow them on social media and see where you can strike up a conversation.

4) Drive Content Marketing Leads into a Funnel. High value content is one thing, but if you don’t build in a strategy that continues building rapport with prospects in the right way, you are leaving money on the table.

Content Marketing is a highly effective way to segment your audience and send them targeted follow-ups and offers, instead of adding them to your main email list.

Creating an Effective Content Marketing Plan for 2017

One of the biggest mistakes I have seen businesses make is they jump into content marketing without a strategy. While trying to appeal to their target market, they slap together a couple of eBooks and free offerings and hope it will be enough to drive sales.

The first step to making content marketing really work for you is to have a solid, smart content marketing plan in place.

Make sure you outline the following essentials in your content marketing plan:

Understand Who You Are Marketing to. Before starting any kind of marketing strategy, it’s vital you understand who your ideal target market is. There’s no point in investing your time and money into marketing when you don’t have a clear understanding of who you want to buy from you.

A Comprehensive Review of Past Efforts. Review your past content marketing efforts and results from 2016. This helps you to see what was most effective, what wasn’t, and develop a plan to improve for next year.

Set Goals and Benchmarks to Determine Future Campaign Success. Having a clear understanding of what you want to accomplish and what that will look like is important.

Develop Content Ideas that Align with Sales Goals. Here’s some example sales goals:

o Boost sales of Mega Fit Bootcamp by 25%.

o Get 50 new leads a month into our sales funnel.

o Create an eBook on Sales Tips for People Who Hate to Sell to drive leads to the funnel.

Plan a Content Marketing Calendar with Dates and Deadlines. Create an editorial calendar that clearly lays out your dates and deadlines so you can easily prioritize your efforts. This eliminates the “what do I write” problem.

It also makes it much easier to work ahead on content and delegate to team members.

I hope you’d enjoyed these highlights, stats, and facts to help you prepare for content marketing in the coming year.

I’m curious: What changes do you plan to make to your social media strategy in 2017?

Posted in Uncategorized | Comments Off on 4 Content Marketing Trends for Business Owners

The Future of Android Games, Virtual Reality & Augmented Reality

Mobile gaming has come a very long way since the introduction of crude & simple games like Snake and Pong which were available on early Nokia phones. Mobile processors and graphics are now as powerful as desktop computers were just a few years ago. Older generations still remember lugging around a Game Boy or Game gear and begging their parents for another game. New generations literally have access to 100’s of thousands of games on their mobile device.

In short, mobile gaming has exploded in just a few years time. In the month of July 2016 there were 63.1 million arcade games downloaded & games in the “strategy” category generated $195M revenue. In a recent study over 37% of mobile app users with 30 minutes of free time choose to play games over any other activity. We’ve all seen it and we’ve all done it ourselves, whether its waiting for an appointment or sitting at the airport, we pull out our mobile device and jump into a quick game to kill the time.

So what does all of this mean for the future of android gaming? For starters, the massive amounts of revenue and user interest in android gaming has bolstered continuous innovation and fierce competition in the global marketplace. For example, just 12 months ago, top executives were saying they didn’t see any major benefit to augmented reality. With the release of Pokemon Go and estimates citing as much as $500 million in revenue in just 60 days, I think we can all agree augmented reality is here to stay. Virtual reality is another area that has been picking up steam in recent months. You can now buy virtual reality headsets at local gas stations for a mere $30. Or if you’re on a budget you can purchase Google Cardboard for as little as $7.00. There are still only a limited number of VR enabled games but that number is increasing daily. Not only that, as more and more people experience VR we are sure to see a blockbuster release sooner or later.

Let’s take a look at some real life examples of recent game releases. Dawn of Titans which was recently released on Google Play was in development for over 2 years. This is akin to the development cycle of a mid-level PC game release on Steam. The game features mass controlled troops, world building elements and impressive graphics. A few years ago this would be considered a major release for the Android platform. These days this is just another drop in the massive pond. With over 2.4 million apps and games currently listed on Google Play it’s become harder and harder to stand out. This is actually good news for gamers as developers are working harder and faster to create new innovative titles to attract users.

I firmly believe that both Virtual Reality (VR) and Augmented Reality (AR) titles are going to gain more traction in 2017. Major developers who can pump out triple A content can’t be left in the dust while indie developers pump out AR and VR enabled games. They will be forced to port existing titles and come up exciting new ways to interact with the mobile devices.

There are many gimmicky games available that utilize the phones microphone, gyroscope, camera and accelerometer. However, these sensors combined with AR and VR could bring a whole new experience to gamers. Imagine walking through a recreated 3D world that represents your neighbourhood, immersed in full virtual reality, and using your phone as a targeting device to defend against waves of zombies. This is already possible with the technology that is available, it just needs to be packaged in a user friendly way that people can enjoy. Combining meticulous graphics with well thought out virtual reality experiences would be impressive indeed. If you’re familiar with PC based virtual reality demo’s you already know how immersive the experience can be. It’s only a matter of time before these same experiences make their way to our mobile devices en masse. And to think, only 30 years ago we were playing Mario on our beloved Nintendo consoles. Let’s not even mention the Virtual Boy that burned your eyes after 2 minutes of playing tennis. Android games and mobile games in general have come a long ways since then and they will continue to push barriers even further in the near future.

Posted in Uncategorized | Comments Off on The Future of Android Games, Virtual Reality & Augmented Reality