Re: PHP Standard style of writing your code

From: Date: Sat, 29 Apr 2006 06:19:49 +0000
Subject: Re: PHP Standard style of writing your code
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-235062@lists.php.net to get a copy of this message
On Sat, 2006-04-29 at 02:08, Paul Novitski wrote: > > IMHO, vertical aligned brackets can be messy when nesting > >relatively-small blocks (and seems to me like a lot of wasted space) > > I'm struggling to get my head around this concept of 'wasted space' > with regard to software code. What is it that's getting wasted, > exactly? If we printed our programs on paper it would be wasted > trees (page-space) but I almost never do this and I don't know anyone > who does except banks. It could be seen as a waste of disk space, > but only at the rate of a few bytes per code block, carriage return > plus perhaps a couple of tabs. What we must be talking about here is > a waste of visual space. How does visual space get wasted? Isn't it > possible to waste something only if it's in finite supply? I guess > it's being wasted if it's something valuable that's not being > used. However, the urge to add whitespace to spread things apart is > done with the intent of making code easier to read, so that seems > like a use, not a waste. > > OK, OK, I'll stop. Think I'll go out and get wasted~ Drink with friends... that way you have someone to brace you when you're fall down drunk. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#235062) next »