Re:Five bugs in a single line of JavaScript
by Wilduck on Friday November 18, 2011 @02:22PM
(#3252986)
I disagree. I would say there is a distinction between an error and a bug. There's certainly some grey area there, but, for example, if my code sets permissions for a directory instead of a file, I made an error. If my code sets permissions for a file, but produces unexpected results in certain cases because of an implementation detail, then that's a bug.
[ Parent
| on HN ]
Re:Five bugs in a single line of JavaScript
by eridius on Friday November 18, 2011 @04:14PM
(#3253441)
A bug is code that doesn't behave as the author intended it to. It doesn't matter if the bug is due to some subtle interaction in the language, or just plain bone-headedness on the part of the programmer.