Equinox Coding Practices

Coding Practices

Equinox covers a reasonably large code base. To ensure coherence and consistency, the team follows a number of coding conventions and practices. For the most part these conventions are supported by the Eclipse tooling (e.g., formatter settings) so its really a matter of setting it up and going from there. Give yourself over to the tooling and forget about formatting. Just let the tools do their work.

Legal

Attribution

Contributors should feel free to identify themselves individually or by company in the code. There are three main places this is done.

Use the tools

For the most part you can just use the preference template files supplied here to configure the various tools to do the same as the rest of the team. These preference files are typically found in the .settings directory of a project. To apply the preferences simply copy the template file from here into the .settings folder overwriting the original. Of course, you may choose to merge the settings but beware of varying too far from the standard coding practices. The templates cover code formatting, organize imports, code cleanup wizard settings and enabling these operations to happen automatically on save.

Coding style

Comments

Naming

Internationalization

Exception handling