Thursday, May 3, 2012

Modularity.. the beauty of coding

Whether you write a novel or write a news item, you intend to write in such a manner or a style so that the reader appreciates the content. The same applies to when you program. Imagine you are solving a problem which involves few different states for a particular variable and depending on the state, certain actions need to be performed. If you tackle the problem by coding a lot of if-else constructs with lot of functionality stuck in all those if-else sections, its going to be a nightmare to the reader and the maintainer.  Life gives us opportunities always to improve ourselves. It teaches us to be more effective, more efficient day in and day out. The same principle applies to programming as well. Luckily, in programming you can go back to the source code and modify it by modularizing it and make it look beautiful and efficient at the same time. In life, you cannot time travel, but still Life allows you to face the same situation and now it is in your hand to solve it with beautiful efficiency.   One of the effective means in coding is modularity. Modularity enables to keep meaningful chunk of code together. The next time, you find yourself seeing some piece of code running through many pages, break it into modules. You will get peace of mind. You might see the beauty. If you are interested, you may browse through the following link which contains collections of facts every programmer should know in the following link:

Monday, April 30, 2012

Reality Shows

Generally, we tend to be in a state of easiness. We feel that one day, we can do something about it. One needs to be aware of the reality that surrounds us. Life does not contain scenes from the movies which we watch. If Will Smith acts in a certain way in 'The Pursuit of Happyness', it may inspire you for a while. You may even start day-dreaming unconsciously surrounding yourself with castles in air about various scenes in your life and pat yourself on your back. All these visualizations shatter into pieces of glass when reality strikes at you. Reality shows its true self. It makes you aware. It shows the mirror of your thoughts, fantasies, possibilities. It makes you look into the truthness of the series of awesomely stitched events. Sometimes it makes you laugh, as if it was all a joke. Sometimes you feel like going to the ancient times of the sages and become one of them. Sometimes you feel like 'Can I get an eraser to rub everything that is written till now and start writing afresh?'

P.S: the above sequence of words were created using editor provided by Nothing needs to be coincidental with the life of anyone.