Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
xigoi
4y ago
0 comments
Save
Share
That's not true. For example, I prefer 2-space indents, but I use 4-space indents in Python because that's the convention.
0 comments
1 comments · 1 top-level
top
newest
oldest
syockit
4y ago
Paired with a characters-per-line limit, 4-space indents forces you to better modularise your so that it doesn't nest too deep (which usually happens when your code is becoming too complex) so I guess that's the wisdom behind the convention.
j
/
k
navigate · click thread line to collapse