Top all-time · #16340
Jonathan New
Personal blog · blog.jonnew.com/postsprogrammingweb
Jonathan New's personal blog at blog.jonnew.com covers programming and web. Since 2017, 4 different Hacker News readers have linked it 5 times, most often “Emoji.length == 2”. It is still writing: the last post was on 2026-01-03, and you can follow it by feed.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
The only comment discusses Unicode details of JavaScript strings (UTF-16 code units, code points, graphemes), so the linked guide covers working with strings in modern JavaScript. The comment does not judge the writing.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
A blog on tech and other miscellany
Most-linked posts?
- Emoji.length == 22 people · 2 mentions · first linked 2017-03-09
What Hacker News says?
Exactly, and emoji are outside the BMP, so it's not exactly an edge case, but the norm where two code units (UTF-16 double-bytes) are used to make one code point (Unicode character) [1]. And it gets even worse, when you consider that for many purposes you're not even interested in code points but in graphemes which can be sequences of code points -- e.g. a single visible emoji might actually be a sequence of 5 code…
Comment linking /posts/poo-dot-length-equals-two
on “The complete guide to working with strings in modern JavaScript”Submitted Emoji.length == 2 as a story · 279 points
HN discussionSubmitted Show HN: Expresso: A faster, drop-in replacement for the ExpressJS router as a story · 3 points
HN discussionSubmitted Emoji.length == 2 (2017) as a story · 2 points
HN discussionSubmitted Problems with Content Security Policy as a story · 2 points
HN discussion