I strongly recommend to automate form generation based on JSON schema what will enable zero coding for maintenance tasks like e.g. synchronization with model changes. As form code is the most important entry point for security flaws in web applications it is also the most expensive and it is not a good idea having to touch production code for every little backend change. This looks like PHP coding 15 years ago. Do no…
The latest JSON Schema draft introduces some nasty patches that fix the previous draft's limitation. It's even more confusing, it's not designed to generate form even if people have tried (some things can't easily map to form) and the latest spec said so.
Show HN: React Hook Form – Simple Form Validation
71–75 of 75 posts
Re: Show HN: React Hook Form – Simple Form Validation
#72I strongly recommend to automate form generation based on JSON schema what will enable zero coding for maintenance tasks like e.g. synchronization with model changes. As form code is the most important entry point for security flaws in web applications it is also the most expensive and it is not a good idea having to touch production code for every little backend change. This looks like PHP coding 15 years ago. Do no…
At an earlier job, I got so annoyed with the constantly changing requirements I developed a form generator. With AngularJS. I wish I could've saved the code, it was so beautiful and horrible.
Re: Show HN: React Hook Form – Simple Form Validation
#73Earlier quoted context omitted.
Mate most websites are shoving MBs down your throat, I’ll gladly take 5kb zipped for a better developer experience.
If doing `obj.firstName = el.value` is too bad of an experience for you that you need to add 5kb to make it better you're going to get to that MBs pretty quickly.
Re: Show HN: React Hook Form – Simple Form Validation
#74Earlier quoted context omitted.
The latest JSON Schema draft introduces some nasty patches that fix the previous draft's limitation. It's even more confusing, it's not designed to generate form even if people have tried (some things can't easily map to form) and the latest spec said so.
agree. it all looks good on paper until the requirement and design changes, then you are in world of pain.
Re: Show HN: React Hook Form – Simple Form Validation
#75Earlier quoted context omitted.
agree. it all looks good on paper until the requirement and design changes, then you are in world of pain.
Application like configuration UI is probably fine, for example, system preference. It has sort of generic UX.