Re:Who decided indenting with spaces was a good idea?
by smt88 on Thursday April 02, 2015 @10:53AM
(#9311012)
The tab character has been around since 1963. I have so far never in my life had a problem with using "smart tabs"[1][2]. For my purposes (web development), I don't expect that this will ever happen.
I'd be interested to know a real-world, recent example where tabs could have been a problem for someone.
1. http://www.emacswiki.org/emacs/SmartTabs
2. http://vim.wikia.com/wiki/Indent_with_tabs,_align_with_space...
Re:Who decided indenting with spaces was a good idea?
by amwmedia on Thursday April 02, 2015 @09:12AM
(#9310459)
I'm sure there ARE parsers and old terminals that may not understand tabs, but I don't plan to make decisions about how I write code based on the possibility of maybe, someday running into SOMETHING that doesn't like what I'm doing. Especially when switching my entire code base from tabs to spaces is as simple as a global find/replace.
A lot of mysteries about why people don't use clearly-superior technological solutions are solved by understanding that ubiquity is a feature, in many cases the most important feature. I don't use vim because it's the best text editor; I use it because I can be reasonably sure every single UNIX-like system I ever log into will have it, and once it's in my fingers from having to learn it on a remote server, I might as well use it for daily programming. I don't use HTTP because it's an efficient protocol; I use it because every single device, library, and language speaks it. I didn't write Gumbo [1] in C because I like the language; I did it because every modern language can bind to C libraries, and so this lets a maximum number of people use it.
[1] https://github.com/google/gumbo-parser