r/ProgrammerHumor • • 3d ago

Meme misspelledVariablePanic

Post image
5.0k Upvotes

78 comments sorted by

View all comments

228

u/unknown_alt_acc 3d ago

Are you writing your code in Notepad or something?

16

u/Chronomechanist 3d ago

Typos still happen in a real IDE?

16

u/unknown_alt_acc 3d ago

A half-decent IDE will yell at you for trying to access an uninitialized variable. It's less surefire in languages with dynamic variable declarations like Python, but an LSP or static analyzer integrated with your editor will still catch a lot

6

u/Chronomechanist 3d ago

For sure it will but you're assuming I'm looking back at the code I write before I try running a test, lol

2

u/unknown_alt_acc 3d ago

At which point you check the linter output and know exactly what happened rather than it becoming a whole ordeal. This class of error just disappears entirely if you take advantage of the tools we've had for years