5 ms·
Why strictly two spaces and no tabs? Ive found this to be a trend I just don't understand. At my work we have ~30 front end developers and we have a strict tab
by aplummer 12y ago
Why strictly two spaces and no tabs? Ive found this to be a trend I just don't understand.
At my work we have ~30 front end developers and we have a strict tabs only policy, so everyone can use their IDE to choose their tab width depending on how they like it.
Am I missing some benefit?
- subsection1h 12y agoHow does your team successfully enforce a maximum line length while having a tabs-only policy? I know it's possible to do this, but in my experience, most teams I've encountered that have a tabs-only policy end up with lines of code that go on for miles because enforcing a maximum line length while having a tabs-only policy is more difficult than doing so while having a spaces-only policy. Long lines of code are especially annoying to people such as myself who have their editor split into multiple 100-character wide panes.
- aplummer 12y agoInteresting I guess the answer to that is we don't have a strict limit? Looking at a library now its all pretty much ~100ish but nothing set in concrete as a rule. That seems a bit restrictive IMO. Our other coding style rules kind of keep it down generally I suppose, like for SCSS declaring selectors on new lines (like in this styleguide) and in JS keeping callbacks to one level etc..