Hacker News new | ask | show | jobs
by seiji 4018 days ago
fun fact: pg hand-wrote the (original) news.yc http server (in arc) and it wasn't standards compliant. it terminated newlines with '\n' instead of '\r\n' causing much pain when trying to integrate any external tools. but, browsers accepted it, so it wasn't worth fixing.

Plus, let's ignore the whole "we only learned HTML in 1995 and never looked modern practices again" thing too because, well, it still works. Sometimes it's worth spending 5 hours making something just work using what you know instead of spending 500 hours making something ideologically pure.

1 comments

    <meta charset="UTF-8">
..would not even take even 500 seconds.
Well, they are setting charset with headers instead which works fine:

  % curl -I https://news.ycombinator.com/
  HTTP/1.1 200 OK
  Server: cloudflare-nginx
  Date: Sat, 13 Jun 2015 20:09:47 GMT
  Content-Type: text/html; charset=utf-8
Fair enough.. that was the closest to a valid concern I could find in that list of errors anyway.