▲ | quietbritishjim a day ago | |||||||||||||||||||||||||||||||||||||
> so by using tab, one ... allows the developer to determine screen spacing to their comfort (Allow me to reply to this age-old argument with the age-old counter argument...) But you also have to decide at what point to hard wrap each line based on a max line length, and you can only do that based on some choice of tab size. Anyone with a different tab size preference would see the right column wandering depending on indentation level. This invalidates the only advantage of tabs (assuming file size is no longer a concern). A common retort is that each reader's auto format (or soft wrapping) can sort out the wrapping. But if each coder is going to reformat the code anyway then they get the benefit of choosing their own indentation level regardless of tabs vs spaces. | ||||||||||||||||||||||||||||||||||||||
▲ | JohnFen a day ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
> But you also have to decide at what point to hard wrap each line based on a max line length I think that you should not be doing this, for the same reason that you should use tabs. It allows the user to select whichever hard wrap point (if any -- I generally choose to not have one) they prefer. But all of this sort of thing is pointless debate these days, when it's pretty fast and easy to preprocess the files to match your preferences prior to editing. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
▲ | citrin_ru 12 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
> But you also have to decide at what point to hard wrap each line based on a max line length Exact and strictly enforced max line length IMHO unnecessary. Too wide code is hard to read, too narrow too but in between there is a wide range of acceptable values. When possible I treat max length as a recommendation, not hard limit. When you don’t have a hard limit it’s not a problem if code added by someone who uses visual tab width 2 will go over 78 characters in the editor which tab width set to 4. Equally it’s not a problem when someone using 4 will make a line break sooner than one using 2. | ||||||||||||||||||||||||||||||||||||||
▲ | ecocentrik a day ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
The whole line of thought is just a waste of cycles. /Screams "tabs", sticks fingers in ears and walks away. | ||||||||||||||||||||||||||||||||||||||
▲ | arcbyte a day ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
I dont even understand what youre trying to describe here. What is a wandering right column? This argument fails by default if its not understandable. | ||||||||||||||||||||||||||||||||||||||
|