News for hackers. Stuff that matters.
Re:Abstraction, Not Syntax by radarsat1 on Tuesday October 14, 2025 @12:51AM (#45576380)
I got confused reading this because I wasn't sure how I, as a reader with no knowledge of the system under discussion, was supposed to know that all the buckets should be in the same region.

Nor is it clear to me how the "for loop" version would handle the case where exceptionally one bucket is different. Which is a more interesting discussion imho, that's the whole point of having it as a configuration field, after all.

Re:Abstraction, Not Syntax by Joker_vD on Tuesday October 14, 2025 @03:31AM (#45577204)
Like this:

    region = if name == "bravo-hourly" then "us-west" else "eu-west",
Re:Abstraction, Not Syntax by radarsat1 on Tuesday October 14, 2025 @04:48AM (#45577717)
I see, not so clean imho but I guess it works.
Re:Abstraction, Not Syntax by qezz on Tuesday October 14, 2025 @09:27AM (#45579779)
The example in the article shows a need for cartesian product of (bucket name) and (lifetime policy), with a fixed location. Nothing stops you from defining a separate category for the exceptions, and just append them to the resulting list. Or you may want to assign each bucket its own location, then you define it along side the bucket name.