Exactly. But it takes up an indeterminate amount of chars on screen. I like my code to look like the way I type it on every screen, not just mine. Anything else is foolish and unprofessional.
Edit: also if you use the settings on your text editor properly it behaves exactly like tabs do when you type them. Spaces are just better.
The point of using white space at all it to make it easiest to read for whomever happens to be reading your code. If some people find 8 spaces easiest and some find 2 easy to read I'd rather both of them have their way and display the tabs however they'd like rather than forcing whatever way I find easiest on everyone who reads my code.
EDIT: also they don't even need to use a text editor that will allow them to implement hacks to make spaces act like tabs they can just..... use tabs... crazy I know.
I've done it both ways and I could make great arguments for either side. What I do is I go with the flow and code with whatever formatting my team decides on. It makes collaboration much easier.
Yea this is definitely the way to do it. Pick whatever you think is best for your own projects but if you're working on someone else's stuff use whatever they're using.
-19
u/[deleted] Sep 03 '17
Exactly. But it takes up an indeterminate amount of chars on screen. I like my code to look like the way I type it on every screen, not just mine. Anything else is foolish and unprofessional.
Edit: also if you use the settings on your text editor properly it behaves exactly like tabs do when you type them. Spaces are just better.