I find a couple of things about my coding. (Heh, tekky...I'll waste some, don't you know...)
My coding is in a continual state of metamorphosis. I don't know when I will deem that I have "arrived". Probably I'll have to sit down and write my own stylebook, and then beat myself up if I don't use it.
One example: as I've gained more experience, I went from:
echo "<tr>\n<td>\n<font color=red>$foo is the bar variable!</td>\n</tr>\n</br>\n</font>";
to
<tr>
<td>
<font color=red><?=$foo; ?> is the bar variable!</font>
</td>
</tr>
and now I tend to just open the echo() and run the quote over as many lines as necessary to get the formatting right. The HTML is better looking that way.
For comments:
//single line comment, usually ... then there's
################################
# #
# DALECOSP'S BIG COOL SCRIPT #
# some instructions here #
################################
And / ... / is either for debugging or setting off quotes from "describe <tablename>" in MySQL ...
while(), but never do(). Often use for and foreach. Never return a value when an array can be returned instead. Closing brackets line up with their "if" or their "else"....
And lately I'm doing this crazy "No HTML functional programming" stuff where I've written functions for all my HTML, so it kinda looks like big blocks of FORTRAN :rolleyes:
I'll never grow up, I suppose....