Surely "1337" is the same as 1337, right?
Surely "1337" is the same as 1337, right?
Meme transcription:
Panel 1: Bilbo Baggins ponders, “After all… why should I care about the difference between int and String?
Panel 2: Bilbo Baggins is revealed to be an API developer. He continues, “JSON is always String, anyways…”
2 crossposts
You're viewing a single thread.
All Comments
116 comments
It's the API's job to validate it either way. As it does that job, it may as well parse the string as an integer.
7 1 ReplyI refuse to validate data that comes from the backend I specifically develop against.
6 0 Reply8 0 Reply
116 comments
Scroll to top