3 ms·
Thanks for the recs! Domain driven design is exactly the topic I was looking for. Any other recommendations on that subject but for javascript?
by chrischen 7y ago
Thanks for the recs! Domain driven design is exactly the topic I was looking for. Any other recommendations on that subject but for javascript?
- aastronaut 7y agoUnfortunately not. DDD is a design concept on how to match the business domain in source code - the design step is language independent and the practical implementation is very business dependent. I'm also keen to find a good practical reference, but can also understand why there might never be one. The book above on F# is very approachable, as F# in the predecessor of TS and the first half of the book is even language independent. Learning some SOA (service oriented architecture) terminology will be of some help as well. I highly encourage you to not solely stick around JS/TS for patterns. For me, JS/TS is the "most" multi-paradigm language in usage to date, thus is not one of those languages that needs to be written in a certain way. Other languages can give you patterns more clearly and those are for the most parts adaptable to JS/TS. Haskell made it click for me on how to model with types, Elixir has the interesting concurrency/resilience pattern with supervisors etc... There are also good JS libraries whose usage still feels like programming and less "using a framework"-like - RxJS has an interesting approach for events/subscriptions and I feel like redux-saga showed me a very good use case for generators.
- scns 7y agoKhalil Stemmler has loads of articles about DDD in Typescript on his site: https://khalilstemmler.com/ https://khalilstemmler.com/ He was writing a book about it too, which seems to be done: https://solidbook.io/ https://solidbook.io/ Not affiliated.