Language quirks Memes

Posts tagged with Language quirks

Nobody Understands Me, Maybe I'm JavaScript

Nobody Understands Me, Maybe I'm JavaScript
The existential crisis of JavaScript in two panels. Top: sad face, "Nobody understands me." Bottom: sudden realization, "Maybe I'm JavaScript." JavaScript: the only language where [] == ![] is true, typeof NaN is "number", and adding arrays gives you strings. No wonder therapists refuse to take JS as a client โ€“ its issues are beyond professional help.

Well Which Is It

Well Which Is It
JavaScript: "NaN stands for 'Not A Number'" Also JavaScript: typeof NaN returns 'number' This is peak JavaScript energy right here. The language literally created a special value to tell you something isn't a number, then categorized it as a number. It's like labeling a vegetarian dish "Contains No Meat" and listing the first ingredient as beef. Just another day in JS wonderland where nothing makes sense and we're all pretending it's fine.

Still Dont Like Matlab Tho

Still Dont Like Matlab Tho
The eternal programmer struggle summed up perfectly! Our adventurer discovers the "scroll of truth" only to find out that MATLAB's bizarre 1-indexed arrays actually make mathematical sense. The immediate "NYEHHH" reaction and throwing the scroll away is every programmer who's been traumatized by switching between languages. Sure, it might make sense for math nerds, but try explaining that to my muscle memory after 10 years of array[0] . This is like finding out your arch-nemesis has a valid point - technically correct but I'll die on this zero-indexed hill anyway!