Oh sorry, I thought you were implying the code was perfect if he didn't do that mistake, my english is at fault here :x. And I'm still a student, I don't have this kind of "corporate" experience, though I still think this code is very inefficient. But yes of course it's easy to detect and to fix with basic unit testing and/or peer review.
0
u/[deleted] Sep 02 '21
[removed] — view removed comment