Switch Statements Fix Everything
Ok so everyone keeps telling me to use switch statements instead of "else if" I don't see the appeal but I changed all my if's to switch statements. Maybe people will stop telling me how to code now. 68 69 /*if (Name.Equals("Gabe")) { GainAccess(2); }*/ 72 73 74 switch (Name) { case "Gabe": GainAccess(2); break; } 80
A programmer replaces an if statement with a switch statement after people keep criticizing their coding style. The joke is that the change is purely cosmetic and does not improve the code, while the commented-out original still reveals the same logic. It is used as a reaction to unsolicited programming advice or pointless refactoring.
- @right_wing_dev_squads / 12056 2025-05-06
- Type
- image
- Size
- 671×800 · 65.0 KiB
- Mood
- sarcastic
- Language
- en
- Added