Preferences

grahamlee
Joined 650 karma
Has a PhD in software engineering, and writes documentation for developers.

  1. OK thanks for clarifying your reasoning!
  2. As the submitter, I want to point out that I submitted this post with the original title. The one that makes it clear a16z are behind the social media astroturfing. The mods changed the title.
  3. 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.
  4. What you lose by using composition is that the composing object is no longer a subtype of the constituent object, so you can't use it as a "decoration" of the original object in a program that expects an instance of the original.
  5. 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.

  6. 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.
  7. David Chisnall is now at MS Research and does cool things with CHERI making a computing platform that's memory-safe by default.
  8. That makes 4 and 9 the only two uninteresting numbers, which is interesting, so they’re out too!

    Douglas Adams said the same about 42. It’s the answer because it’s completely banal.

  9. _A Discipline of Programming_
  10. Dijkstra also advocated for proving the correctness of imperative code using the composition of a set of simple rules, and most programmers ignore that aspect of his work too.
  11. 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.
  12. 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.
  13. 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...
  14. > 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.

  15. 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.
  16. 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
  17. Region locking stops (or is designed to stop) someone, for example, in the USA buying a DVD sold in the UK market. The localization of the product on sale isn't relevant to the decision not to sell the product.
  18. 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”.
  19. I used to read his books as exercises in critical analysis—how does he get from the data to these conclusions, and what does he ignore that doesn't fit his conclusions? Then I discovered that, as stated by Carl Sagan, von Däniken also relies on factual errors in his arguments.
  20. If you add every single other church or shrine that's dedicated to St. Michael to the map, what's the straight line you can draw that contains the most of those locations?
  21. I read 1800-2023 and thought wow, System Verilog had a great run, shame it's over.
  22. This is about smudging as a leftie, because your hand is trailing the pen if you write a LtR language like English. If you blotted every word or character before moving on you’d be there a while.
  23. The spice must flow.
  24. Lamport’s time/clocks paper solves this exact problem, using this exact example, without locks.
  25. I last used REXX last year, to write BDD tests for my Amiga software on AmigaOS 3.2. IBM still support it on MVS and z/OS, too.
  26. “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.
  27. 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.

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal