Re:`three = 1` in the Linux sourcecode (2014)
by forgottenlogin9 on Tuesday March 09, 2021 @09:13AM
(#26398929)
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?
[ Parent
| on HN ]
Re:`three = 1` in the Linux sourcecode (2014)
by esrauch on Tuesday March 09, 2021 @09:23AM
(#26399013)
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.
Re:`three = 1` in the Linux sourcecode (2014)
by scotty79 on Tuesday March 09, 2021 @10:49AM
(#26399935)
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.