Viewing a single comment thread. View all comments

pozmu wrote

similar thing is "tab vs spaces" shown in Silicone Valley series:

https://www.youtube.com/watch?v=SsoOG6ZeyUI

2

flabberghaster OP wrote

Spaces are better

2

hollyhoppet wrote (edited )

the factoid that brought me into the tabs camp after years of being a spaces die-hard is that tabs are better for accessibility because they allow people with specific vision needs to configure the spacing of their code more easily

2

flabberghaster OP wrote (edited )

It's possible for code formatters to automatically change it either way, but it's not fair to require people to set that up.

IMO, the ideal is to have a config for editors that automatically code formats it, so individual users can set their code formatter up however they want, and before they start editing they can format it to how they like, and before it goes in to the repository it gets broken down to the AST and formatted according to the projects style guide

1