|
RESTful is pleasant and calming
|
![]() |
|
![]()
|
# ? Jun 18, 2024 20:43 |
|
Xarn posted:I meant it literally means crap. CrAPPs
|
![]() |
|
Xarn posted:I meant it literally means crap. It's this.
|
![]() |
|
Xarn posted:I meant it literally means crap. Oh haha I thought it was some awful term for a minority I'd never heard of or something. I'm honestly not sure there is another term in use though, not that I really understand why you care. Nybble posted:RESTful is pleasant and calming CRUD and RESTful aren't the same thing though. Mega Comrade fucked around with this message at 19:17 on Dec 8, 2022 |
![]() |
|
CRUSTful
|
![]() |
|
I prefer my requests without the crust
|
![]() |
|
We could say Curd. Is Curd better? Curd.
|
![]() |
|
CPColin posted:CRUSTful this is deeply unpleasant and should maybe be the new thread title
|
![]() |
|
bigperm posted:We could say Curd. Is Curd better? Curd. sorry this api is CURDled and we recommend you migrate to the new version
|
![]() |
|
DRUC
|
![]() |
|
We call them getties. GET an object: code:
code:
code:
|
![]() |
|
never stop POSTing
|
![]() |
|
All of the responses are 200 OK with an error message in the JSON payload, right?
|
![]() |
|
nullfunction posted:All of the responses are 200 OK with an error message in the JSON payload, right? I see you've worked with major financial institutions as well.
|
![]() |
|
nullfunction posted:All of the responses are 200 OK with an error message in the JSON payload, right? this is honestly the most minor crime i've encountered with external apis
|
![]() |
|
nullfunction posted:All of the responses are 200 OK with an error message in the JSON payload, right? better than using 412 precondition failed for every input error and never specify what is wrong or how it may be remedied I’m looking at you, Apache Pulsar
|
![]() |
|
nullfunction posted:All of the responses are 200 OK with an error message in the JSON payload, right? I see you have heard the gospel of graphql
|
![]() |
|
500 Internal Server Error Due To Bad Request
|
![]() |
|
champagne posting posted:better than using 412 precondition failed for every input error and never specify what is wrong or how it may be remedied LinkedIn does 400s if you send any of their stupid parameters wrong and no of course they don't tell you which one.
|
![]() |
|
Stupid parameters need the most validation!
|
![]() |
|
prom candy posted:LinkedIn does 400s if you send any of their stupid parameters wrong and no of course they don't tell you which one. Welp I forgot to mention pulsar will also send you back 412 when it is having issues. Like say if you’re creating a namespace, a construct which contains subscriptions and other things, you can by default for my provider only create 1024. The 1025th namespace attempted created will return 412 Also you are allowed to increase the limit leading to further questions like “why” and “what is wrong with this thing god damnit”
|
![]() |
|
Che Delilas posted:500 Internal Server Error Due To Bad User
|
![]() |
|
Ah yes, an external server error
|
![]() |
|
What's the HTTP code for "oops your request made our server explode"?
|
![]() |
|
At my current place, one guy did most of the external facing APIs, and when he left and they got dumped on me, I've noticed most of it threw 420 errors.
Mega Comrade fucked around with this message at 10:33 on Dec 9, 2022 |
![]() |
|
420 Server Up In Smoke
|
![]() |
|
301 Redirected (back to you (as a successful response (here's your json)))
|
![]() |
|
What about cloud flare giving you a 502 even though it got a normal 200 response within the timeout parameter causing the request to get retried despite success
|
![]() |
|
Mega Comrade posted:At my current place, one guy did most of the external facing APIs, and when he left and they got dumped on me, I've noticed most of it threw 420 errors. twitter unofficially added the 420 status code https://developer.twitter.com/ja/docs/basics/response-codes 420 is a status code meaning "enhance your calm." means that your app is being rate limited for making too many requests. hilarious.
|
![]() |
|
CPColin posted:Stupid parameters need the most validation! lol
|
![]() |
|
Che Delilas posted:500 Internal Server Error Due To Bad Request An API unironically returning this because I had a ^ character in my password ![]()
|
![]() |
|
ultrafilter posted:Is there a different term for CRUD apps that sounds less derogatory? Most CRUD apps are Line Of Business Apps, or LOBAs, which might get you want you want. (Of course, LOBA is the short form - the full name is "Boring Line Of Business App," so...)
|
![]() |
|
Really what business apps aren’t CRUD apps anyways?
|
![]() |
|
Ok I'm having real trouble figuring out constructive communication in response to some stuff that a guy on my team does. I just had an quintessential exchange. Here was the existing code (please forgive any syntactic errors, they were just introduced by my obfuscation):JavaScript code:
JavaScript code:
Now either he's right and I still don't understand, or he's wrong, so I get him on Slack, and it turns out that yes, there would be an incorrect overwrite. So he "fixes" it: JavaScript code:
|
![]() |
|
At a first glance, the best comment you could post is “where are the unit tests?” This back and forth would be easily solved if this was a named, tested function.
|
![]() |
|
Harriet Carker posted:At a first glance, the best comment you could post is “where are the unit tests?” This is the best way to say it imo. Argue about the unit test cases it needs to cover. Best case scenario, the person's team had already discussed it or wrote about the important test cases in the Jira ticket or whatever.
|
![]() |
|
Also like, some people spend 4-5 years improving and other people just don’t. Usually the people in the first group leave your company after a couple of years of course.
|
![]() |
|
Harriet Carker posted:At a first glance, the best comment you could post is “where are the unit tests?” I used to code like the offending coworker, for me it was all about moving as fast as possible to "show skill" at software development. I solved it by writing unit tests as well. It forces me to slow down and consider edge cases instead of smashing the commit button
|
![]() |
|
raminasi posted:Ok I'm having real trouble figuring out constructive communication in response to some stuff that a guy on my team does. I just had an quintessential exchange. Here was the existing code (please forgive any syntactic errors, they were just introduced by my obfuscation): Murder them and build your codebase upon his corpse
|
![]() |
|
![]()
|
# ? Jun 18, 2024 20:43 |
|
Yeah looks like they just want to close the ticket and you're in the way.
|
![]() |