#Code Convention#
-
Follow the code conventions of the language you are using.
-
Configure your IDE properly for indentation. Scribengin uses 2 spaces as an indent.
-
Give classes, methods, and variables meaningful names.
#Committing Code#
-
Before checking in code, make sure your code causes no new failures. This will require working knowledge of the state of the system and any current bugs.
-
No partial commits.
-
Always run
git status
to make sure you don't omit any resources or add anything unintentionally. -
Resolve merge conflicts intelligently and retest.
#Development Guidelines#
-
Classify and catagorize new code using different categories like util, core, service, debug, ui, etc.
-
When committing code that modifies something critical (i.e. core functionality), it is best to discuss with others on the team. There may be a reason why a particular feature or functionality is not currently exposed.
-
Before modifying code, you should know the status of testing the project - how many tests pass, how many tests fail, what exceptions are thrown, etc. The effects of your code changes will be more apparent from this preliminary testing.
-
When you encounter a problem and require assistance, succinctly collect all relevant information such as log messages, exceptions, and test scenario.