Hacker News new | ask | show | jobs
by Wilduck 5320 days ago
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.
1 comments

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.