User talk:Jeroen De Dauw/Code style

Clarity
To enhance clarity, you might want to provide examples on the page itself rather than only linking to the PHP manual. Tisane 16:11, 21 July 2010 (UTC)

New lines
Do we really need new lines after each loop and if block, given that we already have indenting? On the other hand, I do use new lines after each method and class. I guess my concern is that if you have too many new lines, it makes it harder to read, not easier. Also, what might be examples of lines of code that are 'unrelated'? Tisane 16:14, 21 July 2010 (UTC)


 * I forgot to indicate that I meant to only add new lines around code blocks on the same level. It indeed makes no sense to have new lines when already seing the difference through indenting. An good example of making code more readible by adding spaces versus just writting it all in a big blob is function parseDMSCoordinate here. --Jeroen De Dauw 21:16, 25 July 2010 (UTC)