From 2fb2cdda10c35a02d26348197e0b458cd24ccee9 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Sat, 21 Jul 2007 21:40:01 +0000 Subject: [PATCH] Added Don't repeat yourself (DRY) principle to recommendations in HACKING. --- HACKING | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HACKING b/HACKING index e73162003..8693d744e 100644 --- a/HACKING +++ b/HACKING @@ -29,7 +29,10 @@ Here are the highlights: y = 2 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 range to xrange is also good. * In UI and deluge code for consistency we use notion of speed not rate.