Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But I also want just a document viewer. Great job building all that, developers of the world, now how can I read a news article or an email in a modern sense without a complicated machine executing code that’s not at all for my benefit.

I do very little on the web where I actually want there to be code running on my document.



More news orgs should offer up something like lite.cnn.io.


>I do very little on the web where I actually want there to be code running on my document.

Just some random examples, but how do you do your tax, pay your bills, buy/sell stuff online, make appointments etc?


Can’t all of that be done with simple form submissions?


How did the people do all of that without the modern web? How could humanity actually survive so long without web browsers?

If you think about that maybe you come also to some conclusions regarding the questions you just asked.


[flagged]


Which just strengthens my point.


None of those things require client side code other than an HTTP POST.

Some things yes client side code makes sense, like an appointment finder, and that’s fine, but such things make up a tiny amount of my internet activity.


Sure, but you are talking about a complete minimalist implementation, one that before all of this Javascript explosion, made people pull their hair out. For example you need javascript for dropdowns or form validation to begin with. I think there is a lot of stuff done by front end developers these days that people take for granted.


Drop downs do not require JavaScript. HTML has basic form validation and your POST endpoint needs to validate the form anyways, sending the form back to the user for corrections is not very difficult.


This is just the same argument as the comments upthread rehashed. In the absolute most minimalist, hair pullingly annoying implementation, that is correct. However the polish you are used to on dropdowns plus countless other controls you interact with every day require javascript.


> However the polish you are used to on dropdowns plus countless other controls you interact with every day require javascript.

I got one can do without the "polish I am used to". I'm generally fine with HTML form controls.

My problem with JavaScript frameworks is they are huge beasts that build their components out of non-semantic block elements. A button or text field is just a giant mass of divs and spans with events attached everywhere with one-off CSS. The browser is stuck doing tons of work in its single-threaded JavaScript engine to build and manage these components.

It's a lot of wasted memory and clock cycles to recreate a text field the browser already provides. It makes for a worse user experience, wastes my battery, and eats up my bandwidth. To me it's not polish but waste.


Ok, so when registering on a new site you don't mind waiting back to hear from the server after clicking submit, to find out your passwords don't match, or don't meet the required policy? That's fine. But the majority of impatient and perhaps spoilt users do. In fact I hear people these days complain violently about the most trivial UX issues on websites they visit. User's expectations are sky high.

Regarding the massive nestings of divs. Well this is computer generated HTML. It is ugly as hell, but browsers are well geared up to deal with it, it doesn't create any serious performance issues unless taken to stupid levels. The other side of the coin, with this rather ugly generated HTML, is you get a human benefit, a time saving efficiency. You can spin up a web page with React/Bootstrap in a fraction of the time it took you in the 1990s.


> However the polish you are used to on dropdowns

Emphatically no. The absolute vast majority of those "polished dropdowns" are horrible to use, and break all possible platform conventions (for example, not accessible or usable with a keyboard)

> countless other controls you interact with every day require javascript.

Very few, if any, "polished controls" used on the absolute vast majority of web sites require javascript.


Emphatically yes. The most popular UI framework's dropdown component, documentation reads as follows:

"Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They’re made interactive with the included Bootstrap dropdown JavaScript plugin"


Bootstrap dropdowns:

- don't follow platform conventions (don't trigger the actual system dropdowns with actual expected behavior)

- get cutoff by browser chrome when page is zoomed in (because you can't control that behavior from JS)

- default implementation's touch targets are too small

And that's for a framework which has had over a decade to make this work.

This is not to throw undue shade: they've done a very good job. But that's about as far as you can get.


> However the polish you are used to on dropdowns plus countless other controls you interact with every day require javascript.

Or just a proper GUI framework not based on HTML.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: