Skip to end of metadata
Go to start of metadata

Code location

GitHub: https://github.com/yonadev

Coding conventions

Short methods

A really long method body is at most 20 lines.

Useful names

The names of variables, methods and classes are explanatory to a level that no comments are required.

No throws-clauses

If a method calls other methods that throw checked exceptions that cannot be handled within that method, these exceptions are caught, wrapped in a YonaException (which is unchecked) and rethrown. That way, we prevent sprawl of checked exceptions.

Try/catch spans the entire method body

If a method contains a try/catch, then the try-statement is the first statement is the first statement in the method and there is nothing after the last catch. This keeps the code concise and uniform.

US English is the language of choice

All code, comments and technical documentation is written in US English.

  • No labels