|
Directors and managers of software development the world over reactively employ it when nudged out of their comfort zones, for instance. “What do you mean ‘pair programming’ — we’ll get half of the work done for the same payout in salary!” "Look me over closely. Tell me what you see."
|
|
|
|
|
Pair programming means an extra set of eyes scanning the code, caving you from all sorts of typo related errors.
|
|
|
|
|
In theory, maybe. In reality, the stronger developer will take over and the other will gladly let him/her and cease paying attention.
|
|
|
|
|
To be honest I was just writing any old thing in order to draw attention to the typo in the original post
|
|
|
|
|
So, they need pair article writing! Or an editor.
|
|
|
|
|
Going spelunking in an old codebase, eh?
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Tabs or spaces. We are going to parse a billion files among 14 programming languages to decide which one is on top. Amazing just how many people are so wrong!
Let's go to war over it!
|
|
|
|
|
Will the top one be the one with the most bytes in the target programming language or...
... the one with the least bytes? Aha!!!
|
|
|
|
|
I'd be all over tabs if editors would limit tabs to indentation only and use spaces in the line-interior when pressing the TAB key. But every editor stupidly uses tabs everywhere and gives no option to do otherwise. I think that's what the main complaint is about of the spaces-only people like me.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Why should one not use tab in mid line? I often line up trailing line-comments using tabs. or sometimes vertically arrange arguments to methods, etc. or struct layouts with multiple columns using tabs.
Tabs in mid-line are common - which is why editors have to allow them.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Tabs mid-line will cause alignment issues when you change the tab size. Using spaces mid-line will avoid that issue. Why does that matter? Because the stated reason for many people for using tabs is to allow different developers to indent differently because some like an indent of 4 while others like an indent of 2 and still others 3. I've even seen 5 spaces for a tab. So, while your multi-column struct layouts, method argument arrangements, etc are all nice and pretty for you, someone else viewing them with their different preferred tab setting will see them all skeewampus. Additionally, many differencing tools assign 8 spaces to a tab and now your tab indentation and mid-line alignments are really fubar when viewing the differences. Using spaces mid-line will at least avoid the massive misalignment of those bits of code.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Tab size should be 4 characters, this is accepted after not much discussion across my entire team. We never change it and anyone who chooses a different one is just wrong and deserves all the hassle this brings.
Simples!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Until you start using open source or you use source from some acquired company or licensed product all of which has differing standards to yours.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
We don't do that! Who would do a thing like that? That's crazy talk!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Indeed.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
I agree - tabs on the left, spaces after the first printable character of a line.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
...and it's JAVA that is most wrong, I noticed.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Even though I detest JAVA, I disagree and say they have it most right. Just my personal preference.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
I agree that JAVA shouldn't take all the blame. Anyone using spaces where tabs are more appropriate is just wrong!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Spaces FTW
Jeremy Falcon
|
|
|
|
|
Especially since it obvious Spaces is the only right choice
But as soon as someone can tell me how long a Tab is, then I might, maybe, ish, change my mind
|
|
|
|
|
The simplest rule I follow is that if it comes after a paragraph mark or a tab, it's a tab. Otherwise, it's a space.
|
|
|
|
|
And thus was it shown that efficiency is not a consideration to most coders.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Quote: One vote per file: Some files use a mix of spaces or tabs. We’ll count on which side depending on which method they use more.
Does this metric just compare numSpaces to numTabs, or does it apply a scaling factor to account for a line indented entirely with spaces having several times more than a line indented entirely with tabs. (I've seen enough cluster elephants using a mix of both on one line to dismiss the possibility that they're counting space only lines vs tab only lines because a file with a mix of both won't be that cleanly differentiated.)
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I find it interesting that the .c files get it right most of the time, but .h and .cpp files are wrong. I would think those three would be more in line with each other.
|
|
|
|