r/badcode • • Jul 08 '19

c# While reviewing code today...

Post image
696 Upvotes

57 comments sorted by

View all comments

1

u/[deleted] Jul 09 '19

I suspect somebody typed Url with the capitalized 'U', got an undeclared variable error, had 5pm brain and didn't look, and took either a weird IDE autocorrect suggestion are "fixed" it by prepending the Class name (5pm brain let's you get away with this crap). Or most likely he/she reversed the assignment and forgot to change the RH side.