Comment on Tabs are objectively better than spaces - gomakethings.com
JackbyDev@programming.dev 1 year agoYou’re confusing using tabs for indentation and spaces for alignment with using tabs and spaces for indentation. This means each line starts with tabs. Next you optionally have spaces for alignment with previous lines. Then you have content (like code or comments). Because you never have a tab following a space the alignment is never destroyed by adjusting how wide a tabstop is.
zagaberoo@beehaw.org 1 year ago
I am not, it’s easy to find examples where tabs first then spaces breaks down.
JackbyDev@programming.dev 1 year ago
That example is using tabs for both indentation and alignment. The article you linked even says not using tabs for alignment is a solution.
zagaberoo@beehaw.org 1 year ago
Yes, but keep reading. That strategy is a pain to maintain especially across editors.
JackbyDev@programming.dev 1 year ago
Many styles are difficult to maintain, I’m not saying it is or isn’t. I’m saying that using only spaces for alignment will not let your alignment get messed up with various tabstops settings.