• 0 Posts
  • 213 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle
  • tyler@programming.devtoProgrammer Humor@lemmy.mlEvil Ones
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    12 hours ago

    JSON schema is not a standard lol. 😂 it especially isn’t a standard across languages. And it most definitely isn’t an ISO standard 🤣. JSON Data Interchange Format is a standard, but it wasn’t published until 2017, and it doesn’t say anything about 1.0 needs to auto cast to 1 (because that would be fucking idiotic). https://datatracker.ietf.org/doc/html/rfc8259

    JSON Schema does have a draft in the IETF right now, but JSON Schema isn’t a specification of the language, it’s for defining a schema for your code. https://datatracker.ietf.org/doc/draft-handrews-json-schema/

    Edit: and to add to that, JavaScript has a habit of declaring their dumb bugs as “it’s in the spec” years after the fact. Just because it’s in the spec doesn’t mean it’s not a bug and just because it’s in the spec doesn’t mean everywhere else is incorrect.


  • JavaScript only has a single number type, so 0.0 is the same as 0. Thus when you are sending a JS object as JSON, in certain situations it will literally change 0.0 to 0 for you and send that instead (same with any number that has a zero decimal). This will cause casting errors in other languages when they attempt to deserialize ints into doubles or floats.






  • Yeah I’ve literally never had anyone bail on a party. If they are they just aren’t your friends (if they’re doing it consistently, things do happen of course).

    I don’t agree with the invite everyone thing, but my brother-in-law does that and it seems to work for him. My wife and I hate it though because he always invites the worst people just because he’s trying to make sure people actually show up. So we get terrible ex girlfriends at things like a family camping weekend.










  • Nope, because I don’t give one shit about those kinds of games. Nintendo and indie games have never cared about graphics and performance. I haven’t owned a PlayStation since the PS2, and I’ve never owned an Xbox. Crazy how if your only console is a Nintendo then you never really care about that stuff. I do have a gaming pc but still play mostly indie games.