The Tabs vs. Spaces war is over, and spaces have emerged victorious
121–130 of 238 posts
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#122Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#123Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#124Rob Pike on why Go is indented with tabs [0]: > How wide should the indentation be? 2 spaces? 4? 8? Something else? > By making the indent be a tab, you get to decide the answer to that question and everyone will see code indented as wide (or not) as they prefer. > In short, this is what the tab character is for. 0: https://groups.google.com/g/golang-nuts/c/iHGLTFalb54/m/zqMo...
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#125Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#126Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#127The 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
#128In the 90s, when I used various text editors like Ultraedit, Nedit, Pico, Nano, Vi, and my co-workers used Dreamweaver, Visual C++, Visual Basic, NetBeans I was in the "TABs are superior" camp but only for the initial indention of code blocks. But somewhere along the way, editors added features that let you see invisibles, and let you set up smart tabs so that you could hit tab, but it would interpolate 4 spaces (or…
Navigation is still more painful with spaces than with tabs.
Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#129Re: The Tabs vs. Spaces war is over, and spaces have emerged victorious
#130Among our team we do not enforce a specific width, but respecting the choice of the original author of a project is required.
Kind of annoying how LLMs will sometimes randomly decide to change tab width.