CodeOpinion
codeopinion.com · Personal blog · on HN since 2013
Derek Comartin writes CodeOpinion, covering software architecture, event-driven design, event sourcing, domain-driven design, and coupling and cohesion.
What HN saysA commenter praises Comartin for explaining technical ideas like event sourcing clearly and in plain English.
18HN people shared it
2linked it in comments
50stories submitted
458story points
11 months agolast shared
2013people per year2026
Most-shared posts
- 1SOLID? Nope, Just Coupling and Cohesion2 people · 6 points · first shared 2025 · discussion on HN
- 2Anti-patterns in event-driven architecture1 people · 243 points · first shared 2024 · 163 comments on HN
- 3Getting Started with Functional Programming in F#1 people · 145 points · first shared 2017 · 41 comments on HN
- 4Write Stable Code Using Coupling Metrics1 people · 3 points · first shared 2024 · discussion on HN
- 5Domain Driven Design: “What” Not “How”1 people · 3 points · first shared 2015 · discussion on HN
- 6Throw Out Your Dependency Injection Container1 people · 3 points · first shared 2015 · discussion on HN
- 7F# Learning Resources1 people · 2 points · first shared 2015 · discussion on HN
- 8Query Objects instead of Repositories1 people · 2 points · first shared 2015 · discussion on HN
- 9DRY principle is why your codebase sucks?1 people · 2 points · first shared 2025 · discussion on HN
- 10Decomposing CRUD to a Task Based UI1 people · 2 points · first shared 2021 · discussion on HN
- 11How-To Create OWIN Middleware1 people · 2 points · first shared 2015 · discussion on HN
- 12ConfigR: Look Mom, No XML1 people · 2 points · first shared 2015 · 1 comments on HN
- 13ASP.NET Self Host Static File Server1 people · 2 points · first shared 2015 · discussion on HN
- 14Optimistic Concurrency in DocumentDB1 people · 2 points · first shared 2017 · discussion on HN
- 15Simplify Your Code by Limiting Dependencies1 people · 2 points · first shared 2015 · discussion on HN
What HN people wrote when they linked it
jimbob45 · 2021-09-30
https://codeopinion.com/event-sourcing-example-explained-in-plain-engl…
Derek Comartin does a great job explaining event sourcing on his site. I really like him for being able to easily explain fairly technical ideas like this.
However, like others have said, this should be a tool reserved strategically for ideal situations, not a jackhammer for every task.
ta1243 · 2023-11-16
tzdata makes guesses (predictions) all the time -- every time in the future is a guess. There is no way to know that a government won't change DST dates, or even shift a country to a different timezone.
Look at the whole Lebanon mess from earlier this year:
If you had, at Mar 24 2023 10:00 UTC gone and created a meeting at 10AM Beirut on Mar 27th 2023 it would have been at 0800 UTC (based on the official Lebanon position that DST would not start until April 21st [0]), and you would have been wrong [1]
Had you stored the datetime with location then you would have been fine.
The tzdata community far know more about time than you do and make a good job at guessing what the time will be, but they still have to issue multiple updates each year due to changes from different governments.
Take this update from 2021 when Fiji suspended DST for the following year
https://mm.icann.org/pipermail/tz-announce/2021-October/000068.html
"Assume for now that it will return next year"
It's a guess. nobody in October 2021 could say for certain that Fiji would or would not have DST in 2023.
This isn't controversial. Past dates can be problematic - especially from 50+ years ago (historical data may crop up which shows that a specific location had different UTC offset which means a historical update is needed), but for future dates all predictions of UTC offsets for geographic locations are a guess [2]. Hell you can't even store the tzdata location group (say Europe/London) because in…