Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
namanyayg
on Dec 27, 2020
|
parent
|
context
|
favorite
| on:
Fun with IP address parsing
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.
hajhatten
on Dec 27, 2020
[–]
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: