• 0 Posts
  • 74 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle
  • Don’t use JSON for the response unless you include the response header to specify it’s application/json. You’re better off with regular plaintext unless the request header Accept asked for JSON and you respond with the right header.

    That also means you can send a response based on what the request asked for.

    403 Forbidden (not Unauthorized) is usually enough most of the time. Most of those errors are not meant for consumption by an application because it’s rare for 4xx codes to have a contract. They tend to go to a log and output for human readers later, so I’d lean on text as default.




  • I just recently started working with ImGui. Rewrite compiled game engines to add support for HDR into games that never supported it? Sure, easy. I can mod most games in an hour if not minutes.

    Make the UI respond like any modern flexible-width UI in the past 15 years? It’s still taking me days. All of the ImGui documentation is hidden behind closed GitHub issues. Like, the expected user experience is to bash your head against something for hours, then submit your very specific issue and wait for the author to tell you what to do if you’re lucky, or link to another issue that vaguely resembles your issue.

    I know some projects, WhatWG for one, follow the convention of, if something is unclear in the documentation, the issue does not get closed until that documentation gets updated so there’s no longer any ambiguity or lack of clarity.



  • Either do a left join and repeat all the post values for every tag or do two round-trip queries and manually join them in code.

    JSON_ARRAYAGG. You’ll get the object all tidied up by database in one trip with no need to manipulate on the receiving client.

    I recently tried MariaDB for a project and it was kinda neat, having only really messed with DynamoDB and 2012 era MsSQL. All the modern SQL languages support it, though MariaDB and MySQL don’t exactly follow the spec.






  • ShortFuse@lemmy.worldtoMemes@sopuli.xyzMonopoly
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 months ago

    That’s three ad-hominem attacks. But sure, those are your “arguments”. Well argued. /s

    But of course, when you have nothing meaningful to say, you just attack people. I guess that’s to be expected. Just blame the person when you get called out. You could have taken this as a lesson and admitted you were wrong, and learned, but you decided to double down and insult people instead. Well argued.


  • ShortFuse@lemmy.worldtoMemes@sopuli.xyzMonopoly
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 months ago

    Stop deflecting and stop trying to gaslight me. If prisons are the same as jails in this regard then why dispute? Why even bring it up? You’re retroactively trying to save face.

    I am fully aware how prisons and jails are similar and how they are different. You’re the one who was trying to correct somebody and then got downvoted to oblivion.

    Oh, but now you were just randomly bringing an unrelated technical point about how jails can hold innocent people now that you’ve been confronted with the facts. /s



  • ShortFuse@lemmy.worldtoMemes@sopuli.xyzMonopoly
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    4 months ago

    I don’t have to distract with cheap ad-hominem attacks when I can quote your words right back to you:

    Prison. Not jail.

    Jails are temporary holding areas until you get to see a judge. Which means you could still be innocent at that point.


  • ShortFuse@lemmy.worldtoMemes@sopuli.xyzMonopoly
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    edit-2
    4 months ago

    Yep. That’s the right definition. Not what you said. You said jail is for innocent people. You also said the definition doesn’t differ no matter where you are and the link clearly defined the US can have a different interpretation (see interchangeable use).


  • ShortFuse@lemmy.worldtoMemes@sopuli.xyzMonopoly
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    4 months ago

    You should read what you link to (emphasis mine).

    Jail and prison are often used interchangeably as places of confinement. If you want to be specific jail can be used to describe a place for those awaiting trial or held for minor crimes, whereas prison describes a place for criminals convicted of serious crimes.

    You said:

    Jails are temporary holding areas until you get to see a judge. Which means you could still be innocent at that point.

    You can be convicted and in jail, which makes perfect sense in Monopoly, since it’s generally for a shorter period of time. They are both synonymous for the purpose of imprisoning somebody but different on how drastic the crimes you are behind bar for. In my opinion you should be in jail for minor crimes and not put in prison and it’s perfect for Monopoly.