Repozytorium Web Developera

Clean code and architecture

3rs of software architecture

readable, reusable, refactorable software

  • Refactorability
  • Refactor without breaking the system
  • Reusability
  • Modules are reusable
  • Functions are small
  • Side effects are avoided
  • Readability
  • Code is consistently formatted
  • Variables are named well
  • Functions are documented

Clean code

Folder structure

Helpers vs Utils

Utils is a place where you can place small snippets you can use throughout the application. Small functions to build bigger things with.

Helpers is more of a place where you store code architectural snippets in my view. Things essential for bootstrapping components and developer ergonomics.