Reading Time: 4 minutesA few years back I ran into a difficult situation on a project: I needed to find out where a particular CSS selector was used. I had a static version of the site, and so I did what any fool … Continue reading
Author: paceaux
When Jest and TypeScript tell you “missing initializer in const declaration”
Reading Time: 3 minutesWhile I generally avoid TypeScript, I’m willing to acknowledge that there might be edge cases where it could be useful. And in an effort to actually learn how to make it useful, I’m converting one of my linguistic / NLP … Continue reading
Man vs AI vs Man: The Register Problem
Reading Time: 5 minutesThanks to a solid 55 years or so of film and TV telling us that the AIs we create will try to kill us, and then watching ChatGPT and operator-attacking-murder-AIs emerge in roughly the same 6 month time frame , … Continue reading
Why is it so hard to copy an object in JavaScript
Reading Time: 6 minutesHave you ever sat down to write a bit of JavaScript thinking, “this is easy; shouldn’t take more than a few minutes,” and then six hours later there you are with a bottle of whisky in one hand and a … Continue reading
Weird JavaScript: Arrays and the weird ways we can(‘t) define them
Reading Time: 8 minutesThe JavaScript array. A simple, elegant data structure. Easy to make them. Easy to add data to them. Easy to sort them. Easy to iterate on them. What could possibly be weird about JavaScript arrays?
Why does JavaScript have null AND undefined?
Reading Time: 3 minutesA complaint I hear sometimes from folks programmers learning JavaScript is that it has both null and undefined. If JavaScript is your first programming language, this may not seem weird, but once you compare it to others… yeah, it’s strange. … Continue reading
Does Speaking Two Dialects Make You Bilingual or Something Else?
Reading Time: 3 minutesAbout every month I find myself looking at some US Dialect Map trying to figure out where some person I’ve met fits in. And inevitably it takes me back to pondering the fact that in my own family we speak … Continue reading
Weird JavaScript: How to make enemies with type coercion
Reading Time: 2 minutesWho cares about friends? How would you like to piss of Todd who won’t shut up about this season’s IPAs and Elon Musk’s 4D chess he’s playing on Twitter? Screw Todd. No one likes him and he deserves to hurt … Continue reading
Do signed languages have accents and dialects?
Reading Time: 2 minutesFor the last two years my wife and I have been privately taking ASL (American Sign Language) lessons. We are far from fluent but we’re also well beyond introductions and names. And something that you might wonder is, “are there … Continue reading
Weird JavaScript: Why does JavaScript have a === ?
Reading Time: 2 minutesThis is another one in the occasional series of, “weird JavaScript” where I address weird stuff in JavaScript that only haunts your nightmares if you dream in other programming languages. Today we discuss what the hell === actually does. Buckle-up … Continue reading