User Tools

Site Tools


principles:don_t_repeat_yourself

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
principles:don_t_repeat_yourself [2013-09-06 13:56]
christian [Strategies] common bas class
principles:don_t_repeat_yourself [2015-06-26 15:45]
207.107.205.22 [Strategies]
Line 28: Line 28:
  
   * Add a new invokable module (a function, a method, a class, etc.) instead of duplicating code   * Add a new invokable module (a function, a method, a class, etc.) instead of duplicating code
-  * Factor out a common ​bas class+  * Factor out a common ​base class
   * Use code generation when information has to be represented in multiple forms   * Use code generation when information has to be represented in multiple forms
   * Use polymorphism to avoid repeatedly enumerating a set of possible solutions in if or switch statements   * Use polymorphism to avoid repeatedly enumerating a set of possible solutions in if or switch statements
principles/don_t_repeat_yourself.txt · Last modified: 2015-06-26 15:45 by 207.107.205.22