Friday, April 22, 2011

Decent Code

Retrospecting the posts labled Decent Code I see many good points worth memorizing.



Do you have an API? - the basic question before coding!

Do you have a theory? - the basic question before debugging!


Be proud of your code! - a simple advice, yet powerful, for code reviews

The risks of redundant code (or - Less is More) - another powerful advice for code reviews

Use Explaining Variables! - and another one for code reviews (I should consider a label for code reviews probably)


Resource Files - this is obvious for anybody today, yet ignored too often...

Freaking behavior of a small little C/C++ bug - avoid the non-void not returning a value!

Semi-colon and java.lang.OutOfMemoryError - the methodic way of analyzing OOM in Java programs


and many more...


like for example...

Make sure to have a strict XSD!

or To AJAX or NOT to AJAX? - important to many web developers today which neglect the request-response model for AJAX idol, in many cases for no good reason.


and still, many more...