Code Chat - spaces or tabs? P.s. I am NOT a coder but why …
Code Chat - spaces or tabs?
P.s. I am NOT a coder but why the fuck would you use 8 spaces when you could ‘deploy’ a single tab!?!
P.P.s I AM binge watching ‘silicon valley’, so I do FEEL like a coder.
Replies
Richard is that you? Lol
Being able to display different widths for tabs is a benefit. Some developers like to use two spaces, some four, and some others eight. Using tabs allows each of us to view the code exactly as we desire, while maintaining proper indentation.
However, there are some languages which benefit from using spaces because they use character level alignment instead of block level indentation.
Objective-C was a popular language that did this. There was no alternative, and XCode only uses spaces.
Tabs are specifically for indentation. It is the natural fit for programming.
The argument for spaces is that different editors may display tab characters in different ways that the author did not intend.
I believe this argument for spaces is bogus.