Ten Commandments for Wunder Code
25 August 2013
During my time at 6Wunderkinder I did my first reviews of real world code. Shortly I noticed that I wrote the same comments over and over again. Consequently I compiled of a list of things which I deemed important and pinned it on our office door:
The 6W #Developer 10 Code Commandments. We're looking for JS & Rails Devs! Come join the family :) http://t.co/knXiBKz8 pic.twitter.com/ymrmBtVf
— 6Wunderkinder (@6Wunderkinder) March 29, 2012
I still stand to this list and update it over time. You might think all these items are no-brainers and do not need to be said. Well, most of the things I still see every single day :-)
Ten Commandments for Wunder Code
- Write as little code as possible.
- Understand every line of code you write.
- Be able to run every function in your head.
- Optimize your code for reading.
- Keep related code in close proximity if possible.
- Avoid redundant/repetitive code. Use descriptive variable names.
- Obey spelling in variable names and comments.
- Obey whitespaces and newlines.
- Delete code instead of commenting.
- Cleanup dirty code as you spot it.
blog comments powered by Disqus