• 0 Posts
  • 991 Comments
Joined 3 years ago
cake
Cake day: June 21st, 2023

help-circle





  • Can’t speak for Git, but caching responses is a common enough problem that it’s built into the standard HTTP headers.

    As for building a cache, you’d want to know a few things:

    • What is a cache entry? In your case, seems to be an API response.
    • How long do cache entries live? Do they live for a fixed time (TTL cache)? Do you have a max number of cached entries before you evict entries to make space? How do you determine which entries to evict if so?
    • What will store the cache entries? It seems like you chose Git, but I don’t see any reason you couldn’t start simple just by using the filesystem (and depending on the complexity, optionally a SQL DB).

    You seem locked into using Git, and if that’s the case, you still need to consider the second point there. Do you plan to evict cache entries? Git repos can grow unbounded in size, and it doesn’t give you many options for determining what entries to keep.







  • This has always been an issue. From my experience, the best way to get in was through internships, co-ops, and other kinds of programs. Those tend to have lower requirements and count as experience.

    Of course, today, things are a lot different. It’s a lot more competitive, and people don’t care anymore about actual software dev skills, just who can churn out SLOC the fastest.




  • To put some perspective into what our code looks like, there are very few tests (which may or may not pass), no formatter or linter for most of the code, no pipelines to block PRs, no gates whatsoever on PRs, and the code is somewhat typed sometimes (the Python, anyway). Our infrastructure was created ad-hoc, it’s not reproducible, there’s only one environment shared between dev and prod, etc.

    I’ve been in multiple meetings with coworkers and my manager talking about how it is embarassing that this is what we’re shipping. For context, I haven’t been on this project for very long, but multiple projects we’re working on are like this.

    Two years ago, this would have been unacceptable. Our team has worked on and shipped products used by millions of people. Today the management is just chasing the hype, and we can barely get one customer to stay with us.

    The issue lies with the priorities from the top down. They want new stuff. They don’t care if it works, how maintainable it is, or even what the cost is. All they care about is “AI this” and “look at our velocity” and so on. Nobody cares if they’re shipping something that works, or even shipping the right thing.






  • And before people ask about sniffing it, the second paragraph:

    People often recognize spoiled meat through a characteristic rotting odor caused by chemical compounds called biogenic amines or BAs. Food quality inspectors quantify these compounds using procedures that involve direct meat sampling and time-consuming laboratory analysis. However, once meat is sealed and distributed for commercial retail, such testing becomes impractical, making spoilage difficult to detect.

    You can’t sniff it through the packaging. Even when opened, your nose isn’t accurate enough to know if something has just started to spoil, or if only a little bit of it has. And not everyone has good (or any) sense of smell.