• 0 Posts
  • 587 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
    21 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.





  • 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.



  • Lmao, barely have a conversation? Trump literally can’t even remember what he did or said yesterday, and has literally no plan for actually improving the country in any way shape or form.

    Biden passed the Inflation Reduction Act which actually presents a vision for how to return manufacturing to America and restart it’s economy, while addressing climate change. Trump has no plan to address literally any of that.

    You need to wake up man. They are not even in the same ballpark.


  • 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.




  • No, it’s not a hard decision.

    You’re choosing between two old men, one of whom is an actual politician with a history of accomplishing things and running a country. The other is a mean old pervert who couldn’t run a business without committing fraud. He literally tried to cheat and destroy the system when he lost the first time.

    How the fuck do you think it’s close?