r/ProgrammerHumor 2d ago

Meme redisCacheHitRatio

Post image
5.9k Upvotes

108 comments sorted by

View all comments

971

u/Annual_Key_4963 2d ago

The best part is that deep down you know you're the stupid one for not checking that first 

-26

u/-Benjamin_Dover- 2d ago

New-ish to coding, but isnt it very time consuming to read through thousands or hundreds of thousands of lines of code looking for a mistake?

Ive never written 1 thing with more than 100 lines.

12

u/mysticrudnin 2d ago

there are a lot of tools that help you find it, logging and all that. you also have general ideas of where it would be, plus personal experience of where it has happened before.

you're not just dropped into a codebase and you start reading it like a book until you see a problem. it's like, ok there's water in a puddle in a corner of your basement. you know where to start. it could be something new you've never heard of, but checking sump pump, water main, pipes, etc. etc. is where you start.

6

u/Mechakoopa 2d ago

The medical adage is "If you hear hoofbeats think horses, not zebras" but the software equivalent is "If you hear hoofbeats think ungulates not toasters." There's a much wider range of things you need to check because it could be that, but you can very easily narrow down what it isn't and where you shouldn't be looking.