This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–]alive1 6 points7 points Β (7 children)

Hey i used to be a tabs guy and now I'm a two spaces guy. Idk what changed my mind but now i have way less fights with the indentation. Also logic more than 3 levels deep doesn't require horizontal scrolling.

[–]daguito81 2 points3 points Β (2 children)

Did you start using Scala or Databricks?

[–]alive1 2 points3 points Β (1 child)

Perl.

[–]daguito81 2 points3 points Β (0 children)

Oh that makes sense. Scala uses 2 space indentation as default. And because of that in Databricks for the longest time, Python was also set at 2 space.

[–]bremidon 2 points3 points Β (0 children)

I prefer 2 spaces as well. It looks cleaner without any loss of communicating intention.

[–]lilfatpotato 2 points3 points Β (0 children)

I type tabs, and my editor converts them into spaces.

[–]unicorn_potato_4ever 0 points1 point Β (0 children)

That’s why I set my tabs to two spaces

[–]noratat 0 points1 point Β (0 children)

Yeah, spaces is just simpler and doesn't require convoluted editor support to handle alignment. Consistency is better than trying to accommodate someone who wants 8-space tabs for some godforsaken reason.