tsk, tsk silly folks fighting over tabs vs spaces! The answer is NEITHER.
I propose we add a new key called source code indentation, SCI, which is neither a space nor a tab but gives you the desired configured amount of indentation with a single keystroke.
FAQ: 1. For the space heads, how is this not a tab? Well unbeknownst to the tab heads this is really just generating x spaces with a single keystroke but don't tell them that.
2. For the tab heads, how is this not a tab? Well it is, but don't tell the space heads that and continue to claim it is just a shortcut for multiple space keystrokes.
War over - lets get back to drinking.
Starting Score:
1
point
Karma-Bonus Modifier
+1
Total Score:
2
(Score: 2) by maxwell demon on Wednesday March 30 2022, @06:23AM
The battle is not about the key, the battle is about the characters inserted in the source code.
I use spaces exclusively in source code (except where not possible, e.g. in Makefile), but I use the tab key constantly in indentation. And it does indeed do much more than just insert spaces; indeed, sometimes it even removes spaces.
-- The Tao of math: The numbers you can count are not the real numbers.
My IDE (PyCharm Community Edition) inserts 4 spaces when I press tab. There is no problem. Except for the idiots that are still using Microsoft's Notepad to code.
-- Joshua 1:9 "Be strong and of a good courage; be not afraid, neither be thou dismayed: for the Lord thy God is with thee"
There was once a computer system that had a character that meant four-spaces. It was not a tab. It provided four spaces, not move forward to the next 1 (mod 4) or 1 (mod 8).
They were pleased how much source files got smaller.
(Score: 2) by arslan on Thursday March 24 2022, @10:31PM (3 children)
tsk, tsk silly folks fighting over tabs vs spaces! The answer is NEITHER.
I propose we add a new key called source code indentation, SCI, which is neither a space nor a tab but gives you the desired configured amount of indentation with a single keystroke.
FAQ:
1. For the space heads, how is this not a tab? Well unbeknownst to the tab heads this is really just generating x spaces with a single keystroke but don't tell them that.
2. For the tab heads, how is this not a tab? Well it is, but don't tell the space heads that and continue to claim it is just a shortcut for multiple space keystrokes.
War over - lets get back to drinking.
(Score: 2) by maxwell demon on Wednesday March 30 2022, @06:23AM
The battle is not about the key, the battle is about the characters inserted in the source code.
I use spaces exclusively in source code (except where not possible, e.g. in Makefile), but I use the tab key constantly in indentation. And it does indeed do much more than just insert spaces; indeed, sometimes it even removes spaces.
The Tao of math: The numbers you can count are not the real numbers.
(Score: 2) by Freeman on Wednesday March 30 2022, @02:07PM
My IDE (PyCharm Community Edition) inserts 4 spaces when I press tab. There is no problem. Except for the idiots that are still using Microsoft's Notepad to code.
Joshua 1:9 "Be strong and of a good courage; be not afraid, neither be thou dismayed: for the Lord thy God is with thee"
(Score: 2) by hendrikboom on Monday April 04 2022, @02:41AM
There was once a computer system that had a character that meant four-spaces. It was not a tab. It provided four spaces, not move forward to the next 1 (mod 4) or 1 (mod 8).
They were pleased how much source files got smaller.