Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 975 Bytes

checklist.md

File metadata and controls

17 lines (14 loc) · 975 Bytes

Common mistakes

Don't keep the whole logic in one huge method:

In order to keep your code readable and reusable it's crucial to split large methods into smaller ones. Methods should not have more than an average of 30 code lines (not counting line spaces and comments). If you have code duplication it should moved to a separate method as well.
More info

Don't use public access modifiers everywhere

If a method has only util purpose and is used only inside the same class it should not be public. Keep your code as closed as possible in order to follow the encapsulation principal

Follow checkstyle rules:

  • While declaring methods and variables remember about general naming convention for different elements in Java.
  • While writing loop and other constructions remember about spaces and indentation
    CheckStyle rules