User Tools

Site Tools


documentation:codingguidelines

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
documentation:codingguidelines [2013/09/05 09:48]
mhgamework removed
— (current)
Line 1: Line 1:
-====== Coding Guidelines ====== 
- 
-(Higher has more priority) 
- 
-Do not use underscores! 
-Classes: PascalCasing 
-Public: PascalCasing 
-Private: camelCasing 
- 
- 
-We are now using IoC for the wizards. This means: 
- 
-Do not use the 'new' keyword, unless you are using it within a factory class or a factory method. The only allowed usages of new are with structures and for collections. 
- 
-Use Responsibility driven design. This means that you should list each responsibility of the class above the class (documentation). There should be only one class with for each responsibility.  
-Having a responsibility means: If some other part of the system needs this responsibily, it HAS to use that single class implementing the responsibility. If this is not possible, your design is flawed.