News for hackers. Stuff that matters.
Re:Proposed JavaScript Standard Style by donatj on Thursday April 28, 2016 @09:42AM (#11588728)
That's how I felt about spaces instead of tabs.

I actually got into a Twitter argument with Brendan Eich over it - he more or less won with the note that the tab key in most web editors switches input.

Re:Proposed JavaScript Standard Style by madeofpalk on Thursday April 28, 2016 @10:20AM (#11589018)
Seems like s fairly poor argument, considering most development wouldn't/shouldn't happen in a web textarea. Also, it's trivial for web editors to solve this themselves - any that don't are just lazy.
Re:Proposed JavaScript Standard Style by distances on Thursday April 28, 2016 @09:50AM (#11588802)
I used to like tabs. Then you have a person or two with different tab widths, and some spaces get mixed in, and the beauty of the idea flies out of the window. I've been all spaces for a long time now.
Re:Proposed JavaScript Standard Style by exprx on Thursday April 28, 2016 @09:56AM (#11588849)
Different tab widths are a non-issue. Sure, the maximum character per line only works for a set tab width, but I take that “problem” over the rigidity (and unsuitability) of spaces as indentation.
Re:Proposed JavaScript Standard Style by distances on Thursday April 28, 2016 @11:14AM (#11589457)
It becomes issue when mixed with spaces. Say, aligning function parameters on multiple rows. If the indentation of the second row of parameters is mainly with tabs, and then adjusted to place with spaces, it's suddenly a huge issue. And that will happen.

So spaces only for me, thanks.

Re:Proposed JavaScript Standard Style by donatj on Thursday April 28, 2016 @02:09PM (#11590798)
Tabs for indent, spaces for alignment - solves the problem unless you're trying to align across indentation levels, but you probably shouldn't be.
Re:Proposed JavaScript Standard Style by forthefuture on Thursday April 28, 2016 @09:59AM (#11588872)
I don't know about others but jsbin, codepen, and c9.io all have e.preventDefault on tab because it's trivial and many people still use tab.
Re:Proposed JavaScript Standard Style by andremendes on Thursday April 28, 2016 @10:03AM (#11588904)
I have never thought of that. Very good argument. By choosing spaces over tabs, we open up ways for contributors push code.