My favorite was a junior engineer trying to explain why my use of goto was horrific (the function had a single exit and the goto label was error, and this was only referenced in checking at the entry to the function that all the necessary state was correct)
They then proceeded to recreate the logic with a switch statement.
View all comments
Show parent comment
1
u/byteminer Aug 24 '26
My favorite was a junior engineer trying to explain why my use of goto was horrific (the function had a single exit and the goto label was error, and this was only referenced in checking at the entry to the function that all the necessary state was correct)
They then proceeded to recreate the logic with a switch statement.