in reply to Re: Re: CGI::Application vs CGI::Builder
in thread CGI::Application vs CGI::Builder
It is also an attempt to improve the vertical alignment of similar elements, thus trying to *draw* vertical ideal lines enforcing the code structure not just with identation spaces, by also with meaningful characters (similar to the $ % @ & perl characters in front of identifiers).
Please, look at this simplification of code:
"Evil" style ; _________ { ____ ( ___ , __ , ___ ) ; _____ ; ___ } More conventional style _________ { ____ ( ___, __, ___ ); _____; ___; }
Looking at the "Evil" style you will have brackets and semicolons of the same block, always *drawing* a vertical line; same thing for the parens and commas in a list. This make it harder to leave some element out, while the conventional style (being far less vertical aligned), leaves me too freedom to forget something.
The only drawback is that the "Evil" style it is too unconventional to be used in the examples of my PODs :-(
Domizio Demichelis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: CGI::Application vs CGI::Builder
by herveus (Prior) on May 03, 2004 at 11:17 UTC | |
|
Re: Re: Re: Re: CGI::Application vs CGI::Builder
by BUU (Prior) on May 03, 2004 at 22:17 UTC | |
by DrHyde (Prior) on May 05, 2004 at 09:12 UTC | |
by Anonymous Monk on May 04, 2004 at 12:54 UTC | |
by BUU (Prior) on May 04, 2004 at 21:55 UTC |