mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-04 23:53:23 +00:00
Added Don't repeat yourself (DRY) principle to recommendations in HACKING.
This commit is contained in:
parent
12a685dff1
commit
2fb2cdda10
5
HACKING
5
HACKING
@ -29,7 +29,10 @@ Here are the highlights:
|
|||||||
y = 2
|
y = 2
|
||||||
long_variable = 3
|
long_variable = 3
|
||||||
|
|
||||||
Some more recommendations:
|
Some more recommendations:
|
||||||
|
* "Don’t 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
|
* Try to use iterators/generators where applicable. The simplest change from
|
||||||
range to xrange is also good.
|
range to xrange is also good.
|
||||||
* In UI and deluge code for consistency we use notion of speed not rate.
|
* In UI and deluge code for consistency we use notion of speed not rate.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user