|
If it doesn't auto-indent, I will tab.
But now I wonder if K&R C had anything to say about that
|
|
|
|
|
I use Tabs (as the Good Lord Intended)
Truth,
James
|
|
|
|
|
I used tabs until Visual Studio .NET 2003 unrecoverably broke the block indent/undent operation when you mixed tabs and spaces. After that I switched to spaces.
And yes, this same operation has been broken ever since. VC6 would let you have {tab}{tab}{sp}{sp}stuff , and when you indented, that became {tab}{tab}{tab}{sp}{sp}stuff . All versions since then have stripped the leading tabs and/or spaces and inserted N tabs or N*s spaces.
Studio has been through more than one editor rewrite since then, and it still doesn't work right. I'm using VS2019 now, and it occasionally decides to treat indents as blocks. It's not predictable though.
Software Zen: delete this;
modified 20-Oct-22 17:00pm.
|
|
|
|
|
I always use IDE for coding. All IDEs that I use convert tab to spaces automatically. I always press TAB on keyboard when I want to indent, though. Since less keystroke is faster and better. So you could say that I am a TAB guy? But I am perfectly fine with it saved as spaces.
|
|
|
|
|
I use tabs bc using spaces is rude. For example, I personally prefer .html or .xaml files with an indentation of 3 spaces, for other file types I prefer 4 spaces. This is not possible if some ruthless predecessor inserted spaces according to his, probably different, personal preferences in the source files. Or if I am the predecessor, then I would force my 3 spaces upon other people. That's not the way to treat each other.
|
|
|
|
|
Bad tabs, bad Tabs,
whatcha gonna do,
whatcha gonna do when they screw the code up for you?
|
|
|
|
|
As a SQL dev it's SPACES all the way. I use a TAB to insert 2 spaces but never use the TAB character within my code.
|
|
|
|
|
Is Spaces a slang term for Diet Coke? If so I definitely prefer it to Tab.
|
|
|
|
|
FINALLY someone has brought up this subject!
|
|
|
|
|
I think this thread nicely illustrates why tabs should be used for indentation. You want 2, 4, 8 character indentation, fine. You want half inch indentation, fine. You want 2½ character indentation, %#*$ you, but sure.
No one has to choose what is the "right" amount, everyone's editor will display it how they want.
|
|
|
|
|
|
For some reason, your posters word of wisdom reminded me of one of the mantras I have been chanting for many years - ever since electric pedal bikes started appearing (around here, you rarely see classic pedal bikes any more, they all have electric motors):
Electric bikes are like non-alcoholic beer.
|
|
|
|
|
Or spandex on an extremely large person!
PartsBin an Electronics Part Organizer - A updated version available!
JaxCoder.com
|
|
|
|
|
This may be non PC but we had a secretary who insisted on wearing lycra to work, forever known as "Screaming Lycra", twas a frightening sight that still haunts me 30 years later.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
I live in Florida and used to go to the beach quite often. During tourist season you see a lot that you wish you had never seen.
PartsBin an Electronics Part Organizer - A updated version available!
JaxCoder.com
|
|
|
|
|
Better than see through yoga pants! Not appropriate for the office.
|
|
|
|
|
honey the codewitch wrote: I immediately feel like I'm being sold an extended warranty.[^] Out of depth and not fit to give any opinion?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Blocked or Allowed the post?
|
|
|
|
|
Bee made by the doctor and I (5)
"Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein
|
|
|
|
|
Nice one
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Wrong answer
"Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein
|
|
|
|
|
I can't do tomorrow, so it'll last a little longer!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Not so much longer, I think ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I did say "a little longer"...
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Bee
made by the
doctor DR
and I ONE
DRONE
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|