News for hackers. Stuff that matters.
Re:Domain-Driven Design by macando on Monday September 27, 2021 @02:56AM (#28667845)
> it have been divided in more that 25 files that hold 3 or 4 lines of code at most, with so many abstraction layers that it's impossible for the best of us to follow in one go.

When you put engineers in charge you get overengineering and when you put managers you get underengineering.

Is there a way out?

Re:Domain-Driven Design by tragomaskhalos on Monday September 27, 2021 @03:33AM (#28668058)
This is so true, and has been forever. In the early 90s I worked on a system where you couldn't just write structs, rather you had to submit their definition to a guy who entered the details into a database, and there was a daily run to generate the C header files from that database. To this day I'm convinced the only reason it was done this way was that it could be done this way.
Re:Domain-Driven Design by macando on Monday September 27, 2021 @03:39AM (#28668082)
It's an over-reliance on ceremony. On some days I think it's a character trait.
Re:Domain-Driven Design by lgvld on Monday September 27, 2021 @03:52AM (#28668166)
Ouch! Crazy ;-)
Re:Domain-Driven Design by mytailorisrich on Monday September 27, 2021 @04:05AM (#28668237)
> When you put engineers in charge you get overengineering

This means you picked the wrong engineers. An engineer's job and skill is to be able to make this sort of call.

The same goes with managers or any other role.

So the way out is always to carefully select experienced, competent, no nonsense people.

Re:Domain-Driven Design by andi999 on Monday September 27, 2021 @04:18AM (#28668315)
Getting experienced senior engineers, probably they have seen both; and in the best case they have worked on a middle ground project so they experienced how to do it and how not to do it.
Re:Domain-Driven Design by moonchrome on Monday September 27, 2021 @06:21AM (#28669006)
I think you need to have a few of those "I've use this pattern and had to stay up 24 hours to meet a deadline because shit was way too complicated for the delivered value" to instil a healthy fear of overcomplicating solutions.

I've worked with developers with 5+ years of experience that haven't went trough that (either corporate culture allowed them to deliver minimum value in 5 days or jumping projects before it gets to the WTF stage of complexity). It's hard to learn if you never get burned.

Re:Domain-Driven Design by macando on Monday September 27, 2021 @04:44AM (#28668462)
Experienced and exposed to areas outside their main expertise so they are well rounded and pragmatic.
Re:Domain-Driven Design by oscarcp on Monday September 27, 2021 @02:58AM (#28667863)
At the moment, there's no way out, plannign stipulates that all our microservices must be rewritten to accomodate this super abstract DDD design (and youy're right, it was an engineer who created our current layout)
Re:Domain-Driven Design by rapnie on Monday September 27, 2021 @06:44AM (#28669147)
> When you put engineers in charge you get overengineering and when you put managers you get underengineering. Is there a way out?

The whole idea is to bring them together "in the same room" and allow common understanding of the domain so they stay on the same page throughout the project. Then they'll do each what they are best at (managers whip up glossy slides, and devs crank out reams of code ;)