Do not make code COMPLEX!!

Do not make code COMPLEX!!

I have been working in maintaining legacy code since I started my career. From my experience don't even try to show your briliance in making the code unnecessarily short. It may not worth doing. If you ever encounter a complex piece of code in a production line, do not hesitate to abolish it and write it bottom-up. Trust me that project lasts long. Let the compiler optimiser do the optimisation and write maintainable code. I personally never resort to tricks or gimmicks in the code. Declare the variable when necessary even though your compiler can do the casting. 

Ultimately simplicity wins. Brings money.

"Premature optimization is the root of all evil "-- Donald Knuth

To view or add a comment, sign in

More articles by Peter Abraham

  • C++ Reactive Programming

    Reactive programming is a buzz word in the modern programming fraternity at present times. Programming community always…

    16 Comments
  • How to Learn a new Programming language

    How many programming languages one should learn is always a topic of discussion. This post is my perspective on how to…

    2 Comments

Explore content categories