The Tabs vs. Spaces war is over, and spaces have emerged victorious
91–100 of 238 posts
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#92The point of the "tab" option is that there is no consensus on the number of spaces to use -- so by using tab, one uses a single character, and allows the developer to determine screen spacing to their comfort. "Tab" being a live option is a symptom of the war-never-over in absolute spacing degree -- since different people have different eye-sight, eye-strain, etc. constraints, different linguistic familiarities, cod…
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#93Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#94The point of the "tab" option is that there is no consensus on the number of spaces to use -- so by using tab, one uses a single character, and allows the developer to determine screen spacing to their comfort. "Tab" being a live option is a symptom of the war-never-over in absolute spacing degree -- since different people have different eye-sight, eye-strain, etc. constraints, different linguistic familiarities, cod…
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#95Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#96The point of the "tab" option is that there is no consensus on the number of spaces to use -- so by using tab, one uses a single character, and allows the developer to determine screen spacing to their comfort. "Tab" being a live option is a symptom of the war-never-over in absolute spacing degree -- since different people have different eye-sight, eye-strain, etc. constraints, different linguistic familiarities, cod…
I’d say that one’s approaching resolution, too. And 4 has won.
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#97Earlier quoted context omitted.
> another developer is seeing the code different than you. but that's the whole damn point ... I like substantively indented code, you prefer minimally indented, we should both be happy (and we can be, by using tabs).
You could certainly make that argument. You could also make the argument that all the developers on a project seeing the same view of the code enhances collaboration and team cohesion, especially if your team does pair programming. This is often why dev teams have more specific style guides that include things would be considered bike-shedding, like how many spaces an indent is.
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#98The point of the "tab" option is that there is no consensus on the number of spaces to use -- so by using tab, one uses a single character, and allows the developer to determine screen spacing to their comfort. "Tab" being a live option is a symptom of the war-never-over in absolute spacing degree -- since different people have different eye-sight, eye-strain, etc. constraints, different linguistic familiarities, cod…
But an editor can just as well let the user choose what width to display spaces at the start of a line. Nothing forces them to be the same width as spaces in the middle of a line.
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#99Earlier quoted context omitted.
This works until someone tries to vertically align something like a table or a line that is wrapped.
That’s mostly editor braindamage (that has unfortunately leaked into some otherwise very good codebases, like LuaJIT). Indent things with tabs, align with spaces[1]: if (foo) { » frobnicate(bar, » ...........baz); } Both camps will hate you, but things will work just as they should. [1] https://www.emacswiki.org/emacs/SmartTabs