“Ah,’ said Arthur, who — for reasons which are unlikely to become clear — found himself in attendance at a C++ committee meeting, ‘this is obviously some strange usage of the word safe that I wasn’t previously aware of.”
so you know how the "warning, vehicle reversing" noise changed from using a beep to using a white-noise burst because it's much easier to pinpoint the location?
we should do that for the smoke alarm low-battery chirp too, because there's one going off somewhere in my apartment building and i think it's in the vacant unit next to mine but i can't pinpoint it properly
[alright, let's try this one again, hopefully I didn’t make any glaring errors this time]
Did you know that humans are fallible?
Did you know that programmers are humans?
Did you know that sometimes programmers make typos?
Did you know that you can mistype a += b as a =+ b and it’ll still compile/run, so long as the language you’re programming in has a unary plus operator, and the return type of +b is assignable to a?
Did you know that it’s even easier to make the same mistake with a -= b as a =- b because unary minus seems to be more commonly available?
Did you know that you can also do this with if (a != b) as if (a =! b) in cases where the result of an assignment expression can be interpreted as a bool, a is mutable, and the unary not operator is also a thing that exists?
Did you know that you can catch the latter case by making a immutable, but that won’t work for the earlier cases?
Did you know that these mistakes might be slightly easier to spot if you use a code formatter that rearranges the whitespace to a = +b etc, but even that still depends on the reader noticing the discrepancy between the intended behavior and the code as written, and in the case of a = -b it might even be harder to spot that something’s wrong?
Did you know that in JavaScript you can typo if (a >= b) as if (a => b) and neither immutability nor the formatter will save you? (But a good linter might.)
Note: The correct response to everything I’ve just written is “oh no”.
y’know if you could tell teenage Luna that she’d be spending a Sunday evening in her 30s watching chemistry lectures of her own free will, she’d think you were mad
⚪️ Next day (extremely convenient) ⚪️ Two weeks (you will forget and be pleasantly surprised when it arrives) ⚪️ 3-4 days (you will be stuck in waiting mode, constantly checking the tracking information, unable to do anything until it arrives)