3 ms·
Ask HN: It's 2018, tabs or spaces?
- kimusan 9y agoSpaces, now and forever.
- gcthomas 9y agoSpaces. Tabs are invisible and mess stuff up if mixed with spaces.
- jjgreen 9y agoBoth! https://www.emacswiki.org/emacs/TabsSpacesBoth https://www.emacswiki.org/emacs/TabsSpacesBoth
- chatmasta 9y agoSpaces. Your editor should convert the tab key to spaces.
- camhenlin 9y agotabs, so everyone can choose their own display width
- gbrunacci 9y agoWell... https://ukupat.github.io/tabs-or-spaces/ https://ukupat.github.io/tabs-or-spaces/
- IpV8 9y agoI love how some people use 3 spaces.
- maowenbrad 9y agoSpaces
- WillKirkby 9y agoLet's not do this again.
- dontJudge 9y agoBoth. Tabs for indents. Spaces for alignments after the indent level is reached. Everyone can view code with their preferred indent width. Perfect solution with no flaws or drawbacks. Maybe 1 drawback, it requires advanced tooling (emacs smart-tabs-mode) to automatically handle the indentation/alignment. Indent width is a visual effect. Mandating an indent width with hard spaces is like mandating the color scheme.
- dukeflukem 9y agoWhatever the rest of the team uses. For personal projects: whatever is idiomatic for that language.