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
(Score: 2) by FatPhil on Monday June 19 2017, @05:44AM (2 children)
Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
(Score: 2) by Whoever on Monday June 19 2017, @06:13AM (1 child)
As long as the author followed the rule of tabs for indentation, spaces for alignment, then, no, you don't need to know the original author's tab width.
(Score: 2) by FatPhil on Monday June 19 2017, @06:41AM
--->--->get_fooey_with_some_bars(the_great_fooinator,
--->--->--->.....................bar_number_1,
--->--->--->.....................bar_number_2);
Because you'd want the extra '--->' tab for the single additional level of semantic nesting, but would want to align the arguments with '.' spaces. If you are saying that, then you're a brave man. As long as you use it everywhere consistently in your own code, and don't use it in anyone else's code, then I have no problem with that. It's internally logical, but it's vanishingly rare, which makes it practically useless. I wouldn't even know how to set my editor up to do that automatically for me.
Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves