Just memorize popular stackoverflow answers.
/dpt/ - Daily Programming Thread
Give one rational answer why this code is bad without cargo culting
>code in Haskell all day
>facebook ad for meeting asian milfs
They are getting better every day
You mean besides the fact that the developer could've made pic related 3 times shorter by just using a switch case?
They really aren’t.
t. Gnutella/Freenet "hacker"
Wtf now jewtube is recommending me programming videos made by literal kikes. Fuck off and take your judaism with you, jewgle.
I don't see ads.
I think there might be something wrong with your browser. Might want to check that out.
Not ad. Recommended section. I use Adblock.
Use System.Globalization instead off rolling your own scuffed solution. One could literally reduce this code to ~3 lines while making it a lot more efficient, safe and easy to refactor.
Alternatively:
Use a switch with an enum. A jump table is A LOT more efficient than doing a bunch of string comparisons and you also gain type safety.
Group similar cases to make it more readable and concise.