Hacker News new | ask | show | jobs
by breakingcups 4197 days ago
Not having to refresh the page with each click?

It's disruptive, slower and more expensive to submit the form through HTML, the rest of the page (you can see a snippet in the video) needs to be built again, which means more database queries which are not needed. Furthermore, the rest of the form does not depend on the first answer. There's really no reason to completely rebuild the page again. That's the benefit.

I do agree with you that Javascript is fundamentally just as flawed a language as PHP and it attracts the same kind of developers. Some really talented ones, mostly mediocre ones.

When I have to use Javascript I feel like I'm working against the language instead of with it.