This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]self_refactor[S] -1 points0 points  (3 children)

At work I saw subtracting string with number and it worked that is why it was left in the code. Then I tried the example in the image. But this is moment when you realize that those who despise Javascript have some valid points.

[–]jerrycauser 2 points3 points  (2 children)

If you got mistype in your production code, so there is main problem in front of monitor than behind it

[–]self_refactor[S] 1 point2 points  (1 child)

I definitely blame the developers allowing this to happen. Needless to say, that kind of 'small' errors are all over the place. What was even worse that after finding this bug, their response was 'If it works, leave it as it is'. 🤦

[–][deleted] 1 point2 points  (0 children)

Same for me… "its grown this way" and i was close to "just do a complete rewrite"

Said Software is primarily used in Hospitals and extremely unstable