Skip to content

Modules development for space

Alexandru Trandafir Catalin edited this page Jan 30, 2026 · 2 revisions

Basically the idea here is simple.

But this one you learn only after building complex applications for years.

What happens is that the application grows and your controller directory ends up with 100 controllers.

That's no fun.

Solution?

Break your application into modules, example:

  • Admin
  • Invoicing
  • Documentation
  • And so on, each "part" of your application has its own place inside a directory with its own controllers, models, views, etc

This is not just about having things better organized but it is also about giving things their own place where they can develop.

Think of this as a plant. If your plant is put inside a very small pot, it won't grow.

Think of it from a creativity point of view. If you need to make a new drawing, and you have a sheet of paper that already contains lots of other drawings and only one small corner is available, you don't have enough mental space in that corner to express yourself.

Clone this wiki locally