💡
31

Shoutout to the code that sorted my home repair chaos

I'm trying to code a basic app to list all the small jobs around my home, like leaky faucets or loose hinges. I went with Python because people say it's good for beginners. Setting up the list was fine, but when I wanted to add dates and priorities, things got messy... I looked into SQLite for storage, but the setup lost me. Are there simpler ways to handle this data? Maybe a text file or a different library? I'd love to hear how other beginners tackled home project apps. What worked for you?
3 comments

Log in to join the discussion

Log In
3 Comments
wadew51
wadew511d ago
Switched to a CSV file for my own home project. Honestly, Python's csv module made it simple to add dates and sort by priority. Tbh, saved me a ton of hassle.
1
lilya76
lilya761d ago
Check how you're sorting dates with the csv module. It doesn't sort by itself; you need to use sorted() on the data after reading it. Make sure your dates are in a format that sorts correctly, like YYYY-MM-DD. Otherwise, you might get unexpected results.
7
henrydixon
henrydixon22h ago
Nice! I've been down that road before where you overthink a simple task and then the csv module just comes in like a hero. It's one of those boring tools that never gets cool points but saves your butt every time. I love when you find the simple fix after almost building something way too complicated. Feels good to just get it done and move on.
4