logoalt Hacker News

nothrabannosirlast Wednesday at 12:48 AM1 replyview on HN

For some reason generating a valid wire format seems to be no problem for people when it comes to json. Forgot to escape a quote? Woops, that’s on me, should have used a serializer.

But add a few angled braces in there and lord have-a mercy, ain’t nobody can understand this ampersand mumbo jumbo, I wanna hand write my documents and generate wutever, yous better jus deal with it gosh dangit.

I prefer the current situation too but I still think it’s funny somehow we just never bought into serializers for html. Maybe the idea was before its time? I’m sure you’d have no such parsing problems in the wild if you introduced JTML now. Clearly people know how to serialize.


Replies

munificentlast Wednesday at 4:05 PM

> For some reason generating a valid wire format seems to be no problem for people when it comes to json.

The "some reason" is that JSON is most often produced by code, written by programmers.

That's not the case for HTML which is often hand-authored directly by non-programmer users. Most people on Earth literally don't know what the word "syntax" means, much less feel comfortable dealing with syntax errors in text files.

show 1 reply