The best way to write programs is to write a programming language and then start programming in that language.
If anybody thinks it is too much of effort and this statement is just an exaggeration, then I would like to disprove these thoughts in this post. My experience says that this sentence forms a basic philosophy needed to write good programs.
As usual wordpress is not good place to write about code! So refer to my original post here.