11
submitted 2 days ago by yogthos@lemmy.ml to c/programming@lemmy.ml
top 4 comments
sorted by: hot top new old
[-] AbouBenAdhem@lemmy.world 2 points 2 days ago

the whole reason it was possible to experiment cheaply and come across this serendipity was because 9 months ago, faced with the choice to either do the bad easy thing or the good nothing, I chose to do the bad easy thing. The SQLite database worked! I understood how it worked, behind the scenes with its B-trees and its Full Text Search extension.

I always wonder what the tradeoffs are for using SQLite for personal projects... being a stepping-stone to rolling your own non-sql alternatives is one I hadn’t thought of.

[-] yogthos@lemmy.ml 4 points 2 days ago* (last edited 2 days ago)

And I find this extends to a more general principle of just pushing through solving a problem in order to understand it. Then once you've done that work, you can find a much better solution. It's easy to get stuck in an analysis paralysis loop where you try to come up with the perfect solution up front, but it's rarely possible to do for something you're doing for the first time. Doing a 'dumb' thing like making a giant mysql db that gets you to a working result is the right way to go about it.

[-] gary_host_laptop@lemmy.ml 1 points 2 days ago

essentially they were using a database that needed much more than what they required which made everything super slow, so they used a more precise and small tool for the job they needed exactly, reducing the db's size. am i correct? i've been touching on this topic a bit recently so it's all still very new to me.

[-] yogthos@lemmy.ml 3 points 2 days ago

Yup, that basically sums it up. The key part though was that doing the inefficient thing first allowed them to make progress and to understand the problem better by working through it, which later led to a more clever solution. The moral of the story here is that it's always better to solve the problem even if your solution isn't optimal, and then reflect on it.

this post was submitted on 11 May 2026
11 points (100.0% liked)

General Programming Discussion

9903 readers
11 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 7 years ago
MODERATORS