HTML wasn’t made for apps

Oscar Godson
Nov 3, 2014 · 5 min read

“Hipster” Frameworks

First things first, most of the libraries he mentions that are “hipster” are simply not. Backbone, Angular and Knockout have been around 4 years or more. That’s longer than most tech startups last. All of those frameworks have also been around about as long as the two internal JS frameworks I used at the last two companies I worked for.

No help from your tools

Simple tags are never simple

This one is easy: if you don’t want complicated tags use a template library that forces you to keep them simple like Mustache.

Nothing ever works first time

Error messages rarely exist and are frequently useless

The entire post is comparing HTML and he mentions that error messages rarely exist. HTML gives you exactly 0 feedback on errors. Nothing. Nada. The fact that something like JSX or EJS can give you any reporting at all is amazing compared to HTML. If you want better error reporting on HTML or a template language use a validator plugin. But, out of the box? Check out this beautiful HTML with it’s detailed error reporting:

https://gist.github.com/OscarGodson/371475c4f7f548fde160
you could also set that invalid HTML with JS and you wont get errors

Debugging is near impossible

My response to this is a mix of other responses I gave. One, debugging HTML errors is impossible too. Go ahead and try to find that missing closing tag on the div in your 100s of lines of HTML that is causing your app to render wrong.

The real problem

https://gist.github.com/OscarGodson/8af90d217f72f4040839

The JavaScript Collection

Writings about all things JavaScript from Node to jQuery.

    Oscar Godson

    Written by

    Director of Engineering at Acorns

    The JavaScript Collection

    Writings about all things JavaScript from Node to jQuery.