Stories
Slash Boxes
Comments

SoylentNews is people

posted by n1 on Sunday June 18 2017, @12:22AM   Printer-friendly
from the not-your-bar-tab dept.

Submitted via IRC for TheMightyBuzzard

The annual Stack Overflow developer surveys often include lots of bad news. "People still use PHP," for example, is a recurring and distressing theme. "Perl exists" is another.

But never before has the survey revealed something as devastatingly terrible as the 2017 survey. Using PHP and Perl are matters of taste. Extremely masochistic taste, certainly, but nobody is wrong for using those languages; it's just the programming equivalent of enjoying Adam Sandler movies. But the 2017 survey goes beyond taste; it goes into deep philosophical questions of right and wrong, and it turns out that being wrong pays more than being right.

Developers who use tabs to indent their code, developers who fight for truth and justice and all that is good in the world, those developers have a median salary of $43,750.

But developers who use spaces to indent their code, developers who side with evil and probably spend all day kicking kittens and punching puppies? Their median salary is $59,140.

Source: ArsTechnica


Original Submission

 
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: 4, Insightful) by Arik on Sunday June 18 2017, @08:20AM (5 children)

    by Arik (4543) on Sunday June 18 2017, @08:20AM (#527398) Journal
    "Tabs do not have an adjustable width. The tab character means to move the cursor until the next tab stop."

    I was wondering if you had ever seen a typewriter, thanks for confirming the no.

    Of course tabs have adjustable width. Typewriters had these things called tab stops, you can move them right or left any way you needed to get your indentation levels correct. This is even easier to do with a modern text editor. Even freaking Word lets you set tab stops.

    Spaces are for separating words. Tabs are for indentation. Just because neither of these things deposits ink on the paper does not make them the exact same thing.
    --
    If laughter is the best medicine, who are the best doctors?
    Starting Score:    1  point
    Moderation   +2  
       Insightful=1, Informative=1, Total=2
    Extra 'Insightful' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   4  
  • (Score: 0) by Anonymous Coward on Sunday June 18 2017, @08:54AM (4 children)

    by Anonymous Coward on Sunday June 18 2017, @08:54AM (#527405)

    Typewriters had these things called tab stops, you can move them right or left any way you needed to get your indentation levels correct. This is even easier to do with a modern text editor

    What editors do you know that allow for arbitrary tab stops? The only one I know that actually allows that is Emacs, all others only allow to set a tab interval, not every tab stop individually. And please do mention code editors -- Word is not a code editor (and it knows that -- even if you edit VB macros in Word itself, it spawns a different editor).

    • (Score: 2) by rleigh on Sunday June 18 2017, @10:21AM (2 children)

      by rleigh (4887) on Sunday June 18 2017, @10:21AM (#527418) Homepage

      Tab stop settings are a property of the output device, i.e. the terminal emulator or printer, just like physical stops on a typewriter. Some provide escape sequences to set them, others have configuration settings on their setup screen, some are fixed. When using an editor on these, they should use the terminal settings, unless they ignore them and fake it with spaces or direct positioning escapes.

      Graphical editors worth their salt allow flexible configuration also, some are limited to multiples of a number, others are fixed.

      I ended up moving to spaces, in practice it's less problematic when working on a shared codebase with others.

      • (Score: 2) by Whoever on Monday June 19 2017, @06:15AM (1 child)

        by Whoever (4524) on Monday June 19 2017, @06:15AM (#527767) Journal

        Tab stop settings are a property of the output device

        1. Who prints source code these days?
        2. The width of a space is also a property of the output device.

        • (Score: 2) by Arik on Monday June 19 2017, @07:18PM

          by Arik (4543) on Monday June 19 2017, @07:18PM (#528095) Journal
          "1. Who prints source code these days?"

          Output devices include monitors and screen readers, so the answer is anyone that reads it.
          --
          If laughter is the best medicine, who are the best doctors?
    • (Score: 1) by Arik on Sunday June 18 2017, @02:28PM

      by Arik (4543) on Sunday June 18 2017, @02:28PM (#527468) Journal
      That's been a feature request for VIM for, well, centuries. Pretty sure there's a plugin somewhere that allows it. But again, it doesn't matter. VIM's interpretation of a tab still produces successively deeper levels of indention with each tab stop no matter what and that's all that's required.

      --
      If laughter is the best medicine, who are the best doctors?