• 0 Posts
  • 34 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle





  • For pumpkin seeds, which are great on just about anything, check the Hispanic section of your grocery store for pepitas, it’s often the easiest/cheapest way to get them.

    Also big fan of overnight oats. I rotate what I put in mine but it usually includes a seed (sunflower, flax, chia, pumpkin), dried berries (cherries, blueberries) and a sweetener (maple syrup, pomegranate molasses). Cooked oatmeal feels like eating glue to me now, I’ve never looked back.




  • wyrmroot@programming.devtoGolang@programming.devMemoization in Go
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    In applications where I’ve needed this, I’ve taken a manual approach. Structure the function to return a single Result struct (including an error field), develop a convention for mapping function inputs to a string, then add reads & writes to a map[string]*Result which allows me to return cached values as a shortcut. No idea if it’s the most efficient way, I’ve not actually considered finding a package to handle the process.

    Edit: For more advanced behavior, what are your thoughts on the official memoize package?