Skip Navigation
What is your preferred API error response and why?
  • Message straight on the body is the worst possible response for an error here, it is bad design to straight up show the error from the back end to the user, usually it needs translation and/or adaptation due to message size on the front-end to show properly, and applying those on top of a message will make it stop working as soon as anyone in the backend decide to change a dot or comma anywhere. It is a bad idea to let the backend make direct impact in the front when you can because backend devs won't even know what impact they are causing until later in testing and it will be harder to trace back and fix.

    IMO you need at least a json with code and message, the front will ignore the message for everything but testing and use the code to match a translation file that will get the proper message, making it easy to translate and change as needed without having to rebuild the whole backend along with front changes. You may also have an extra parameter there in some cases when you want to return where more specifically the error occurred or an array of errors. Status usually not needed as you can get those from the http code itself.

  • Palworld studio admits it can't "keep up" with cheaters, says anti-cheat solution on the way
  • Yeah, but at least there's the recent servers tab on the left and you can use that to join your private servers without typing the server address every time, just the password. A friend had to tell me that as my eyes completely missed this tab existing.

  • What Pokemon game should I play next?
  • About SuMo and USUM, I played both as they came out and thought it was really fun seeing the differences in story, from the middle on it becomes like two entirely different games, if you are a fan I would recommend both. If I had to choose, I would say USUM is the more complete game, has more content and side content, more story and even an interesting post game story that is definitely worth playing for any fan of the older games, and I am legit surprised seeing people talk about SuMo being preferred because my experience with everyone I talked about this has always been people preferring USUM.

    About BDSP, biggest complaint is how they remade the old games but did not do almost anything new to it, didn't even add the extra story from platinum which makes platinum be a more complete experience than even these remakes. They're fine but underwhelming.

    So if you only want one, I'd say USUM. If you are considering all and deciding on the order, I'd say SuMo, then BDSP to take a little break, and then back to USUM.

  • What to play after experiencing Chrono Trigger?
  • There are a lot of good jrpg recommendations in this thread, but more focused on the jrpgs of that time. If you are looking for something more recent, I can't recommend Persona 5 enough, you don't need to have played the earlier ones as the stories are independent from each other, it is as good as Chrono Trigger for me, and now quite accessible since persona 5 royal came to pc and all consoles. The recent dragons quest games are also pretty good.

  • How do i stop this kind of pop up from ever appearing again? Win10
  • I saw this exact popup yesterday, I remember seeing something similar to it before but it has been quite a while. The thing is, this single popup broke my computer entirely, I was playing a game and it jumped in front of the game, immediately stole the games inputs and I couldn't even pause it. Then clicking don't switch did absolutely nothing and the popup remained there, and any attempt to forcefully close the popup failed. Also, I was streaming at the time to my tv, and attempting to use any system related screen is blocked (and this popup counts as a system settings screen!), So it just crashed the entire thing while I was trying to dismiss or close it. I was stuck and couldn't even reboot, had to hold the button and lose any progress I had in the game.

    So yeah, I would be very interested in not letting this happen again as well.

  • Why are 3rd party apps still working?
  • I can't say about all of them, but the RiF developer clarified it for the verge, taken from this link :

    If RIF is still working for you when you’re logged out, here’s why.

    “When users are logged out, the app is still working because it does not use the OAuth client credentials while logged out,” developer Andrew Shu tells The Verge in an email. However, he expects that the app will stop working in this way soon.

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)DA
    DaniloT @lemmy.world
    Posts 0
    Comments 10