• 0 Posts
  • 25 Comments
Joined 4 months ago
cake
Cake day: July 23rd, 2024

help-circle




  • They’re not super common. I don’t see one every single time I go grocery shopping, though I would say typically there are maybe one or two recalls posted somewhere in the store at a time. Most I’ve seen at once is four, maybe a year or so ago, but they also keep the signs up for a few weeks so they didn’t happen all at once.

    They do always have either a picture of the product or at least the name prominently placed, so you can glance at it to see whether it’s about something you might have bought.










  • Yeah, in Java calling first() on a stream is the same as an early return in a for-loop, where for each element all of the previous stream operations are applied first.

    So the stream operation

    cars.stream()
        .filter(c -> c.year() < 1977)
        .first()
    

    is equivalent to doing the following imperatively

    for (var car : cars) {
        if (car.year() < 1977) return car;
    }
    

    Not to mention Kotlin actually supports non-local returns in lambdas under specific circumstances, which allows for even more circumstances to be expressed with functional chaining.







  • I mean, in 2012 they didn’t even have 2FA yet. Also IIRC they haven’t started really leaning into the privacy angle until maybe around 2019-20 publicly, and from there it probably wasn’t the highest priority item for the security team. Not excusing how long it took, but they are a business after all and with how scary the warnings around ADP are I doubt it’s a very marketable feature with a lot of reach.