The introduction of Domain-Driven Design (DDD) to a larger audience has led to a few really damaging ideas among developers, like this one (maybe it's more a sentiment than an idea):
Data is bad, behavior is good. The domain model is great, the database awful.
(We're not even discussing CRUD in this article, which apparently is the worst of the worst.)
By now many of us feel ashamed of using an ORM alongside a "DDD domain model", putting some mapping configuration in it, doing things inside your entities (or do you call them aggregates?) just to make them easily serializable to the database.
The problem: if you publish any document as PDF, in print, etc. and the text contains URLs, there is a chance that one day those URLs won't work anymore.
There's nothing to do about that, it happens.
Luckily, this is a solved problem.
The solution is to link to a stable and trustworthy website, that is, one that you maintain and host (of course, you're trustworthy!).
Then in the document you link to that website, and the website redirects visitors to the actual location.
An example: my book contains a link to https://enjoy.gitstore.app/repositories/matthiasnoback/read-with-the-author.
When I moved that repository to a new organization on GitHub, this link resulted in a 404 Page not found error.
The proper URL is now https://enjoy.gitstore.app/repositories/read-with-the-author/read-with-the-author.
Chris from Gitstore was able to save the day by setting up a redirect on their site, but I wanted to make sure this kind of problem would never be a problem for me again.
In the Epilogue of the Object Design Style Guide, I started happily outlining some of the architectural patterns I've been using for several years now. I wanted to give some kind of an overview of how the overall design of your application would improve if you apply the object-design rules in that book. I soon realized that an Epilogue was not enough to cover all the details, or to communicate the ideas in such a way that they would be applicable in everyday projects. And so a new book project began...