Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

!!

Designing SQLitec data store and designing Cassandra data store are rather different.



True, but initially decoupling the business logic from the specifics of data retrieval would allow you to write an abstraction layer when you need to switch stores rather than having to rewrite the entire thing.


Fighting for the independence of these separate pieces and layers of abstraction is one of the most difficult problems I’ve had being a developer.

Management always wants time saving, “well if we just make these parts dependent, the fix will be much quicker”, requiring deep explanations that requires justifying some “hypothetical” scenario in the future (which always ends up being in a few months). Other developers, not familiar with the deeper understanding of the problem being solved, knowingly or unknowingly implement the shortcuts, adding technical debt and hidden complexity.

I don’t know what the balance is, but I find the only way to make a long lived system is to fight hard for the separation of concerns, or slowly fall prey to chaos.


> (which always ends up being in a few months)

I have seen something about technical debt that says that it's a win over the span of weeks, but a loss by the time of months.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: