News for hackers. Stuff that matters.
[dead]
Re:Show HN: I wrote a book on implementing DDD, CQRS and Eve... by dang on Monday December 21, 2020 @07:02PM (#25501309)
This comment breaks both the HN guidelines and the Show HN guidelines. Please don't do that. We're trying to have a culture in which people who share their work get substantive feedback and discussion. Cheap dismissals undermine that badly—and since they're the internet default, we need to be conscious about this.

"Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something."

https://news.ycombinator.com/newsguidelines.html

https://news.ycombinator.com/showhn.html

Re:Show HN: I wrote a book on implementing DDD, CQRS and Eve... by alex-lawrence on Sunday December 20, 2020 @05:35AM (#25485280)
In fact, the book was called "Implementing DDD, CQRS and Event Sourcing in Node.js" up until the release of its complete version. I thought about this for a longer time and decided to remove the "in Node.js" part from the title. Instead, I made it clear in the book description. In my opinion, the book can be valuable for anyone who is interested in the concepts, regardless of technology choices.

I think that it is fair to say that my book is partially also about Node.js, but not primarily. I wouldn't say though it is about JS. In fact, many of the code examples would look similar in other languages. Furthermore, the use of Node.js helps to provide concise code examples and executable code without much ceremony.

When reading "Implementing Domain-Driven Design" by Vaughn Vernon, all the code examples are in Java. The book "Enterprise Integration Patterns" has a lot of code examples and all of them are also in Java. The most recent edition of "Refactoring" by Martin Fowler uses JavaScript. Still, I wouldn't say that these books are about a particular programming language.

Re:Show HN: I wrote a book on implementing DDD, CQRS and Eve... by notretarded on Sunday December 20, 2020 @05:38AM (#25485301)
>boo boo do my job for me

>Then I see JavaScript and Node.js

What's wrong with this? The underlying architectural patterns and abstractions you should be able to pick out and apply to your technology of choice.

Re:Show HN: I wrote a book on implementing DDD, CQRS and Eve... by dang on Monday December 21, 2020 @07:02PM (#25501308)
">boo boo do my job for me"

I don't know where that came from but please don't make things up that look like quotes when they're not, and especially please don't use that as a snark trope.

(If someone said that and you're actually quoting them and they edited it out, that's of course different.)

[dead]
Re:Show HN: I wrote a book on implementing DDD, CQRS and Eve... by lllr_finger on Sunday December 20, 2020 @09:27AM (#25486388)
> they each have a profile

Absolutely true that languages are built to fulfill specific roles and have associated trade-offs. I think you answered your own question - JavaScript's strengths are being very widespread in current software development and having a minimal syntax/type system. IMO it can be a good language for MVPs/POCs and serve as a higher form of pseudocode. Perhaps the author's choice of JS as a way of reaching the widest possible audience and focusing on the concepts more than the implementation details.

A relatively recent personal example: in working through some DSL and parser combinator examples in Rust, sometimes I get too distracted with lifetimes, annotations to deal with deeply recursive functions, etc. and just search for examples in a different language that allow me to focus on the concepts I'm trying to learn.

Re:Show HN: I wrote a book on implementing DDD, CQRS and Eve... by alex-lawrence on Monday December 21, 2020 @05:32PM (#25500462)
Since I am asked from time to time about the technology choices for my book, I decided to write a blog post to explain my reasoning: https://www.alex-lawrence.com/posts/why-my-book-uses-nodejs-... Some of my arguments pretty much match with your statements.