Avatar

Why, though? (Destiny)

by BeardFade ⌂, Portland, OR, Tuesday, December 13, 2016, 22:04 (3144 days ago) @ ZackDark

Why what? Not sure what the question is? Why 2 spaces? Just the convention adopted by the community at large, and if you're contributing to any open source project that's Ruby based you have to abide.

The big point of tabs and spaces, IMO, isn't which is better. It's about making pull requests legible. It's easier to review code that isn't mucked up with a bunch of committed lines that are just indentation changes.

This is why EditorConfig works well for open source projects, because it enforces everyone working on it to adopt the conventions of the project, rather than each individual's conventions.


Complete thread:

 RSS Feed of thread