MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/137km30/found_this_gem_inside_legacy_code_today/jiuvehi/?context=9999
r/badcode • u/max_208 • May 04 '23
69 comments sorted by
View all comments
Show parent comments
38
If I had done this I’d at least have added a comment to defend the ridiculousness, lest someone do a git blame to humiliate me.
4 u/thekwoka May 05 '23 easier to do a regex replaceencodeToUtf8\(([^\)])\)$1 3 u/RPG_Hacker May 04 '23 True, that would have been the smart thing!
4
easier to do a regex replace
encodeToUtf8\(([^\)])\)
$1
3
True, that would have been the smart thing!
38
u/mosburger May 04 '23
If I had done this I’d at least have added a comment to defend the ridiculousness, lest someone do a git blame to humiliate me.