News for hackers. Stuff that matters.
Re:Ask HN: Why do the majority of JS developers prefer space... by J_Darnley on Friday August 15, 2014 @06:10PM (#8184547)
I really don't get the point of tabs for visual layout in any kind of document be it plain text, source code, or a word processor document. They never seemed to work right for me.

I remember using the tab key to enter tabs back in school to make something like an informal, 2-or3-column table (or whatever I was actually doing). This would have been in Word. Things would line up pretty until I wanted to change some text. If I made it longer I would need to add another tab because the tab had shrunk to nothing. If I made it shorter the tab would jump into the previous section and no longer line up with the other lines.

As far as I can see, the same will happen with this source example if it were using tabs and a proportional font.

Re:Ask HN: Why do the majority of JS developers prefer space... by dragonwriter on Saturday August 16, 2014 @10:30AM (#8186307)
Elastic tabstops are so named because the width adjusts based on the content, avoiding that problem. http://nickgravgaard.com/elastictabstops/