Thursday, July 12, 2007

A Foolish Consistency is the Hobgoblin of Little Minds

don't get be scared by title of this blog. actually i got this from python documentation about program styles.

Two good reasons to break a particular rule:
(1) When applying the rule would make the code less readable, even for someone who is used to reading code that follows the rules.

(2) To be consistent with surrounding code that also breaks it (maybe for historic reasons) -- although this is also an opportunity to clean up someone else's mess (in true XP style).


from Guido...bdfl.
.

No comments: