Stories
Slash Boxes
Comments

SoylentNews is people

This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by ese002 on Thursday March 31 2022, @04:54AM (1 child)

    by ese002 (5306) on Thursday March 31 2022, @04:54AM (#1233676)

    Setting a sane tab size is fine if you only have to work with your own code. Unfortunately, even if you can get your group to standardize on a single tab size, you inevitably need to merge in code from another group who chose a different value. It is a perpetual rewriting mess. Finally, there exists important and very expensive tools that do not allow tabs to be set to a sane value. Cadence Xcellium/Ncsim is an example.

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 1, Informative) by Anonymous Coward on Thursday April 14 2022, @09:18AM

    by Anonymous Coward on Thursday April 14 2022, @09:18AM (#1236866)

    That's because you guys don't know how to use tabs. Tabs are for indentation. Spaces are for aliment. Changing the tab size should never mess up text alignment. If it does then consider that a bug on whoever wrote the original code. Indentation means pressing a tab for each level of logical nesting that line of code has. If you then need to align that code with another line, you add spaces for that. For example if you wrap your function signatures and align the parameters, each parameter line should have the same amount of tabs as the function name line. Then you add spaces after the tabs until the parameters line up. THAT'S HOW YOU'RE SUPPOSED TO USE TABS! So many people use tabs incorrectly then complain that tabs suck. Tabs don't stuck, you're using them wrong.