DEV Community

loading...

Discussion on: The Shocking Immaturity of JavaScript

Collapse
mangor1no profile image
Mangor1no

Bruh. w3schools.com/tags/att_input_requi....
You don't need a package to make a field to be required when submit. It's just there are many different ways to do it. There are simple ways and advance ways. Just the personal decision to finish the task tho. IMO I follow KISS principle and try to reduce libraries/packages in my project as much as possible.

Collapse
guledali profile image
guledali • Edited

Make a field "required" and adding a validation to a field, are two different things number one. Let's get that straight. Btw you can easily go around this by inspecting and remove the flag required but to the point and you said it yourself,

" It's just there are many different ways to do it "

Which is the main problem with JS development that we see today so many ways of doing this and bike-shedding and no-one agrees on anything even if they are using same tools, libraries & framework. It's still different enough somehow.

One thing that all JavaScript frameworks and projects have in common,

"Is that they can easily get of the rails, whereas ruby on rails stay on the rails"

Thread Thread
mzzfederico profile image
Federico Muzzo

If your backend isn't doing validation there's no amount of JavaScript that can fix it.

Forem Open with the Forem app