Skip to content

Comment on Arguments for Tabs (not spaces) - samholmes

Comments

OK, I'm biting; Using spaces instead of tabs is like using hard coded syntax coloring. I prefer my own color scheme thank you.

How do you handle line length limits? Or are there no line length limits in any of the codebases you work on?

Set a vertical bar that indicates the column that shall not be passed. I use 8-char wide tabs on the few codebases at work that use tabs, while everyone else seems to use 4 (because these particular projects obey "tabs for indent, spaces for align" either displays perfectly). I obey my vertical bar and always fall short.

Other peoples code will sometimes go over on my screen.... but who cares? If I found that a particularly offensive situation, I would just adjust my settings accordingly.

Tabs have a length of 1.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.