I'll be very happy to not have to use Date any more. Pop quiz, what's in whatnum?
js
const vday = new Date('14 February 2025');
const whatnum = vday.getDay() - vday.getMonth();
Err, it's 5... Ha, amazing; that's not even the gotcha I meant to demonstrate. getDay returns the day of the week, the day of the month is returned from getDate.
Take two:
js
const vday = new Date('14 February 2025');
const whatnum = vday.getDate() - vday.getMonth();
So this is 14 - 2 = 12, right? Nope! The day (from getDate) is 1-based whereas month is 0-based, so 14 - 1 = 13.
TypeScript's readonly is compile-time only and has zero runtime cost
This point means that I'll probably never use the good ideas in this post: if I'm doing JS complicated enough to need Object.freeze(), I'll be doing it in Typescript.
This might even be an appropriate use for AI (maybe even running in-browser for privacy). I imagine something that reads your prompt and auto-populates a few rings to search. You review and edit the suggested rings, then click search.
I don't think that's the opposite of plot armour, though - O'Brien was too much a main character (and too popular) to be killed off, so we knew he'd survive the episode/danger/trauma.
He definitely broke his arm more than the rest of the cast combined, but was spared any serious injury until the plot required it.
I just went to look for answers this, since report-uri.com is killing its free tier, and the lowest paid is way higher than my usage justifies. What did you settle on?
Six minutes? ๐ I was feeling crappy about my 30 seconds (my naive big O cubed(?) logic means my code spends most of its time testing array equalities - 72 billion samples in the flamegraph!)
That doesn't work, though.
For a recursive acronym, you want something like ADFRA Didn't Forget Recursive Acronyms.