The biggest programming trap that has causes a lot of griefs in my live is the
following:
Typing:
if ($some_variable = "some_value) {
//Do something
}
while trying to express
if ($some_variable == "some
The biggest programming trap that has causes a lot of griefs in my live is the following:
Typing:
if ($some_variable = "some_value") {
//Do something
}
while trying to express
if ($some_variable == "some_value) {
//Do something
}
That elusive bug is sintactically correct, and it does not create any errors for most language runtimes.
Furthermore, it produces the expected behavior half the time.
Just now I wasted more than 3 hours for that.
Three years ago, I lost the ACM programming contest for the same bug.