News for hackers. Stuff that matters.
Re:Show HN: URL Shortener Optimized for QR Code by LeoPanthera on Monday October 05, 2020 @03:16PM (#24691004)
> Every string encodes to the same amount of “squares” in a QR code

That's not correct. QR codes have redundant pixels, and you can choose how much redundancy you want.

That said, the default in most generators is the least amount of redundancy.

Re:Show HN: URL Shortener Optimized for QR Code by flixic on Monday October 05, 2020 @03:18PM (#24691026)
Every content byte encodes to the same amount of squares. Error correction bytes are “appended”. The point about every string being equal in the same configuration of a QR code still applies. As such, the shorter URL, the better.
Re:Show HN: URL Shortener Optimized for QR Code by tinus_hn on Monday October 05, 2020 @05:53PM (#24692459)
Not every string uses the same amount of content bits per character.

If you use only numbers you use 3 1/2 bit per character, if you use only numbers, uppercase letters and some limited punctuation it’s 5 1/2 bits per character. Otherwise it’s 8 bits per character but that’s a waste because most of the characters you can then represent can’t be used in a URL.