Some developers objected to my insistence on using event sourcing by default, claiming that auditing features of modern databases are sufficient.

My mistake: the biggest benefit of event sourcing is not auditability, it's optionality.
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
 

Keep Current with Aaron Stannard

Aaron Stannard Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Aaronontheweb

18 Jun
Playing with some ideas for this "ways in which software developers destroy value" blog post.

- Destroying optionality
- Frameworkism
- Domain omniscience
- Infrastructure coupling
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
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(