Re: PHP Standard style of writing your code
| From: | Rafael | Date: | Sat, 29 Apr 2006 07:00:02 +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-235067@lists.php.net to get a copy of this message | ||
It's kind of ironic that you didn't split that big chunk of text into paragraphs, don't you think? ;)
Anyway, yes, I was referring to visual space, we all know that is more clear the more you can see the code, that's why we don't let rows go insinely long (well, wide actually), and that also applies for the "vertical viewport" (rows also, not only columns) That's why *I* find it a waste of (vertical) space.
But, as we all know also, coding style is just that, a style, yet another matter of taste --of course, there are some basics that should always be present for the sake of clarity (such as indentation, comments, and an empty line here and there as logic-separator), or that's what I think, anyway --let's not discuss about this, wi'l ya?
Paul Novitski wrote:
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~ P. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mxIMHO, vertical aligned brackets can be messy when nestingrelatively-small blocks (and seems to me like a lot of wasted space)