o/ Just wanted to get some feedback and recommenda...
# random
y
o/ Just wanted to get some feedback and recommendations https://medium.com/@void.nugget/to-orm-or-not-to-orm-is-there-a-life-without-it-17f018960f6a Thank you.
c
yuriy_yarosh: I have been wanting to write a screed like this, but from a different perspective, more from the idea that the db used to be the center of the universe we were all supposed to orbit around, to, it’s the oracle/single state of truth that everyone must consult and update, to, it’s time to just treat persistence as a spoke and make models not beholden, the truth should be in the model, and different parts can have different truths… [12:52] my suggestion would be more energy into superior alternatives, I did like the fact that you mentioned the pain of migrations at the end, that is to me a great argument agains ORMs: they are mostly designed for a sure tear it down and remake it on each run world (that no one lives in).. which is nutty because the pain of change is lessened but then immediately undone by the pain of updating the changed instances..
y
Well, I’ve managed to develop a stable and maintainable solution… but for now I’m struggling sorting out my NDA’s. It’s not a DB centric approach, it’s an event-oriented architecture implementation. Some of my stuff are currently WIP, but I’ll share it at some point. The trick with the migrations is to implement a Schema Manager service that will be able to exec DDL via specific API. But this service is implemented inside the DB itself as a set of stored functions. For now I’m trying to keep the most crucial stuff inside the database, to keep the number of stored functions minimal.