Thanks I Hate It

Thanks I Hate It
naming-conventions-memes, bad-code-memes, code-review-memes, variable-naming-memes, clean-code-memes | ProgrammerHumor.io

Someone decided to name a variable newItem and then immediately create another one called... newItem(). You know, the function. Because why have readable code when you can speedrun your coworker's mental breakdown?

The real crime here is that this probably passed code review. Someone looked at this, shrugged, and clicked approve. Now you're stuck debugging why item isn't doing what you expect, only to realize you've been calling a constructor when you meant to reference the variable, or vice versa.

This is the naming convention equivalent of parking across two spaces. Technically allowed, but deeply offensive to everyone around you.

More Like This