Hi Christopher: On Wed, Apr 10, 2002 at 05:27:18PM -0400, Christopher J. Crane wrote:
> Ok time out...the problem was simple I had each of the functions one it's > own line because it was simple to see. When I add code to the functions then > I do make it as indicated and easier to read. The problem was that I did not > realize the 80 character columns width. I apologize but did not think it was > everyone's job to critisize. I appreciate the help, I really do. I will be > sure to keep the 80 character width issue in mind when posting. It's not really about 80 chars. It's about readable code. Nesting of appropriate items makes it easier to quickly understand the logic of your program. Such items include: if, for, while, function, switch, classes, etc. In essence, any structure that has a start and an end. This is a standardized practice among programmers. It's become standardized for one reason: it's easier to read. Check out these examples and you tell me which you can grasp more quickly? Example One: if ($Easy == 'no') {echo 'why do you need to struggle?'; echo 'more stuff that you need to decipher'; echo 'Hmm... did that if end already?;} echo 'Or is it still processing if $Easy = no?'; Example Two: if ($Easy == 'yes') { echo 'why do you need to struggle?'; echo 'more stuff that you need to decipher'; echo 'Hmm... did that if end already?; } echo 'Why, yes it did!'; Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php