Mihai A amihaiemil.com

Logic should hide in plain sight  ↦

If we get rid of the concept of “model objects”, then there should be very little (almost zero) space for procedural code/algorithms in our codebase, since each object is a component that has its well-defined place in the bigger picture.

The following question arises: where does the “business logic” go? The answer is: business logic should be visible in how objects are wrapping/composing each other, rather than being visible in a 200 LoC method of some “service” class.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00