New

The latest blog posts to take off on Hacker News. 268 posts.

Web & Frontend
2019
2

Unintuitive JSON Parsing

Despite the goal of JSON being a subset of JavaScript — which it failed to achieve (update: this was fixed ) — parsing JSON is quite unlike parsing a programming language. For invalid inputs, the specific cause of error is often counter-intuitive. Normally this doesn’t matter, but I recently ran into a case where it…

16

Still Why No HTTPS?

Back in July last year, Scott Helme and I shipped a little pet project that tracked the world's largest websites not implementing HTTPS by default [https://www.troyhunt.com/why-no-https-heres-the-worlds-largest-websites-not-redirecting-insecure-requests/] . We called it Why No HTTPS? [https://whynohttps.

17

Coping with Flexbox

If only someone paid me everytime I visited CSSTrick's flexbox guide…or at least all those times when I fiddled around {justify,align}-{content,items} trying to make _something_ happen on screen. I wanted to form a better mental model of all the basic functionality that flexbox provides for all those…

23

Fight back against Google AMP (2018)

Let’s talk about Accelerated Mobile Pages, or AMP for short.AMP is a Google pet project that purports to be “an open-source initiative aiming to make the web better for all”. While there is a lot of emphasis on the official AMP site about its open source nature, the fact is that over 90% of contributions to this…

30

Syntax Highlighting Is Backwards (2018)

Most code editors color different pieces of your program in different ways. For instance, they’ll make keywords like if bold and bright so that you notice when you’ve misspelled them. They’ll make non-executable parts like comments and documentation fainter so that you know that the computer isn’t seeing that part of…