Re:The most copied StackOverflow snippet of all time is flawed
by cpach on Wednesday September 27, 2023 @11:25AM
(#37676033)
Easy to read is good, but it doesn’t trump correct.
[ Parent
| on HN ]
Re:The most copied StackOverflow snippet of all time is flawed
by ehsankia on Wednesday September 27, 2023 @12:22PM
(#37677017)
Sure, but it's also generally a lot easier to tell if a simple code is correct (the loop over powers of 10) than the more complex ones (using log and pow); especially when it comes to edge conditions.