yacgta@infosec.pub to Programmer HumorEnglish · 1 年前Experienced engineer examines comments in a legacy codebaseinfosec.pubimagemessage-square6fedilinkarrow-up1230arrow-down11file-text
arrow-up1229arrow-down1imageExperienced engineer examines comments in a legacy codebaseinfosec.pubyacgta@infosec.pub to Programmer HumorEnglish · 1 年前message-square6fedilinkfile-text
minus-squarephilmlinkfedilinkEnglisharrow-up7·1 年前// This enters the if branch if "myVar" == true while otherVar == 42 { // do something }
minus-squareMikelius@beehaw.orglinkfedilinkEnglisharrow-up2·1 年前Lmao I’ve unfortunately seen stuff like this, where other parts of code that looked like just made up stuff had zero comments. Basically comments only where they weren’t needed and lacking where they’re needed
// This enters the if branch if "myVar" == true while otherVar == 42 { // do something }
Lmao I’ve unfortunately seen stuff like this, where other parts of code that looked like just made up stuff had zero comments. Basically comments only where they weren’t needed and lacking where they’re needed