HN Hall of Fame Weekly email

Creating a QR Code step by step

Screenshot of www.nayuki.io captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 3 of them.

submissions
4
submitters
4
observed span
2018–2024
peak thread · 46 comments
329 pts
latest 20+ return · 2024-11-17
247 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

I appreciate the steps, but this fails to answer a question which, imho, is way too often omitted in tech tutorials, and that’s ”Why?”. Sure, I understand these are just the steps to create a QR code and I could just Google why the QR code needs a masking pattern, but that’s besides the point. A good material would explain why I need it, instead of just saying it should be done. Even one sentence would be sufficient.

A while ago I found a generator that took an image and a text and tried to use a genetic algorithm to evolve a QR code that looked like (a 2-bit dither of) the image. Unfortunately I’ve since lost the link, but I was quite impressed that it managed to generate a QR code for my then-employer’s URL that looked like their logo. Impressive what’s possible with a lot of error correction.

Unfortunately it seems that every online explanation of QR codes always leaves out the Reed-Solomon error code calculation. The author here describes it as “long, tedious, and not very interesting”, but since everyone seems to think that, it is now very hard to find.

Timwi·247-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
904

reference only — not used in Hall rules or ranking

Total comments
121

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2018-11-02Creating a QR Code step by stepFirst breakoutnayuki32634
2020-08-11Creating a QR Code step by stepBest threadcreolabs32941
2022-05-20QR code creation: Dynamic, step by step guidectxc20
2024-11-17Creating a QR Code step by stepLatest 20+ point returnD4Ha24746