7

What‘s the purpose of separating your code into "independent" modules if each module contains everything anyways?

Comments
  • 3
    Well, that's a very good point but it's kinda the monolith vs microservice discussion. I prefer monoliths. If you split up everything completely on module level using it's interface, it's kinda schizophrenic behavior. I think it's considered professional to make everything isolated. But if you write code according to "the book" you'll never finish anything.
  • 3
    @retoor this is not monolith vs microservice. A module != service.
    The Linux kernel for example is a famous modular monolith.

    Also a microservice architecture is an organisational (people and teams) solution not a code organisation solution. It's a Conway's law thing.
  • 1
    Main reason is that you can group concepts, but being strict about "independent" can be a bit much IMO
  • 1
    @BordedDev yeah I‘m not even sure what it is trying to group. According to the names of the modules, it‘s a wild mix of UI vs. non UI and thematic/feature based grouping.

    But, as I said, each module has everything anyways.
    UI module has a lot of logic, logic module has a lot of ui, a particular feature module has a lot of other code related to features from the other modules.
  • 0
    @Lensflare sure, but that's fine if you're grouping by business concept for example
  • 2
    @hjk101 in sense of web dev it ain't weird phrasing tho.
Add Comment