If I have the history of state changes for my business entities preserved it creates options for the following:
1. Replaying old data with new code (simulation) 2. Creating novel features and experiences from old data (projections) 3. Reverting objects back to previous states
4. Introducing new ways of modifying business entities that can easily be reconciled along with prior ones
These are all extremely valuable and powerful future-facing tools that you will regret not having once you, inevitably, encounter a customer request that necessitates them
Data is cheap to store but intrinsically valuable to any business. Destroying the value of the latter in order to reduce the cost of the former by default is utterly moronic.
So my new rule: event-sourcing always, by default. Better to pay for the upfront developer cost of added complexity (minor, IMHO) than to have the history of your entire business be lost.
In order to build software without it, you have to prove that you don't need it
There are definitely cases where you don't, but weaponizing the precautionary principal and forcing to start from a safer, optionality-preserving default will result in much better software being built. Not different from arguing that deployments must be done from source control
• • •
Missing some Tweet in this thread? You can try to
force a refresh
Difficult idea to express because many of these weaknesses are strengths taken to an extreme.
i.e. Frameworkism, building frameworks for building apps rather than just building apps, occurs when DRY gets taken to an extreme and the developer misses the point.
In other cases though, it's failure on the part of the developer to anticipate future changes to the project when they're inexpensive to implement, i.e. building an event-sourcing abstraction when you don't have customer data to preserve, which becomes a giant project later