The "Evil" code style is a sort of "mental discipline" which tries to make me remember the semicolons, commas, brackets and parens. :-)
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 |