Today I’ll highlight one of my favorite anti-patterns - “Forgot my keys” (aka “Storyteller” or “Grandpa Simpson code”)
in Pseudo-code:
load variables;
start loop
did I remember to load my variables? I better load them again.
oh yeah, I need to reset the counter first
output string
output other string
load more variables
output another string
check the counter
//couple of random comments
did I load that other thing I needed? better check
end loop
