Hacker Read
top
|
best
|
new
|
newcomments
|
leaders
|
about
|
bookmarklet
login
marksamman
2016-05-30 13:33:05
|
next
[–]
update item
(on:
Ask HN: Tabs or Spaces?
)
Tabs for indentation, spaces for alignment.
reply
Loading...
sort by:
oldest
newest
similarity_score
page size:
10
20
50
100
anyfoo | karma 8565 | avg karma 3.74
|
2021-07-22 18:16:22
|
next
[–]
similar comments
(on:
Google broke a conditional statement that verifies passwords on Chrome OS
)
Tabs for indentation, spaces for alignment.
reply
oftenwrong | karma 14616 | avg karma 6.35
|
2013-11-07 08:07:20
|
next
[–]
similar comments
(on:
Google's Shell Style Guide
)
tabs for indentation, spaces for alignment
reply
nevir | karma 2615 | avg karma 5.59
|
2018-07-30 14:39:07+00:00
|
next
[–]
similar comments
(on:
Elastic TabStops: A Better Way to Indent and Align Code (2017)
)
Tabs for indentation, spaces for alignment
reply
DominoTree | karma 1083 | avg karma 5.95
|
2023-08-17 09:58:41
|
next
[–]
similar comments
(on:
Tabs are objectively better than spaces
)
Tabs for indentation, spaces for alignment. This is the way
reply
dvdgsng | karma 219 | avg karma 1.66
|
2017-06-15 15:59:02+00:00
|
next
[–]
similar comments
(on:
Developers who use spaces make more money than those who use tabs
)
Indent with tabs. Align with spaces.
reply
donatj | karma 17336 | avg karma 4.57
|
2016-04-28 18:09:28+00:00
|
next
[–]
similar comments
(on:
Proposed JavaScript Standard Style
)
Tabs for indent, spaces for alignment - solves the problem unless you're trying to align across indentation levels, but you probably shouldn't be.
reply
nezza-_- | karma 909 | avg karma 6.18
|
2015-04-01 12:35:05+00:00
|
next
[–]
similar comments
(on:
Doom3 is the proof that “keep it simple” works
)
I always heard "Tabs for indenting, spaces for aligning."
reply
JaumeGreen | karma | avg karma
|
2023-07-20 05:45:34
|
next
[–]
similar comments
(on:
ChromiumOS Developer Guide, Programming languages and style
)
Tabs for indentation, spaces for alignment. This is my take.
I only can use it on personal projects, as most places I worked in use spaces.
reply
groestl | karma 2222 | avg karma 2.61
|
2018-08-26 20:50:50
|
next
[–]
similar comments
(on:
Tabs vs. spaces and other holy wars
)
Classic false dichotomy, it's both. Tabs for indentation, spaces for alignment.
reply
JoeAcchino | karma 270 | avg karma 6.43
|
2013-05-22 17:58:18+00:00
|
next
[–]
similar comments
(on:
Dennis Ritchie's first C compiler on Github
)
Just use tabs for indentation and spaces for alignment.
reply
seren | karma 3480 | avg karma 3.32
|
2013-12-19 13:01:51
|
next
[–]
similar comments
(on:
Ask HN: When you code, do you use tabs or spaces?
)
Tabs for leading indentation, space for alignment would be my favorite combination. However, in practice, it seems too complex to enforce. So space everywhere is good enough.
reply
wwweston | karma 10409 | avg karma 3.88
|
2024-01-23 10:20:33
|
next
[–]
similar comments
(on:
Why are we templating YAML? (2019)
)
I thought the consensus was tabs for block indentation, spaces for alignment.
reply
markrages | karma 876 | avg karma 2.92
|
2014-06-19 06:50:43+00:00
|
next
[–]
similar comments
(on:
Gofmt No Longer Allows Spaces. Tabs Only
)
tabs for indent, spaces for alignment works great with Python.
reply
beejiu | karma 1492 | avg karma 4.21
|
2014-06-19 06:43:38+00:00
|
next
[–]
similar comments
(on:
Gofmt No Longer Allows Spaces. Tabs Only
)
Tabs for scope, spaces for alignment.
reply
tbrownaw | karma 5348 | avg karma 2.25
|
2017-08-17 20:50:09+00:00
|
next
[–]
similar comments
(on:
Dilution of whisky – the molecular perspective
)
Tabs are semantic. Using spaces for indentation is like using tables for layout.
reply
Ajedi32 | karma 11678 | avg karma 4.23
|
2017-03-22 10:21:53
|
next
[–]
similar comments
(on:
Stack Overflow Developer Survey Results 2017
)
Tabs for indentation, spaces for alignment. That way devs can set whatever tab length they prefer in their editors without messing up alignment.
reply
oneeyedpigeon | karma 7765 | avg karma 2.34
|
2016-08-31 12:32:20+00:00
|
next
[–]
similar comments
(on:
Tabs or spaces – Parsing a 1B files among 14 programming languages
)
You don't, you use tabs for indentation and spaces for alignment.
reply
factorialboy | karma 3025 | avg karma 3.58
|
2013-05-28 16:08:24+00:00
|
next
[–]
similar comments
(on:
Show HN: Zerobox – a small lightbox
)
Tabs for indentation and not spaces =/
reply
Negitivefrags | karma 6403 | avg karma 7.29
|
2014-11-26 21:28:37+00:00
|
next
[–]
similar comments
(on:
OpenBSD kernel source file style guide
)
Tabs for indentation, spaces for alignment. This is the only sane standard.
reply
next
Legal
|
privacy
reply