Skip to content
Kajetan Fuchsberger edited this page Aug 8, 2017 · 9 revisions

In general, we follow the java Java Code Conventions.

In the following are noteworthy divergences or additions which we use in our codebase:

Getters and setters

In general, we do not use any prefixes for getters and setters (get..., is..., set...). First of all, we basically almost never have setters in the codebase in any case, because we use immutable objects wherever possible. Secondly, we think that it makes the code more concise and readable. E.g. for example, if an object would have a property 'value' of type Double, an corresponding line to read this value would read like:

Double value = object.value();

Clone this wiki locally