Well said Jeremy.
im a fan of using curly braces on their own lines i find it much more readable.
and personally i think the amount of lines is trivial.
I think in most cases i think that if you can write minimal code but still make it neat and readable is always preferd.
some of the code i have seen where i look and go wait a minute why have you got something like this:
PHP Code:
if(con1) { if(con2) { echo 'con1 and con2 are true'; } }
when just having
PHP Code:
if(con1 === TRUE && con2 === TRUE) { echo 'con1 and con2 are true'; }
etc...anywya simple things like that bug me especially when i think almost all the time its been on scripts which the coder has sold often for a bit of money.
im currently recoding a mccodes script which frankly is awful in places, mate paid 12£ for it and i refused to pay anything because i knew i would have to do so much work to it and i was right!
anyway going a bit of track here.
bottom line i think that while there are tons of materials online to teach you php i dont remember any decent ones to telll you the best and most readable ways and shall we say the grammer of coding. which is as important sometimes as the functionability.
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|