Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 746 Bytes

checklist.md

File metadata and controls

10 lines (9 loc) · 746 Bytes

Spring Intro

  1. Whenever you perform operations with the DB, don't forget about transaction and to close connection after you're done.
  2. Keep your code clean (don't push commented code, remember about empty lines in the end of the file).
  3. Don't add dependencies, that you don't currently use, it's a bad practice.
  4. Use try-finally when you work with transaction and try-with-resources with read operations.
  5. Check if you've put correct access modifiers everywhere.
  6. What is better: setter, constructor, or field injection? Think why.
  7. You should write @Autowired annotation above the constructor everywhere or nowhere in all your classes. The code style over your project should be uniform.
  8. Use informative variable names.