this post was submitted on 10 Jun 2026
55 points (100.0% liked)
Web Development
5675 readers
86 users here now
Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development
What is web development?
Web development is the process of creating websites or web applications
Rules/Guidelines
- Follow the programming.dev site rules
- Keep content related to web development
- If what you're posting relates to one of the related communities, crosspost it into there to help them grow
- If youre posting an article older than two years put the year it was made in brackets after the title
Related Communities
- !html@programming.dev
- !css@programming.dev
- !uiux@programming.dev
- !a11y@programming.dev
- !react@programming.dev
- !vuejs@programming.dev
- !webassembly@programming.dev
- !javascript@programming.dev
- !typescript@programming.dev
- !nodejs@programming.dev
- !astro@programming.dev
- !angular@programming.dev
- !tauri@programming.dev
- !sveltejs@programming.dev
- !pwa@programming.dev
Wormhole
Some webdev blogs
Not sure what to post in here? Want some web development related things to read?
Heres a couple blogs that have web development related content
- https://frontendfoc.us/ - [RSS]
- https://wesbos.com/blog
- https://davidwalsh.name/ - [RSS]
- https://www.nngroup.com/articles/
- https://sia.codes/posts/ - [RSS]
- https://www.smashingmagazine.com/ - [RSS]
- https://www.bennadel.com/ - [RSS]
- https://web.dev/ - [RSS]
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I actually heavily disagree. One of the WORST things you can do for user experience is defy their expectations for input. E.G...
Breaking these rules by masking certain inputs generally makes them feel HORRIBLE to use.
Banks, for example, love to do this. I hit [1], [0], and [0] on the balance transfer form, to transfer $100, and I end up with a transfer for $1.00, because the validation forces a decimal point to be injected.
I think there are niche cases where keystroke rejection can make sense, but it's basically never worth the effort. And phone numbers is NOT one of them. When I buy stuff online, and get asked for a phone number, I'm virtually always pasting it in, because the only number I give out on the internet is a throwaway, and I don't have it memorized. More often than not, it gets rejected, because it was copied as "(XXX) XXX-XXXX", and the form doesn't like the formatting, even when that formatting is auto-applied anyway, as you type.
Good form validation involves letting users enter whatever the hell they want (within a max length restriction), and giving good feedback when it's not acceptable, indicating what needs to be corrected. Also, auto-completion goes a long way, when possible.