devexp DEVelopment EXPerience, shared with the world!

22Apr/090

Comments to the max

I was wondering around on the big wide scary web and saw a lot of badly written comment for code so I thought it shouldn't be bad to give a little overview on how comment should be written, at least how I think it should be written.

Not all comments can be written in the same way and not all comments can be read by other programs but I personally think the Java comment is the most readable one, and (huge advantage) can be read by the Javadoc processor. When writing in PHP this is done in the same way as PHPDoc is an adaptation of Javadoc.

So write your comment like this:


/**
 * This is a basic description of your method,
 * write down here what the function does in general
 *
 *@param integer $id
 *@return array Array of objects
 *@author Kenneth van Rumste
 */
18Mar/090

Complexity in webdesign

office-toiletEver heard of 'less is more'? This is, more than ever, a standard that every developer should follow while designing his new website. Why the f* would I start talking about that, you can ask yourself. Well, the answer is quite simple, as I was going to the toilet earlier this day and was in deep thoughts with the question: why isn't everything designed and created as simple as a toilet room?

This is one of the only rooms and spaces in the world where you only find exactly what you need for the job and nothing else. No rubbish, no extra stupid information, just 3 simple things: a toilet, toilet paper and a little sink to wash your hands. These 3 things can easily be compared to 3 actions: brew, act, finish.