Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Funny bug :) I often prefix integers with a char, e.g. maybe "u12345" here, in places where I'm using integers as id to force a string conversion and avoid any code accidentally doing math on it.


Huh, I'm gonna try to remember this. You'd be surprised how lazy people get, even when money's involved.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: