Added Don't repeat yourself (DRY) principle to recommendations in HACKING.

This commit is contained in:
Alex Dedul 2007-07-21 21:40:01 +00:00
parent 12a685dff1
commit 2fb2cdda10

View File

@ -30,6 +30,9 @@ Here are the highlights:
long_variable = 3
Some more recommendations:
* "Dont repeat yourself (DRY). Every distinct concept and/or piece of
data should live in one, and only one, place. Redundancy is bad.
Normalization is good." (taken straight from django's Design philosophies)
* Try to use iterators/generators where applicable. The simplest change from
range to xrange is also good.
* In UI and deluge code for consistency we use notion of speed not rate.