News for hackers. Stuff that matters.
Re:Domain-Driven Design by sweezyjeezy on Monday September 27, 2021 @05:17AM (#28668657)
I agree no paradigm is particularly great for beginners - OOP leads to junior devs separating their code prematurely/inaccurately, writing horrendous inheritance trees etc., functional programming can lead to some really opaque code that feels like you're trying to solve a puzzle when reading it. I do think good principles exist however:

- try to write code that can be easily unit tested

- composition over inheritance

- immutable over mutable + avoid side effects

- avoid recursion unless your data is recursive

etc. etc.

There are no comments on this comment yet.