Skip to content
DevMeme
3340 of 7590
CodeQuality Post #3669 · source on Telegram

When your variable name violates every style guide at once

Description

The image shows a dark themed code editor window with rounded corners and three macOS traffic-light buttons (red, yellow, green) in the top-left. Centered in the editor is a single JavaScript line: “const vARIABLE_nAME = '';”. The keyword “const” is syntax-highlighted in muted blue, while the variable identifier is a chaotic mix of lowercase, uppercase, and an underscore, instantly clashing with any sane camelCase or snake_case convention. The snippet humorously captures the nightmare of inconsistent naming conventions that senior devs battle during code reviews and the inevitable linter complaints about readability and maintainability

Comments

21
Anonymous ★ Top Pick Pretty sure this variable was named by an argument merge between Prettier, ESLint, and a Friday-afternoon intern git-revert
  1. Anonymous ★ Top Pick

    Pretty sure this variable was named by an argument merge between Prettier, ESLint, and a Friday-afternoon intern git-revert

  2. Anonymous

    After 20 years in the industry, I've seen microservices become nanoservices, watched Kubernetes eat the world, and survived three JavaScript framework apocalypses - but I still spend 30 minutes debating whether it should be getUserById, fetchUserWithId, or retrieveUserUsingIdentifier, only to ship it as temp_user_thing and promise myself I'll refactor it later

  3. Anonymous

    When your junior dev asks 'what naming convention should I use?' and you reply 'yes' - this is what you get. It's like they ran every style guide through a blender and picked the chunks that survived. The real tragedy? This would pass the compiler but fail every code review from here to eternity. At least they used const instead of var, so there's that one redeeming quality in this monument to chaos

  4. Anonymous

    'LGTM except rename VARIABLE_NAME' - the code review comment that unites juniors and grizzled architects alike

  5. Anonymous

    vARIABLE_nAME: where Prettier shrugs, @typescript-eslint/naming-convention throws a fit, and the rest of the sprint becomes a bikeshed on consistency at scale

  6. Anonymous

    We spent a week bikeshedding the naming convention and still shipped Hungarian_snakeCamelCase; turns out const guards values, not institutional memory

  7. @kostya_qwerty123 4y

    Nice meme sir

  8. Deleted Account 4y

    dEV-mEME

    1. @luminyanko 4y

      emem_ved

  9. @thisisluxion 4y

    good morning to everyone except the guys who do this

  10. @SamsonovAnton 4y

    Is overscore allowed in identifiers?

    1. @nuntikov 4y

      No

  11. @QutePoet 4y

    You may also add sex pose number you were at, when you decided with it's naming, to variable name.

    1. @SamsonovAnton 4y

      ... in Roman notation. 🧐

      1. @QutePoet 4y

        Please remember that's also reversed according to the case style.

        1. @SamsonovAnton 4y

          Since any Roman numeral constitute a totally valid identifier, then why bother with meaningful prefixes for them? i iI iII iV v vI ... Say goodbye to i, j, k - that's way too mainstream!

          1. @QutePoet 4y

            But you need to take care of the reversed IV, don't you?

            1. @SamsonovAnton 4y

              It's someone else's job to read and understand the code!

  12. @Jlerat 4y

    Disgusting

  13. @qtsmolcat 4y

    I personally prefer mOcK-dAsH-cAsE

  14. @kennyotsu 4y

    This is beyond cursed

Use J and K for navigation