Ask HN: Share your simple, time consuming bugs
I love debugging. It is an art: crudely so when we litter our code with desperate, sometimes vulgar trace statements; elegantly so when we employ careful step-through debugging.
Sometimes though, the bugs get the upper hand for longer than any of us would like to admit.
I think it would be possibly helpful and probably interesting to everyone, to see what kind of bugs have made HN readers believe that their machine acted out of disdain for the programmer attempting to assert control.
3 comments
[ 3.3 ms ] story [ 16.5 ms ] threadWorking with MySQL columns that have the same name as a keyword. My favorites: order, table, and the less-known but equally painful, interval.
mysql> SELECT first_name, last_name, interval FROM users; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM users' at line 1