News for hackers. Stuff that matters.
Re:Show HN: I wrote a book about UI [pdf] by kwanbix on Friday May 21, 2021 @07:57AM (#27232908)
One thing that I hardly see implemented is grouping of numbers and strings in 4s or 3s. Like the credit card companies do on their credit cards.

For example, if you need to show me on a website my CBU, international account number which is 24 numbers long, please, don't show them like this:

345234234665232423247322

Show it instead like this:

3452 3423 4665 2324 2324 7322

It is much much easier to read.

90~95% of the time were numbers (or even characters!) are listed, nobody splits them.

This I learned in Isaac Asimov's book "Asimov on Numbers" IIRC. Great book by the way.

Re:Show HN: I wrote a book about UI [pdf] by specialist on Friday May 21, 2021 @09:11AM (#27233561)
There's a clever font that uses ligatures to achieve what you're suggesting.

~I'll edit (or reply) if I can dig up the link.~

Aha. Numderline. h/t @bla3

Re:Show HN: I wrote a book about UI [pdf] by bla3 on Friday May 21, 2021 @09:17AM (#27233607)
Re:Show HN: I wrote a book about UI [pdf] by eatonphil on Friday May 21, 2021 @09:36AM (#27233797)
That is awesome. Thanks for sharing.
Re:Show HN: I wrote a book about UI [pdf] by da39a3ee on Friday May 21, 2021 @09:33AM (#27233769)
It's sad to say, but there's a strong correlation between "good programmer" and "formats things in fixed width using ``` in slack".
Re:Show HN: I wrote a book about UI [pdf] by machiaweliczny on Friday May 21, 2021 @08:10AM (#27233012)
Is it possible to split with CSS so that when copied it won't have spaces?
Re:Show HN: I wrote a book about UI [pdf] by 4lun on Friday May 21, 2021 @09:42AM (#27233894)
Yep, you can use separate HTML elements, the key bit is to keep the closing and opening tags directly adjacent with no whitespace or newlines, example https://jsfiddle.net/z65qwuvp/1/
Re:Show HN: I wrote a book about UI [pdf] by mvolfik on Sunday May 23, 2021 @08:29AM (#27254544)
see your comment siblings, there are some clever font tricks to achieve that too