3 ms·
This is the oldest most persistent argument in programming.
by erkose 12y ago
This is the oldest most persistent argument in programming.
- nickporter 12y agoI wonder if other professions have similar arguments.
- nmb 12y agoI got into beekeeping recently, and it's like this, except applied to everything.
- maxk42 12y agoSo... tabs or spaces?
- adamnemecek 12y agoCan you give some examples? I'm really curious.
- nmb 12y agoEasily. Just get any two beekeepers to talk to each other and you'll find plenty of examples. Some common ones: - Whether to use a [queen excluder](http://en.wikipedia.org/wiki/Queen_excluder http://en.wikipedia.org/wiki/Queen_excluder) or not. - What [kind of hive](http://www.beethinking.com/pages/what-is-the-best-bee-hive http://www.beethinking.com/pages/what-is-the-best-bee-hive) to use, even. - If using a Langstroth hive, whether to use [10-frame or 8-frame boxes](http://www.beesource.com/forums/showthread.php?291373-10-frame-vs-8-frame http://www.beesource.com/forums/showthread.php?291373-10-fra...). - How/when/whether to [feed your bees](http://www.bushfarms.com/beesfeeding.htm http://www.bushfarms.com/beesfeeding.htm). However, despite having all these disagreements, it's an incredibly friendly community. It's expected that anyone you meet will do things differently from you, so people swap advice and adopt things that work with their style. Edit: whelp, markdown doesn't work here but I'm too lazy to change it.
- libria 12y agoNo, Fitz is not advocating tabs over spaces in coding. He is saying gofmt loses a large part of its purpose if it does not enforce a particular style, and the Go devs happen to prefer tabs. It sounds like he's fine w/ anyone using a tool to format by spaces. That said, this is quite un-newsworthy.
- gmjosack 12y agoI'd say it's newsworthy to large Go shops that use spaces with gofmt and now have to change indentation in their repos. This isn't insignificant. Also it requires additional flags for things like blame/diff to ignore whitespace changes.
- f2f 12y agono such large go shops exist.
- gmjosack 12y agoIs it that unbelievable to you that a company that previously used other languages with spaces for indentation would desire to have a consistent indentation policy, especially considering that up until now the tooling supported such desires?
- jamwt 12y agoOooh yes they do. GP and I both happen to work for one. :-)
- notatoad 12y agoIt seems like a pretty silly argument. As long as there's a standard defined, any competent text editor can handle it for you. Go now has a standard - use tabs instead of spaces - and so the debate is over for this language, everybody set your editors accordingly.