- grahamlee parentOK thanks for clarifying your reasoning!
- 292 points
- These modern times that literally began in 1769. Oxford English Dictionary, “literally (adv.), sense I.1.c,” June 2025, https://doi.org/10.1093/OED/9189024563.
- Article author here. Your idea "gluing together things that don't know necessarily know about each other" is basically what the GoF book means: composition is "this object has a reference to that object and uses its public API". They don't mean "this object ontologically contains an instance of that object" in the sense that a car "has" an engine, which is a narrower definition of composition that people frequently use.
It's that broader version of composition—particularly in its extreme realization, delegation—that underlies a lot of the behavioral patterns in the book. For example, the State and Strategy patterns boil down to "this object relies on another object to fill in the behavior here, and there are ways to choose what that other object is", which is something it's easy to arrange with subclassing and the only point of the pattern is to avoid subclassing.
- Author here. I wrote “ But even a modestly more recent language like Java has visibility attributes that let a class control what its subtypes can view or change, meaning that any modification in a subclass can be designed before we even know that a subtype is needed.” which covers your situation: if you need to ensure that subtypes use the supertype’s behaviour in limited ways, use the visibility modifiers and `final` modifier to impose those limits.
- 3 points
- The presented story has to make sense to the audience, and showing two characters interacting with an isolinear chip, data crystal or whatever hints at "she just gave him a futuristic floppy disc with the plans for Chekhov's Gun" more than claiming to have sent a sharing link via IM.
- My handy real-world analogy for XOR is the light over a staircase in a home. There's a switch at the bottom, and another switch at the top, and both control the same light. Initially, they're both in the off position. You set the bottom switch, and the light turns on. You climb the stairs, set the top switch, and the light turns off although both switches are now in the "on" position. As long as one switch is in the "on" position and one switch in the "off" position, the light is on; otherwise, it's off.
- Another company has a store called Super Mario, and the courts are reasonable enough to realize that they don't compete: https://ticotimes.net/2025/01/30/david-vs-goliath-costa-rica...
- > The part that’s weird with nulls is that it’s a trinary logic stuffed into a boolean algebra.
It's a three-valued logic (though not trinary, which would use a base-3 number system) in a three-valued algebra: specifically, the relational algebra. The outcome of a logical test has three values: true, false, or NULL; this is distinct from Boole's algebra where outcomes have a continuous value between 0 and 1 inclusive.
- Exactly this. SQL is based on the relational algebra and that's well-defined, NULL along with other features of SQL work in an entirely regular and predictable way. The only time it's weird is when a developer decides that it should work the way Javascript (or whatever) NULLs work because that's the last time they saw the same word used in a programming language, in which case it's the assumption that's weird.
- AROS is also the basis of the ApolloOS fork that the Vampire accelerators people maintain to take advantage of their chips' features. https://www.apollo-computer.com/apolloos.php
- It seems to me that the extra features on DVD were originally part of the marketing benefits driving people to adopt the format because the studios preferred it to VHS because of CSS and region-locking. Then they found they had painted themselves into a corner making all these extra features that people came to expect, until finally streaming let them get back to “just the movie”.
- 21 points
- “Rm9sbG93ZXJz” almost precisely presaged the entire plot of all of the Black Mirror episodes combined, and was great fun (particularly the near-total lack of dialog). I thought the “My Struggle” bookends in Season 10 were quite good, but then Season 11 retconned the whole plot away.
- The change in that zeitgeist is also one of the things the creators "credit" with its decline, though Duchovny getting into a lawsuit with Fox and checking out certainly didn't help. After the 9/11 attacks public interest in not trusting the government sharply declined. The pilot episode of the Lone Gunmen spin-off, released earlier in 2001, featured a plot where "terrorists" had flown a passenger liner into the WTC but it was really a government inside job to gain support for a new war. That show didn't get renewed.