- Branches
master2016-05-27- Tags
06-2_code_review2016-04-1506_player_evolution2016-04-0805_gamestate_evolution2016-03-2404_bonus_gamestate2016-03-1503_players_bombs2016-03-07- and 2 more
CS-108 - XBlast 2016
Other documents
conventions.md
Coding conventions
This document contains some syntactic and code format conventions for the current project and should be used as a reference to enhance code uniformity.
Formatting
Sources are formatted as defined in the EPFL-PPO.xml
Eclipse format file.
Members ordering
Class members are ordered using the default IntelliJĀ arrangement order. In addition, they are grouped by field, overriding and dependence.
Object/Class reference
Methods and attributes are referenced using this for the
current class, and by their class name for static ones.
Static imports are avoided, except for JUnit tests.
Redundant type/scope
Use of the diamond notation is encouraged to avoid redundancy.
Unnecessary scope modifiers are avoided (ex: public in
interfaces).
Unnecessary brackets
Unnecessary brackets in one to two line statements are avoided to simplify the reading of the control flow.