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

help-circle




  • masterspace@lemmy.catoProgrammer Humor@programming.devTrying to understand JSON…
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    7 hours 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
    2
    arrow-down
    1
    ·
    edit-2
    16 hours 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.



  • The problem with copyright has nothing to do with terms limits. Those exacerbate the problem, but the fundamental problem with copyright and IP law is that it is a system of artificial scarcity where there is no need for one.

    Rather than reward creators when their information is used, we hamfistedly try and prevent others from using that information so that people have to pay them to use it sometimes.

    Capitalism is flat out the wrong system for distributing digital information, because as soon as information is digitized it is effectively infinitely abundant which sends its value to $0.




  • Man this is fucking asinine. No one hates you. Certainly not the actual researchers and engineers building these products.

    Capitalism fucks over everyone who’s not immediately useful. AI is just modelling algorithms after neurons and discovering that that lets us solve a whole new class of fuzzy pattern matching problems.

    The two of them together promises to fuck us over even more because that was one of the main things that we used to be better than computers at, but the solution is not remove the new technology from the equation, it’s to remove the old and broken system of resource allocation that has and continues to fuck us no matter what.






  • You’re really trying yourself in knots to try and blame the big bad corpos and no one else.

    Yes they are shoving it in people’s faces, and when the average person uses their default browser with a default search engine and searches on Bing and it uses AI in addition to a search index they are to blame, but every single user who intentionally seeks out ChatGPT or Copilot is also to blame.

    It’s a new technology, people are going to use it and burn energy with it and then eventually we will make a more efficient version of it as it matures, similar to everything else, including traditional search.