Hacker News new | past | comments | ask | show | jobs | submit login

What usability/interaction pattern is that?

The number of spaces in tabs is not a debate, that's just personal preference in your editor. The debate is if tabs should be used at all.

That tabs are not a multiple of the character width in a fixed width font is insane of course. But if any character should have that property as a feature, it would be the tab.




> The debate is if tabs should be used at all.

You are trying to create your own debate. Nobody raised that here.

The parent is only asking why fixed-width fonts are not rendered with proper alignment (my assumption – on something that was probably already aligned before).


Each line starts at the same place, right?

Each pipe character is the same width, right?

Monospace characters are unaffected by their surrounding characters, right? Unless they're ligatures, in that case their width is a multiple of the single character width.

The only possible way for "\t|" on consecutive lines to be misaligned is either for tab not to have a constant width, or any of the axioms above to be wrong.

I don't get how is this defensible. You don't have to be Steve Jobs to see this and ask "what is this crap?"


> Each line starts at the same place, right?

> Each pipe character is the same width, right?

> Monospace characters are unaffected by their surrounding characters, right? Unless they're ligatures, in that case their width is a multiple of the single character width.

Yes, but not in Microsoft products.


I am not defending them. If a programmer makes the mistake of having any character in a monospace font be anything other than a multiple of the monospace character width.. sure revoke their programming licence. Straight back to kindergarten, have them make a turtle draw lines on a blank canvas for a couple years.

But that's not a very interesting discussion. If any editor I ever would write would have a fancy feature to mess with the sort of idiot that would use tabs for alignment, maybe I'd make tabs be off by a couple pixels. If it was intentional I would applaud them.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: