• 8 Posts
  • 55 Comments
Joined 1 year ago
cake
Cake day: December 28th, 2023

help-circle
  • renzev@lemmy.worldtoProgrammer Humor@programming.devYes, But...
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    6 days ago

    This is a good practice tho. The HTTP code describes the status of the HTTP operation. Did the server handle it? No? Was the url not found? Did it time out? Was the payload too large? And the JSON describes the result of the backend operation. So 200 OK with error: true means that your HTTP request was all good, but the actual operation bugged out for whatever reason. If you try to indicate errors in the backend with a HTTP error code, you quickly get confused about which codes can happen for what reason.







  • At least in my country, google is going balls-to-the-walls mode with the chrome psyop. Like every third ad on youtube is an ad for chrome. And if you’re a little older, you’ll remember their countless other ad campaigns that propelled chrome into the mainstream. The only reason so many people use chrome is because they’re brainwashed into it.






  • How is ceph working out for you btw? I’m looking into distributed storage solutions rn. My usecase is to have a single unified filesystem/index, but to store the contents of the files on different machines, possibly with redundancy. In particular, I want to be able to upload some files to the cluster and be able to see them (the directory structure and filenames) even when the underlying machine storing their content goes offline. Is that a valid usecase for ceph?








  • renzev@lemmy.worldOPtoProgrammer Humor@lemmy.mlAI's take on XML
    link
    fedilink
    English
    arrow-up
    17
    ·
    7 months ago

    Please don’t. If you need something like json but with comments, then use YAML or TOML. Those formats are designed to be human-readable by default, json is better suited for interchanging information between different pieces of software. And if you really need comments inside JSON, then find a parser that supports // or /* */ syntax.