this post was submitted on 23 Jul 2025
232 points (100.0% liked)

Programmer Humor

25425 readers
2006 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] yaroto98@lemmy.org 20 points 1 week ago (2 children)

Jr developer told to sanitize inputs to keep db secure. Comes up with this.

[–] madcaesar@lemmy.world 5 points 1 week ago (1 children)

That's not the front-end job. You can do common sense stuff, but any real protection needs to be on the backend. Any front end validation is basically "plz don't hax"

[–] Matty_r@programming.dev 4 points 1 week ago

Frontend validation is for real time user feedback (without hitting the backend constantly) instead of needing to submit the form before throwing an error/warning.