dagbladet.no— Though this site could do with some updations, it is quite well compiled for the average PHP developers to use it for standardization on applications.
Jul 3, 2005View in Crawl 4
I agree with the author on a lot of his points, but there a few that are just plain stupid... I'll let you figure out those on your own, as its worth a read nonetheless.
Using spaces for tabs is kinda lame, it should be the other way around. Always use tabs and allow people who prefer to have spaces instead set thier editor to display tabs as however many spaces they prefer.
This post is actually good and tells all about the syntax. Also liked the indentation strategy mentioned is really good, I always use the same, it really keeps the code readable. But yes I would like to use tabs instead of spaces. Coz if spaces are used to indent the code it makes really hard to move cursor through the post in fast fashion.---PHP Coding Tricks: <a class="user" href="http://codingtricks.blogspot.com">http://codingtricks.blogspot.com</a>
Despite how you feel, spaces instead of tabs, is the standard. I use Coda and TextMate - both of them handle spaces like tabs. So, when I hit the tab, I get 2-4 spaces (depending upon your settings and the standard you follow). Also, when I backspace, the text editors know to remove the correct number of spaces (usually). :)
eraserJul 4, 2005
I agree with the author on a lot of his points, but there a few that are just plain stupid... I'll let you figure out those on your own, as its worth a read nonetheless.
psyonideJul 4, 2005
I'm sorry, normally I'm not uptight about spelling and grammar, but ...Updations?
byteheadJul 4, 2005
&lt; is your friend for that. Which turns into <
waterandfoodJul 4, 2005
The most commonly coding standard in PHP (by far) is the PEAR Coding standard. See: <a class="user" href="http://pear.php.net/manual/en/standards.php">http://pear.php.net/manual/en/standards.php</a>
sysrqJul 5, 2005
Using spaces for tabs is kinda lame, it should be the other way around. Always use tabs and allow people who prefer to have spaces instead set thier editor to display tabs as however many spaces they prefer.
khu84Feb 9, 2009
This post is actually good and tells all about the syntax. Also liked the indentation strategy mentioned is really good, I always use the same, it really keeps the code readable. But yes I would like to use tabs instead of spaces. Coz if spaces are used to indent the code it makes really hard to move cursor through the post in fast fashion.---PHP Coding Tricks: <a class="user" href="http://codingtricks.blogspot.com">http://codingtricks.blogspot.com</a>
achithynMar 18, 2009
Despite how you feel, spaces instead of tabs, is the standard. I use Coda and TextMate - both of them handle spaces like tabs. So, when I hit the tab, I get 2-4 spaces (depending upon your settings and the standard you follow). Also, when I backspace, the text editors know to remove the correct number of spaces (usually). :)