Re:Google broke a conditional statement that verifies passwo...
by agilob on Thursday July 22, 2021 @05:09PM
(#27924382)
RedHat once committed wrong value of MTWO variable, it was 2, there was another variable called TWO which also had value of 2. It was fixed a few months later with a commit like "change value of MTWO to -2".Sorry, but can't find it find now
[ Parent
| on HN ]
Re:Google broke a conditional statement that verifies passwo...
by saagarjha on Thursday July 22, 2021 @07:18PM
(#27925490)
Perhaps they should have deleted that variable…
Re:Google broke a conditional statement that verifies passwo...
by nitrogen on Thursday July 22, 2021 @07:40PM
(#27925662)
While externalizing repeated constants can be useful (e.g. defining PI_4 for a math routine that uses pi / 4 a dozen times), taken to an extreme like that it leads to more bugs, not fewer.