Tabs let everybody on the same project enjoy code indentation as they personally like it.
By forcing spaces in your "code style guideline", you are forcing your own personal code indentation preferences on other people screens.
You are making it about you. It's not about you.
✓ | ... represents the intention of an indentation level. |
✓ | ... have a customizable size in most IDEs. |
✓ | ... allows everybody to have their favorite cake. |
✗ | ... represent a fixed size character. |
✗ | ... do not have a customizable size. |
✗ | ... allows you to force your views on others. |
I am fully aware that half of these are statements and not questions.
Your code is not a timeless piece of art, it is a tool that has a purpose. It gets passed around, it evolves and grow.
You must accept that others will read and/or modify it.
Four spaces might be your personal preference, and that's fine. I might prefer six. Not saying I do, but why would you care ? Somebody else might prefer two. Who are we to judge ?
I get you had good intentions, but you've made your code less readable for a lot of people that have different preferences than you.
If you use tabs, everybody can have their favorite indentation, including you.
No, it's convenient for you. You might have to look at my monitor for 0 to 60 minutes per week? I look at my monitor at least 40 (ah !) hours per week. Why do you want to control what's on my monitor 24/7?
"The business" doesn't care about what you think will make you more efficient, otherwise your request to upgrade from your 22 inches monitors wouldn't have been denied for the 4th year in a row, don't you think ?
Standardizing things and having them look the same everywhere is just easier to manager.
Are you still coding in a 800x600 terminal ?
Because if you are, that's totally fine ! Use tabs and configure your IDE to display an indentation that is good for your very personal use case, and let me do the same on my machine.
Why would you feel the need to control what's on my monitor otherwise ? Again, it's not about you.
Can you also tell us which OS, IDE, color scheme, keyboard layout, monitors sizes and resolutions you're using ?
If you're going to force your views on others, might as well go all the way !
Why not ! Your "CSS is Awesome" mug was getting kind of old anyway.