The Wizards Wiki

Explore your world

User Tools

Site Tools


documentation:codingguidelines

Differences

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

Link to this comparison view

documentation:codingguidelines [2013/08/29 10:02] – created mhgameworkdocumentation:codingguidelines [2013/09/05 09:48] (current) – removed mhgamework
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. 
  
documentation/codingguidelines.1377770556.txt.gz · Last modified: 2024/08/26 13:57 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki