• 0 Posts
  • 18 Comments
Joined 1 年前
cake
Cake day: 2023年6月28日

help-circle
  • thickettoPythonPython SQLite Recipe
    link
    fedilink
    arrow-up
    2
    ·
    1 年前

    If you’re going to use SQLite regularly, you’ll need some extra infrastructure. OP’s post provides some boilerplate that would help you on your way.

    What has really made the difference for me recently though, is Simon Willison’s sqlite_utils package. It’s heavier weight than OP’s wrapper classes, but it’s infinitely more powerful and has made using a local database a joy instead of the kludge I usually make of it. I’ll be bummed to writing stuff for PostGres when I have to do that






  • Agreed. When I’ve had to make local carts every couple years, I have to spend 3 hours hacking a process together and remembering it all. I was hoping somebody would do something that “just works”, but this still seems like more conceptual burden than I was hoping for




  • thickettoProgrammingThe Caching Antipattern
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 年前

    Wow, the tone here is… really arrogant. When somebody starts off calling their audience idiots, I find it a little harder to read along.

    I think I’m glad I did, though. Tone aside, I think it’s a worthwhile insight to note that caching is making up for a shortcoming in your data supply, and that fixing that shortcoming if at all possible should be a priority. The author’s summary would have helped me in the past:

    Caching is a useful tool, but can be easily abused without giving any signs of the abuse.

    Don’t get involved with caching till the last minute; find any other way you can first. Optimise your application before you use the blunt tool of caching.







  • thickettoProgrammingTwilio Alternatives
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 年前

    Are you trying to do something programmatic with thousands of calls, or just engineer your own bespoke stuff? Seconding AWS SNS for big things. For small projects things, Google Voice at least used to be free or cheap and let you treat phone communications much more like emails than a standard phone number does.