3 ms·
Is there some book of best web dev practices where stuff like this is written down?
by joppy 6y ago
Is there some book of best web dev practices where stuff like this is written down?
- austincheney 6y agoNo because the default behaviors not defined by a standard. Example: https://forum.vivaldi.net/topic/43170/backspace-shortcut-should-be-disabled-by-default/14 https://forum.vivaldi.net/topic/43170/backspace-shortcut-sho...
- masonhensley 6y agoNot that granular yet, but I’ve been capturing user story/ acceptance criteria level best practices. Currently at ~800 B2B focused modular “specs” that find the middle ground between devs and non technical team members. My email in profile if you’d like to check it out.
- franciscop 6y agoNot that I know of. I learned through years of practice and reading hundreds of varied blog posts. If you find a book or resource like that please ping me.
- jmchuster 6y agoYou might notice by just using the web, or you might notice it when testing the form on one of your first assignments, that you can submit a form by pressing enter in an input box. So then you might look up the documentation for the submit event on forms: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission https://html.spec.whatwg.org/multipage/form-control-infrastr... And then realize that adding the onclick handler on the submit button handles one use case (clicking the button), but a more general solution would be to add the onclick handlers on the form itself. Then maybe you start thinking, huh, what happens when someone tabs to a button and presses enter, does the onclick handler work there? And so on and so on... So the answer for where it's written down, it's in the documentation. But most people these days can't be bothered with things like reading documentation and textbooks and reference manuals, so, uh, I guess you just need to have a little bit of experience combined with an attention to detail?
- ct520 6y agoNot that I know of. Just something you learn from experience or your users will tell you quickly during validation.
- amtsh 6y agobest way to learn is to build.