4 ms·
Tabs are only better for compatibility if you know that no one who touches the code will ever use spaces.
by peterbonney 9y ago
Tabs are only better for compatibility if you know that no one who touches the code will ever use spaces.
- IshKebab 9y agoBut the same is true for spaces...
- creepydata 9y agoWhat kind of a dick opens up a tabbed project and starts inserting spaces? Even if you have a preference the other way you play nice with others and stick with the project conventions. The other thing you need to do is stop people from checking in code that doesn't follow project conventions.
- ioquatix 9y agoOh, I've got some good examples :D https://github.com/ioquatix/rack-freeze/issues/2 https://github.com/ioquatix/rack-freeze/issues/2 https://github.com/ioquatix/latinum/pull/1 https://github.com/ioquatix/latinum/pull/1
- kej 9y agoFrom the linked issue: >deliberately have my editor set up to change tab width based on editor width (responsive indentation width) What editor are you using that has this setting?
- ioquatix 9y agoThere are a couple of ways I have this set up. Firstly, I've explored using responsive tab width in https://github.com/ioquatix/jquery-syntax https://github.com/ioquatix/jquery-syntax which is nice when presenting code on a mobile phone. Secondly, I've got hard coded tab width on my desktop with a huge screen vs my laptop with a smaller screen, and this works for all editors, including my primary editors Atom and vim. Finally, I've played around with using responsive CSS within Atom, but due to recent changes in the text rendering my current CSS doesn't appear to be working.
- benibela 9y agohttps://sourceforge.net/p/texstudio/hg/ci/69381fad4634edc4fb88d08ce2cb2c8d39d38ae0/ https://sourceforge.net/p/texstudio/hg/ci/69381fad4634edc4fb... :(
- abritinthebay 9y agoWe enforce that: spaces break linting. Trivially easy to set up your editor correctly once (if you even need to) and now everyone gets their preferred intenting size