Const Memes

Posts tagged with Const

Thanks I Hate Variable Variables

Thanks I Hate Variable Variables
JavaScript developers really woke up one day and said "Let's create four different ways to declare variables, each with subtly different rules that will absolutely destroy newcomers' sanity." And then they had the audacity to add const const which is technically valid syntax. The real horror is that last example where var var lets you mutate your string into whatever Lovecraftian nightmare you want. No wonder half of Stack Overflow is just people asking "why doesn't my variable work?" Ten years of experience and I still occasionally get bitten by this nonsense.

Yesterday I Discovered The Mutable Keyword

Yesterday I Discovered The Mutable Keyword
15 years of C++ experience and just discovered mutable ? That's like being a plumber for decades and suddenly finding out toilets have a flush mechanism. The cat's face in the last panel is the universal expression of "I've been using const_cast this whole time for nothing." Nothing quite says "expert" like realizing fundamental language features have been hiding in plain sight since 1998.

Recipe For Disaster

Recipe For Disaster
Just because you can do something doesn't mean you should . This code is the programming equivalent of naming your twins "Twin1" and "Twin2" then wondering why they need therapy. Using keywords as variable names, declaring const const , setting 5 = 4 , and claiming 2 + 2 === 5 is true? This isn't just cursed code—it's the kind of abomination that makes senior devs wake up in cold sweats. Future maintainers will hunt you down. Not to ask questions, but for revenge.