mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Added Don't repeat yourself (DRY) principle to recommendations in HACKING.
This commit is contained in:
parent
12a685dff1
commit
2fb2cdda10
1 changed files with 4 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue