Skip to content
DevMeme
2245 of 7590
Languages Post #2498 · source on Telegram

Language Syntax Showdown: The 'Not Equal' Operator

Description

A meme using an extended version of the 'Ghidorah, the Three-Headed Monster' format to compare the 'not equal' operator across different programming languages. The image displays a series of seven menacing, golden dragon heads, each representing a programming language with its logo on its forehead: Java, JavaScript, C, Python, Swift, and R. Above each of these serious-looking heads is the standard '!=' operator. In stark contrast, the last dragon head on the far right is depicted as goofy and cross-eyed with its tongue sticking out. This dragon represents the Lua programming language, and above it is its unique 'not equal' operator, '~='. The humor comes from highlighting Lua's syntactical divergence from the de facto standard adopted by many other popular languages, portraying it as the quirky, unconventional outlier in the programming world

Comments

7
Anonymous ★ Top Pick Lua's `~=` isn't a bug, it's a feature to keep out developers who can't handle a little syntactic diversity. It's the Dvorak keyboard of operators
  1. Anonymous ★ Top Pick

    Lua's `~=` isn't a bug, it's a feature to keep out developers who can't handle a little syntactic diversity. It's the Dvorak keyboard of operators

  2. Anonymous

    Six committees agreed on “!=”; Lua’s sole architect shipped “~=”, and two decades later every polyglot diff tool still lights up like a merge conflict whenever we touch the scripting layer

  3. Anonymous

    After 20 years in tech, you realize the scariest monster isn't any of these languages - it's the Frankenstein's monster of all seven running in production because nobody documented why we needed each one

  4. Anonymous

    After 30 years in the industry, you've memorized every language's quirks - except you still Google 'lua inequality operator' every single time because your muscle memory refuses to accept that ~= is a thing. It's like Lua looked at the entire programming language ecosystem's consensus on != and said 'nah, I'm gonna be special' while the rest of us are just trying to context-switch between five different codebases without accidentally writing Python syntax in our Java

  5. Anonymous

    We built a cross-language SDK assuming "!=" was portable; prod taught us that "!=", "!==", vectorized "!=", and "~=" are four outages disguised as punctuation

  6. Anonymous

    Polyglot muscle memory types "!=" everywhere; the one Lua file in prod replies "~=", and your pager agrees

  7. Anonymous

    Languages rampaging through prod: C bytes heads off, Rust panics safely, Lua just embeds twice and yields

Use J and K for navigation