Hacker News new | ask | show | jobs
by forgottenlogin9 1925 days ago
If that is insane, you may not have issue with this specific line but you surely have issue with the 2 “insane” lines that follow it?
2 comments

All three lines would be "insane" if the variables weren't mutated. As in a variable named "three" is insane if it solely contains either of the values 1 or 3.

When it contains other values it is still subpar variable naming.

If something looks insane, but probablu sane person made it and it works then that's usually good indicator that you are missing part of the picture and should look around. It still might be bad, but probably not insane.