|
RESTful is pleasant and calming
|
# ? Dec 8, 2022 17:00 |
|
|
# ? May 10, 2024 11:01 |
|
Xarn posted:I meant it literally means crap. CrAPPs
|
# ? Dec 8, 2022 17:07 |
|
Xarn posted:I meant it literally means crap. It's this.
|
# ? Dec 8, 2022 17:35 |
|
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 |
# ? Dec 8, 2022 19:12 |
|
CRUSTful
|
# ? Dec 8, 2022 19:16 |
|
I prefer my requests without the crust
|
# ? Dec 8, 2022 19:21 |
|
We could say Curd. Is Curd better? Curd.
|
# ? Dec 8, 2022 19:25 |
|
CPColin posted:CRUSTful this is deeply unpleasant and should maybe be the new thread title
|
# ? Dec 8, 2022 19:36 |
|
bigperm posted:We could say Curd. Is Curd better? Curd. sorry this api is CURDled and we recommend you migrate to the new version
|
# ? Dec 8, 2022 20:02 |
|
DRUC
|
# ? Dec 8, 2022 20:25 |
|
We call them getties. GET an object: code:
code:
code:
|
# ? Dec 9, 2022 00:18 |
|
never stop POSTing
|
# ? Dec 9, 2022 00:43 |
|
All of the responses are 200 OK with an error message in the JSON payload, right?
|
# ? Dec 9, 2022 01:22 |
|
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.
|
# ? Dec 9, 2022 02:05 |
|
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
|
# ? Dec 9, 2022 02:12 |
|
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
|
# ? Dec 9, 2022 02:55 |
|
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
|
# ? Dec 9, 2022 03:25 |
|
500 Internal Server Error Due To Bad Request
|
# ? Dec 9, 2022 03:45 |
|
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.
|
# ? Dec 9, 2022 06:22 |
|
Stupid parameters need the most validation!
|
# ? Dec 9, 2022 07:19 |
|
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”
|
# ? Dec 9, 2022 08:11 |
|
Che Delilas posted:500 Internal Server Error Due To Bad User
|
# ? Dec 9, 2022 08:11 |
|
Ah yes, an external server error
|
# ? Dec 9, 2022 08:28 |
|
What's the HTTP code for "oops your request made our server explode"?
|
# ? Dec 9, 2022 08:33 |
|
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 |
# ? Dec 9, 2022 09:51 |
|
420 Server Up In Smoke
|
# ? Dec 9, 2022 10:18 |
|
301 Redirected (back to you (as a successful response (here's your json)))
|
# ? Dec 9, 2022 14:39 |
|
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
|
# ? Dec 9, 2022 15:12 |
|
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.
|
# ? Dec 9, 2022 16:31 |
|
CPColin posted:Stupid parameters need the most validation! lol
|
# ? Dec 9, 2022 17:51 |
|
Che Delilas posted:500 Internal Server Error Due To Bad Request An API unironically returning this because I had a ^ character in my password That was a fun one to debug
|
# ? Dec 9, 2022 23:07 |
|
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...)
|
# ? Dec 12, 2022 19:13 |
|
Really what business apps aren’t CRUD apps anyways?
|
# ? Dec 12, 2022 19:21 |
|
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:
|
# ? Dec 12, 2022 23:23 |
|
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.
|
# ? Dec 13, 2022 00:34 |
|
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.
|
# ? Dec 13, 2022 00:41 |
|
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.
|
# ? Dec 13, 2022 00:56 |
|
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
|
# ? Dec 13, 2022 01:06 |
|
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
|
# ? Dec 13, 2022 01:08 |
|
|
# ? May 10, 2024 11:01 |
|
Yeah looks like they just want to close the ticket and you're in the way.
|
# ? Dec 13, 2022 05:15 |