3 ms·
There is, but it's awful: The "just use the giant library/framework to solve the small problem" approach. Like, I need to store a value or two for this local f
by Pxtl 2y ago
There is, but it's awful: The "just use the giant library/framework to solve the small problem" approach.
Like, I need to store a value or two for this local filesystem-oriented application. Not a lot, just like a "time since last check".
YAGNI solution: just dump json to a file.
Frameworky solution: Sqlite. You'll eventually need more, and Sqlite is not significantly harder than dumping json to a file, although it feels heavier.
Like starting up a small web-project by pulling in webpack and react. If you don't pull in the frameworks ASAP, eventually you'll accidentally find yourself NIHing yourself into Greenspun's Rule.
https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule