Tag Archives: good code

Write readable code!!!

10 Mar

WARNING.

This issue is personal.

Evil programmers we know all know them and have worked with them at one point or another, the write code using a mixture of unicorn tears, penguin fur and carbon dioxide, making sure that they contribute towards making the world a more hostile and less sustainable place to live in.

They by virtue of being quite intelligent usually spend time observing, studying and writing brilliant pieces of code that no one can read. Learning every single nuance and obscure syntax that 90% of other coders will not be able to read and will take hours or days to decipher. They merge variables, arrays, functions, structures and classes into one big mess.

A good approach to writing readable code would be to use the KISS (Keep it Simple Stupid) approach, write it like the guy who will read it after you is the Batman. Take a extra line, use a few white spaces, try some whitespaces for a change. Just make the damn thing legible.

Commenting is another good approach to take.

Please, Please, Please write something everyone can read.