@crunklord420
If it looks stupid but it works, it ain't stupid.
No need to overdesign.
@LukeAlmighty @crunklord420 rewrite it into a switch statement and a smart compiler could optimize it into a compact radix tree lookup which i think can potentially be faster than parsing a string into an integer
Fact check: This post contains misinformation.