|
Posted by Hero Wanders on 08/24/05 05:58
Hello!
>>>if ($poo<>$poo)
>>>{
>>>php code
>>>}
>>>
>>>Each to their own .
>>
>>
>>You'll find that proper indentation is almost universal amongst
>>programmers. There's a very good reason for that, having to do with
>>being able to read, debug, and maintain large code sections.
>
> And if all the other programmers put their hand in the fire you would
> want me to do the same would you ? :-)
He mentioned the reasons of proper indentation:
- makes the code more easy readable and debuggable
(as the programmer crawls through it while debugging)
- makes large code section more easy to maintain
(because the code is also visibly structured)
Furthermore (already mentioned in another post) you are writing a free
software with a free programming language and the former is perhaps
intended to be distributed also among other developers (in the future).
These developers expect to find code that meets at least very basic
standards; proper indentation is one of these standards.
It is the same with communicating in real life. You adhere certain
conventions while communicating verbally, for example pronounciation and
breaks. Talking very fastly and without any pauses would only confuse
the most people and after a while they probably would refuse to "talk"
with you anymore (after clarifying their problems with your way of
communicating, that's what we currently do in this sub-thread).
You see the paralleles?
Coding conventions should not be adhered to because many programmer do
but because they are quite useful to communicate information to other
programmers.
Greetings,
Hero
P.S.: You are not consequent with the spaces before punctuation
characters. In many languages (french is an exception) any space before
such a character is "improper". Furthermore this may lead to weird
breaks with the punctuation character as the first character in the new
line.
Navigation:
[Reply to this message]
|