Exceptional coding style

Artur Skawina art.08.09 at gmail.com
Thu Jan 17 21:40:48 PST 2013


On 01/18/13 02:59, Walter Bright wrote:
> On 1/14/2013 3:19 PM, Timon Gehr wrote:
>> It is funny how statements about beauty of code tend to overemphasize the
>> importance of trivial formatting rules. This is completely irrational.
>> Formatting is a part of the process that could be trivially automated. It is not
>> what the substance is.
> 
> Pedantically, you are correct.
> 
> But in practice, I find over and over again that carefully formatted code tends to go hand in hand with well designed code.
> 
> It's like internet postings. If you see a posting in ALL CAPS, or all lower case, or sloppy grammar/spelling, or long runon sentences, or no paragraph breaks, etc., it's almost certainly devoid of interesting content. If you see an electronics board with a rat's nest of wires and sloppy construction, odds are high it won't work. If you see a neatly laid out board, odds are it works.
> 
> And so on for just about every engineering/construction work.

This is one of the reasons why automatic code formatting is such a bad idea.

artur


More information about the Digitalmars-d mailing list