• 0 Posts
  • 138 Comments
Joined 1 year ago
cake
Cake day: June 22nd, 2023

help-circle




  • I found both sides rather aggressive to be honest. The implication that the use of “he” implies that the author assumes every user is male comes with an implied accusation of some form of misogyny.

    No, it didn’t. Go read the PR, it’s extremely polite. I in fact, would challenge you to try and think of a more polite and less accusatory way of bringing up the same issue. I can’t.

    Furthermore, the “generic he” has also been acceptable English for centuries, and has only been starting to be phased out in the past few decades.

    Yeah, you know what else has only been around for the past “few” decades? Literally every single computer and piece of software ever made, you know what literally none of them do? Refer to their users as “he”.

    You want to make it sound like it’s a simple ESL mistake? That’s fine you’re welcome to believe that, but do you know how I respond to translation mistakes when I’m speaking a foreign language? I laugh and say oops, sorry, my mistake I’ll fix that. I don’t say “don’t bring your politics into this”.

    I’m sorry but you are making up a fantasy to try and believe that the author wasn’t being an explicit asshole.











  • masterspace@lemmy.catoProgrammer Humor@programming.devTrying to understand JSON…
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    6 days ago

    No there isn’t.

    Tell me how you partially change an object.

    Object User :

    { Name: whatever, age: 0}

    Tell me how you change the name without knowing the age. You fundamentally cannot, meaning that you either have to shuttle useless information back and forth constantly so that you can always patch the whole object, or you have to create a useless and unscalable number of endpoints, one for every possible field change.

    As others have roundly pointed out, it is asinine to generally assume that undefined and null are the same thing, and no, it flat out it is not possible to design around that, because at a fundamental level those are different statements.





  • masterspace@lemmy.catoProgrammer Humor@programming.devTrying to understand JSON…
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    2
    ·
    edit-2
    6 days ago

    They’re not subtle distinctions.

    There’s a huge difference between checking whether a field is present and checking whether it’s value is null.

    If you use lazy loading, doing the wrong thing can trigger a whole network request and ruin performance.

    Similarly when making a partial change to an object it is often flat out infeasible to return the whole object if you were never provided it in the first place, which will generally happen if you have a performance focused API since you don’t want to be wasting huge amounts of bandwidth on unneeded data.


  • Because usually if you end up at the API reference in that situation it’s a code / project smell that other stuff is going wrong.

    If I want to use a library to do something, you should be able to search for what you want to do + language / framework, find the library’s docs, follow the install instructions and then look through the highest level API / instructions and then just go from there.

    If you find yourself confused at unhelpful API references that just means that they have badly written top level API docs, badly written intros, or quite probably just badly written APIs.