2 ms·
> but will be noticed by literally just running the code once. I assure you that's not the case. Maybe you didn't make that mistake, but if you did I'm sure it
by viraptor 2y ago
> but will be noticed by literally just running the code once.
I assure you that's not the case. Maybe you didn't make that mistake, but if you did I'm sure it sometimes went unnoticed. I've found those issues in my code and in other projects. Sometimes they even temporarily don't matter, because someone did a func(CONST, 0) instead of func(0, CONST) and it turns out CONST is 0 - however the next person gets a crash because they change 0 to 1. A lot of similar issues come from the last line effect https://medium.com/@Code_Analysis/the-last-line-effect-7b1cb7f0d2a1 https://medium.com/@Code_Analysis/the-last-line-effect-7b1cb... and can last for years without being noticed.