You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 22, 2024. It is now read-only.
William Guss edited this page Oct 2, 2013
·
18 revisions
There is a loose set of code conventions that should be followed when contributing to JavaLib. These conventions exist to make the code more readable and consistent.
Brace Style
We put braces on the same line as the statement beginning a code block, like so:
if (true) {
doSomething();
}
We discourage code blocks that are not contained in braces, except in the case of null checks, like so: if (obj == null) return;
Class Organization
We organize our classes like follows:
Constants
Fields: private, then protected, then public (public fields discouraged, obviously)
Constructors/Initialization
Disposal
Accessors/Mutators
Methods
Helpers
We organize our code into regions which can be minimized if you have the Coffee-bytes plugin installed in Eclipse. Regions are created as follows:
//region Processing
//Processing Code Here
//endregion