BP16: Use one file per class with matching name

Do not put more classes into a file. Put there just one class. If you see more classes within a single file, extract each of them to its separate file.

  • It's easier to find the class outside of the IDE
  • You decrease the chance of merge problem
  • You can organize each class easily within the folder structure

Comments

No Comments Yet.
Be the first to tell us what you think.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play