Live data from Hacker News

HTML Form Validation is underused

expressionstatement.com

341–343 of 343 posts

Re: HTML Form Validation is underused

#341

Earlier quoted context omitted.

As a user, I want common UI controls to look and behave the same way across all web sites. Ideally, across all applications on my OS, but that's also a lost cause. POLA[1]. I can accept if the developer wants to somehow extend an existing control to support something new, but it's so irritating when they just re-implement their own thing entirely because they think their ideas are better than the browser's. Multiply…

This is one of these things that sounds perfectly logical -- you want all UI components to look and behave the same across all applications and all websites -- but that is more theoretical than practical. If you built an app that used just what the browser gives you and nothing more, you're leaving so much functionality on the floor. Having more expressive power often makes things simpler -- using more complex UI con…

> If you built an app that used just what the browser gives you and nothing more, you're leaving so much functionality on the floor.

Yeah, please do. Because 99.72% of that "functionality" is used to implement crappy ugly bullshit.

Re: HTML Form Validation is underused

#342

Earlier quoted context omitted.

> As browsers continue to give developers more low-level control, the less of a problem this is. Take one of your examples, history. This used to be a high-level feature implemented only by the browser and if you built an SPA your users either had a very bad experience or you had get "clever" with various tricks. Now, we have a nice history API. Quite the opposite, in my experience! As browsers give developers more l…

> Yes, with generally terrible results, Really? This is like complaining about movies that use CGI -- you only complain when you can see it. When it's seamless, and often it is, you don't even notice or care. Why stop at browser apps? All apps are terrible on all operating systems for all the same reasons. This line of argument seems pretty subjective.

Yes, really.

Re: HTML Form Validation is underused

#343

Earlier quoted context omitted.

Strongly disagree. There are so many places where the browser itself provides a reasonably good user interface, and web developers fuck it up - scroll hijacking and history manipulation being two of the biggest examples. I suspect that one of the reasons we ended up in JS-hell is that HTML and browser built-in functionality lagged behind user expectations for so long. If browsers had offered the equivalent of AJAX an…

The browser only reluctantly accepts its role is an application UI platform. Every problem, including the ones you describe, come from the disconnect between what a browser is and what it is used for. The browser is always going to lag behind user expectations so that's why I think it's the last place we should put that functionality. Adding more high-level UI functionality is really in conflict with the idea of brow…

> The browser only reluctantly accepts its role is an application UI platform.

Yeah, rightly so. It's reluctant to be what it shouldn't be.

Post reply on HN