On Thursday, April 11, 2002, at 02:13 PM, Analysis & Solutions wrote:
> Uch! Uch! Uch! I don't like their nesting ideas: > if (condition) // Comment > { > } > else // Comment > { > } Neither do I -- that doesn't look too easy to read, to me. > This is the standard I learned and find easier to read: > if (condition) { > # Comment > } else { > # Comment > } Say, that looks like my code! > > In essence, you'll find that tastes vary. > Exactly. I haven't actually read their style guide, I just saw it mentioned somewhere recently and it's the only PHP style guide I've ever heard of, so I figured I'd pass it on. The truth is that tastes vary, and unless everyone starts using Python (whose syntax I really like, though it was hard to get used to seeing "naked" variable names [no buck]), there will always be differences. To the original poster: One thing I've found, and have found is harder to achieve than it seems, is that the most important thing is to be consistent with your own style. But as I've learned more and more about programming over the past few months, my style has definitely changed -- even within this same project! I try to keep it consistent but I learn all kinds of new code-organizing techniques (like OOP), so it's not that easy. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php