3 ms·
> Since adopting typscript, the way I usual approach my development is that I clearly define data types on ui and then the implementation details tend to reveal
by motorest 2y ago
> Since adopting typscript, the way I usual approach my development is that I clearly define data types on ui and then the implementation details tend to reveal themselves.
That is aligned with the basic premise of Domain-Driven design: define a model of the problem domain, and everything else just falls in place.
I wonder why these articles reinvent the wheel with functional programming hand-waving when DDD has been screaming this for years.
- PittleyDunkin 2y ago> I wonder why these articles reinvent the wheel with functional programming hand-waving when DDD has been screaming this for years. These are two different levels of abstraction. If you're still enraptured by the fundamental mechanisms of computation (i.e. functional programming) you're not going to see the value in trying to figure out the best way to build via composing mechanisms of computation, whether it's functional, imperative, procedural, logic-based, lisp-based, object-oriented, message-passing, whatever. There's a reason why there aren't many DDD frameworks out there—it doesn't really benefit from tying to specific technologies/languages/ecosystems in the same way that the culture of "build shit as fast as possible" attitude dovetails well with the goals of Rails. I don't see why this is surprising; people re-discover old lessons daily, and petty details will always be conflated with broader themes and patterns—it's just how the human brain works. The discussion is what keeps us thinking about those old lessons. This is just a person's blog, not a journal trying to represent an industry.
- motorest 2y ago> There's a reason why there aren't many DDD frameworks out there—it doesn't really benefit from tying to specific technologies/languages/ecosystems in the same way that the culture of "build shit as fast as possible" attitude dovetails well with the goals of Rails. I think your comment fits the "not even wrong" category. It goes beyond nonsense. There is no DDD framework because the very idea of a DDD framework makes absolutely no sense at all. DDD is an approach to software design, not something you build and reuse. DDD is then used to specify what types to define to put together a model of the domain. Again, there is absolutely no point to have a framework to define these. Lastly, DDD defines interfaces for domain services, and imposed absolutely no restrictions on how to define those. This has nothing to do with frameworks. Development speed is also irrelevant and unrealistic. Not even wrong.