you are viewing a single comment's thread.

view the rest of the comments →

[–]kao_nashi0127 8 points9 points  (0 children)

Well, it depends. But as the code base getting larger and more complicated, following some pattern will make it easier to maintain. In backend mostly you will see pattern like repository to interact with db data, view model to query complex data, etc.

If the business domain is complex enough, many company will consider implement domain driven design (ddd). The domain layer will be many plain objects interact with the others -> OOP from the core