• Why the hate on tabs?
    50 replies, posted
Spaces also let you indent to margins that aren't integer multiples of your tab with - e.g. for better argument alignment. Here, while you may have to adjust the first line's indentation manually, the editor will still insert the same number of spaces on the following lines.
I use both, fight me.
[QUOTE=WTF Nuke;51682841]...But they also take away control from the person deciding how wide a tab is (because you can't decide how wide a space is).[/quote] Any competent editor would detect the spaces as tabs anyway though.
[IMG]https://cdn-images-1.medium.com/max/800/1*Aaqc9L1Hc62hBg_dpNgBKg.png[/IMG] [url]https://medium.com/@hoffa/400-000-github-repositories-1-billion-files-14-terabytes-of-code-spaces-or-tabs-7cfe0b5dd7fd#.hg4hbfqne[/url] It appears spaces are more common. I like spaces because with tabs you end up scrolling horizontally at some point typically. I like whitespace but I also like to keep it to a minimum.
I made my editor conver tabs to spaces automatically and get the best of both worlds
^ seems most sane choice
I use tabs because I like that everyone can look at code with their preferred indentation width. And also because I like to conceptually think of the tab character as an indentation level.
[QUOTE=Fourier;51726971]^ seems most sane choice[/QUOTE] Actually no it's just clever spaces propaganda. A true tabriot won't suffer functional spaces in the code.
[QUOTE=Fourier;51726971]^ seems most sane choice[/QUOTE] With that you have to be careful not to commit spaces instead of tabs, assuming the project is using tabs. Honestly it shouldn't matter, as long as it's consistently applied throughout the project.
killing a man that uses spaces is technically self defence
Guys, obviously the best choice is to let your editor automatically indent when you press tab. In Emacs my tab key is bound to: [code] TAB (translated from <tab>) runs the command c-indent-line-or-region (found in c++-mode-map), which is an interactive compiled Lisp function in ‘cc-cmds.el’. It is bound to TAB, <menu-bar> <C++> <Indent Line or Region>. (c-indent-line-or-region &optional ARG REGION) Indent active region, current line, or block starting on this line. [/code]
emacs?! vim master race
[QUOTE=Zelpa;51733837]killing a man that uses spaces is technically self defence[/QUOTE] I understand you, coming New Zealand there is not a lot of space(s). [editline]27th January 2017[/editline] [QUOTE=WTF Nuke;51734379]emacs?! vim master race[/QUOTE] nano is the shit
[QUOTE=Fourier;51734823]I understand you, coming New Zealand there is not a lot of space(s)[/QUOTE] some would say there's possibly too much space in your country of russia.
you mean Slovenia? Cause Slovenia is even smaller than New Zealand :v:. People hate me for using all the space(s).
[QUOTE=Fourier;51734823]I understand you, coming New Zealand there is not a lot of space(s). [editline]27th January 2017[/editline] nano is the shit[/QUOTE] Does it count if I write it on a notepad and scan it onto my computer?
[QUOTE=Fourier;51736807]you mean Slovenia? Cause Slovenia is even smaller than New Zealand :v:. People hate me for using all the space(s).[/QUOTE] australia has lots of space thank u very much
[video=youtube;SsoOG6ZeyUI]https://www.youtube.com/watch?v=SsoOG6ZeyUI[/video] They really went full exaggeration with her smashing the spacebar instead of pressing tab but they were just trying to get the point across. FWIW I also prefer tabs :v:
using spaces is the most infuriating thing for someone who has always used tabs i was fooling around with a game engine that forced you to use spaces. tabs would return errors for some reason it was just a nightmare to the point where I was willing to make my own custom font that made spaces 4 times bigger
[QUOTE=Zelpa;51737210]australia has lots of space thank u very much[/QUOTE] And it's all useless desert. Another nail in spaces' coffin.
Sorry, you need to Log In to post a reply to this thread.