This article has put together a small collection of practices, tricks, and tips that will save you time while learning Java and writing code in this programming language.

Work organization

Clean code

In large projects, it is not the creation of new code that comes to the fore, but the support of the existing one, so it is very important to organize it correctly from the very beginning. When developing a new application, always keep in mind three basic principles of clean and maintainable code:

  • Rule 10-50-500. One package cannot contain more than 10 classes. Each method should be less than 50 lines of code, and each class should be less than 500 lines.
  • SOLID principles.
  • Using design patterns.

#переводы #java #советы

Приёмы и хитрости начинающего Java-программиста
1.60 GEEK