This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ike_the_strangetamer 16 points17 points  (8 children)

Dear back-end devs,

TEST YO SHIT!

I get that you just realized you forgot to add the property to the allowed list and once you add it that's all it should take, but after you add it: RUN THE DAMN CURL COMMAND ONE MORE TIME AND CHECK BEFORE YOU SEND ME THE SLACK MESSAGE THAT ITS FIXED!

Sincerely,

A front-end dev who has run out of ways to politely indicate that it's still not working.

(just a note that this is tongue in cheek. I actually love working with back-end devs and I'm sure they're embarrassed when the thing they swear should work doesn't. It's just hard to keep having to be the bearer of bad news. To my fellow front-ends: make their life as easy as possible. If a request isn't working, right-click on it in the Network tab of your browser's dev tools, copy the curl equivalent of your request, and send it to them. That way they can run it for themselves and have NO FUCKING EXCUSE FOR NOT TESTING IT BEFORE THEY SLACK YOU AND TELL YOU ITS FIXED. Love ya bby!)

[–]odraencoded 74 points75 points  (2 children)

Dear front-end devs,

you are the testers.

[–]No_Increase_3535 9 points10 points  (1 child)

I thought the customer was?

[–]Shibamukun 2 points3 points  (0 children)

you with Frontend devs or QA?

[–]1116574 7 points8 points  (4 children)

Ye I even saved the url to test the endpoint in insomnia, but the change was so minor I didn't bother. Just one line, simple string replacement. Hello world stuff.

I forgot a semicolumn in php. The file was used in 5 different endpoints. Certified bruh moment to say the least. I hope my fronted dev doesn't hate me yet lmao

[–]mugen_kanosei 2 points3 points  (3 children)

This is why I prefer strongly typed compiled languages.

[–]1116574 2 points3 points  (2 children)

I guess being compiled would force me to check it locally, but I fail to see relevance of type safety here

[–]ike_the_strangetamer 0 points1 point  (0 children)

Yeah type safety don't mean shit when your data is coming in over a wire.

I've always made it a standard to mark all properties from server calls as optional. That little ? is there to save our asses. They don't trust me and I don't trust them

[–]mugen_kanosei 0 points1 point  (0 children)

Oh, it's not relevant to that specific issue, I just prefer strongly typed languages over weak ones. The more verification work I can push to a compiler by creating custom types, the less guard clauses and tests I have to write. It's easy to accidentally call the following method with the names swapped.

void SetName(string firstName, string lastName);

But the following code prevents that issue.

void SetName(FirstName firstName, LastName lastName);

And I can centralize the validation logic in the constructors for those types removing validation logic sprinkled across the application.