Re:Just Use HTML
by skydhash on Tuesday September 16, 2025 @10:17AM
(#45262573)
That’s not validation. It’s more like helpful hints.
[ Parent
| on HN ]
Re:Just Use HTML
by fkyoureadthedoc on Tuesday September 16, 2025 @10:20AM
(#45262605)
A pointless distinction when we all know what we're talking about.
Is it? I’ve seen devs bring complicated code to the frontend when a required attribute on the tag would have done the job just as well. Preventing user mistakes is not the same as ensuring correct input.
Re:Just Use HTML
by fkyoureadthedoc on Tuesday September 16, 2025 @10:30AM
(#45262760)
We've all seen bad implementations of any given thing I'd imagine. Ever submit a form that triggers a full page refresh after about 8 seconds of hanging, only to lose half the data and reveal some arcane requirement to you that wasn't stated up front? Of course this isn't the proper way to do it, but it happens.
What is the difference?
The same is true for any JS "validation" and I was using common terminology.
From a user point of view as long as you keep the feedback loop short what difference can they see?
Neither is it validation when you use JS if the server doesn't check it. You can always send requests with postman, curl or your tool of choice.