3 ms·
> I don't agree with the article that you should always select a relational database up front. Should Calculator really use a relational database to persist con
by squiggleblaz 5y ago
> I don't agree with the article that you should always select a relational database up front. Should Calculator really use a relational database to persist configurations? This is exactly where YAGNI applies.
I don't think this is where yagni applies at all. Either way, if you want to start storing data, you will need to evaluate it. Yagni stops us from saying "but what if, but what if, but what if!"
To decide whether we should allow storage to be a yagni exception, we need to look at what we do first. So the question is, how often are we writing Calculator, and how often are we writing an app to help organise a business?
I think the balance is on the latter side. So when we're trying to decide how to store our data, if we have strong reasons to prefer a simple text file, then we should. But by default, we should go for sqlite or something bigger.
- goto11 5y ago> if we have strong reasons to prefer a simple text file, then we should. But by default, we should go for sqlite or something bigger. That seems like the opposite of the YAGNI principle though.