3 ms·
Maybe I've been drilled too hard by a couple of programming gurus, but I immediately noticed there are quite a lot of repeated yet unnamed magic constants in th
by stinos 12y ago
Maybe I've been drilled too hard by a couple of programming gurus, but I immediately noticed there are quite a lot of repeated yet unnamed magic constants in the (otherwise pretty clean) code. According to wikipedia [1] the rule to not use them is even one of the oldest in programming. Curious what kind of profanity Linus would come up with when confronted with this :]
[1] https://en.wikipedia.org/wiki/Magic_number_%28programming%29#Unnamed_numerical_constants https://en.wikipedia.org/wiki/Magic_number_%28programming%29...