this post was submitted on 29 Jul 2023
362 points (98.9% liked)

Programmer Humor

32558 readers
541 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 48 points 1 year ago* (last edited 1 year ago) (4 children)

Here's an article about it: https://dev.to/maggiecodes_/how-i-applied-to-a-tech-job-using-a-post-request-193d

The thing that annoys me is the response. It should return status 201 created and the id of the new resource for future delete/update operations. Instead it returns 200 ok and some clear text. Wouldn't want to work with such an API.

[–] [email protected] 58 points 1 year ago (3 children)

/serious Well, yes, most APIs are meant for system-to-system interaction, that's kind of a given. But since this particular API is clearly meant for human-to-system interaction, returning a human-readable response is adequate. Yes, a better design would probably allow the client to specify additional parameters about the desired response.

/back-to-jokes Yeah, well this kind of sums up most of my job applications. I send an application and the recruiting people are all like "OK".

[–] [email protected] 37 points 1 year ago (1 children)

At least you do get a response.

[–] [email protected] 14 points 1 year ago (1 children)
[–] [email protected] 3 points 1 year ago (1 children)

I send an application and the recruiting people are all like "OK".

I always have a suspicion that all of the HR department are Rammus.

[–] [email protected] 1 points 1 year ago

Nah, clearly all HR are orcs. I once got a “zug zug” as an answer.

[–] [email protected] 2 points 1 year ago

/serious If you try with a non-human user agent I would expect it to return something machine readable.

[–] [email protected] 3 points 1 year ago

That's better than some I've seen. Like 200 for everything and the text could even be "error".

Or 500 with the text "invalid input"

[–] [email protected] 0 points 1 year ago

I also notice that the job you apply for seems to be a different value than what is displayed on the page. Seems like the documentation needs updating as well 😔