The design is very human
The design is very human
The design is very human
One time I did this thing with an internal calibration program where the user had to type floats into a text box. I set it up so that every key stroke was validated so that the string in the box had to parse as a valid number within the assigned range at all intermediate steps.
Everyone hated that.
Add automatic normalization to the box (you know, you type "05" and it drops the leading zero, you type "0.70" and it drops the trailing zero, etc.) and it often gets completely impossible to write anything valid. Some banking apps do something similar. :-)
Jr developer told to sanitize inputs to keep db secure. Comes up with this.
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"
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.
tbf regular expressions suck
How so? I have been getting much more comfortable with it lately, but I am curious what downsides there are
Plus most drop downs allow you to type anyway from memory.
still better than showing some crappy virtual keypad
yandev is that you