this post was submitted on 25 Jun 2026
188 points (100.0% liked)
Programmer Humor
31994 readers
271 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Deeper down the rabbit hole, more dangerous "useless" blocks of code won't be found with "find usages" because the usage either:
isn't in the project, and is external. Like a powershell script calling a function present in the DLL, or your system's equivalent. Or even hardware accessing it directly at a known address, like an IRQ table
is accessed via reflection, which the IDE won't know about
for bonus points, the linker depends on it to make a functioning binary. Or some other dodgy code may break at runtime if offset from its original location in the binary..