r/badcode • • Jul 08 '19

c# While reviewing code today...

Post image
696 Upvotes

57 comments sorted by

View all comments

0

u/[deleted] Jul 08 '19

[deleted]

21

u/shrekthethird2 Jul 08 '19

True, but if that is so, the function's "url" argument is pointless and confusing as hell. It could be that this signature was forced upon the implementer, but then I'd expect a clarifying (and apologetic) comment. All in all, it's either stupid or evil, or both.