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 arslan on Thursday March 24 2022, @10:31PM (3 children)

    by arslan (3462) on Thursday March 24 2022, @10:31PM (#1231876)

    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

    by maxwell demon (1608) on Wednesday March 30 2022, @06:23AM (#1233438) Journal

    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

    by Freeman (732) on Wednesday March 30 2022, @02:07PM (#1233493) Journal

    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

    by hendrikboom (1125) Subscriber Badge on Monday April 04 2022, @02:41AM (#1234665) Homepage Journal

    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.