this post was submitted on 29 Jul 2023
635 points (98.8% liked)

Programmer Humor

32710 readers
280 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] 156 points 2 years ago* (last edited 2 years ago) (5 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] 125 points 2 years ago (1 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] 88 points 2 years ago (2 children)

At least you do get a response.

[–] [email protected] 24 points 2 years ago (1 children)
[–] marlowe221 2 points 2 years ago (1 children)

As someone currently in the job market after being laid off, I really felt this comment.

[–] [email protected] 2 points 2 years ago (1 children)

Stay strong and spam those applications.

[–] marlowe221 2 points 1 year ago (1 children)

Sorry for the super delayed reply but... I got a job! Thanks for the encouragement!

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

Nicely done! 🙌

[–] [email protected] 29 points 2 years ago (2 children)

That's hilarious. Probably the lovechild of some clueless HR dude that thought he was a genius.

[–] [email protected] 55 points 2 years ago (2 children)

The cringe term "code ninja" supports your theory.

[–] [email protected] 41 points 2 years ago

Also “rockstar developer” all they were missing is “10x Programmer” to complete the bullshit programmer labels trifecta

[–] hikarulsi 21 points 2 years ago

Because “code slave” is no longer culturally acceptable for the same role

[–] saltesc 2 points 2 years ago

Hey, that's me! I query my workforce data from the HRIS with M and SQL. In HR land, that makes me a super senior data scientist compared to VLOOKUP guy who hasn't even heard of XLOOKUP or even INDEX/MATCH, that asshole.

[–] [email protected] 4 points 2 years ago (1 children)
[–] Carighan 1 points 2 years ago (1 children)

A few things about that stuck out to me.

One interesting question to others here: Would you agree with the line under this comparison that the HTML response is self-describing?

Because frankly... I kinda don't. You need an interpreter to make sense of it, namely a web browser that knows the HTML-specification and can translate the HTML tags into meaningful semantics. But the moment I need that, I could also have a JSON interpreter in my system that uses a DSL we use internally to make sense of the JSON received, no? It's essentially the same thing.

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

Yeah, HTML only makes sense in the context of a hypermedia system. They explain it in the book titled so. The main point, I think, is that JSON API consuming clients are too thick (for most purposes they're trying to achieve) which slows down development, adds unnecessary complexity and causes developer fatigue.

[–] [email protected] 3 points 2 years 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"

[–] 4am 0 points 2 years 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 😔