|
If you mean 1tbs[^], you are describing an abomination unto all languages, IDEs and programmers.
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
Congratulations!
In a few years, you will realize your mistake, and accept that it should have been Whitesmiths all along!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I believe one of the reasons K&R was popular, was that it saves vertical space, and therefore paper when you print your code. But how often do you print code these days? I cannot remember the last time I needed a hard copy of my code.
|
|
|
|
|
I print my code, that's part of why I use so much vertical space. Room for notes, underlining, circling, etc.
|
|
|
|
|
Quote: that's part of why I use so much vertical space
Makes sense!
|
|
|
|
|
Cornelius Henning wrote: it saves vertical space,
The more modern concern is ability to maximize the amount of code on a power point slide.
[... to make a tangential point, the 'print' aspect is also the reason to use spaces and not tabs.]
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
On rare occasions I will still print a page or two of code when I'm refactoring C++. That's never necessary in C#, because the refactoring tools are so much better.
Software Zen: delete this;
|
|
|
|
|
I haven't worked in C++ for many years - only C#. Hence no requirement to print on my side.
|
|
|
|
|
I've done it on rare occasions with C#; but only with 500-1000 line function monstrosities never should've been written in the first place.
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
|
|
|
|
|
Gary Wheeler wrote: I've written a VS macro(*) to reformat K&R to vertical braces.
The old gods are dead, it's good that you are *cough* embracing *cough* the new ones.
Marc
|
|
|
|
|
My code will probably drive you nuts as I use Allman style. Always have, always will.
|
|
|
|
|
Hmm. Did a quick Wikipedia check; I'm calling 'Allman style' 'vertical braces'.
Apparently I'm already nuts.
Software Zen: delete this;
|
|
|
|
|
Even at my advanced age I learn something new every day. The style I have used from as far back as I can remember is called "Allman"? Wow! I have been nuts for a long time.
|
|
|
|
|
Well then, welcome to the nut house!
|
|
|
|
|
|
And there was much rejoicing.
|
|
|
|
|
Yes, but ... tabs or spaces ?
|
|
|
|
|
Tabs originally, now spaces. The group couldn't agree on a tab size .
Software Zen: delete this;
|
|
|
|
|
The problem is that when indent size is measured in "characters" then it depends on font size -- the smaller the font (I use an 8-point font) then the more characters are required to make an effective indent.
|
|
|
|
|
shirley with Tabs each individual can decide n the tab size for their preference?
PooperPig - Coming Soon
|
|
|
|
|
Since when is religion and pragmatism working together?
|
|
|
|
|
On user likes tabs of 4, another likes tabs of 3. No version of Visual Studio since Visual C++ 6 has handled mixing spaces and tabs properly. The result is Visual Chaos™.
Software Zen: delete this;
|
|
|
|
|
I can't recall if it. Is vs or an add on, but there is an option to ta if or detabify
If everyone always uses tabs, then one user an set. The tab spacing to 3 and the other to 4, then that's how they will be displayed for that user - with no changes to the file.
PooperPig - Coming Soon
|
|
|
|
|
put it all on one line. then you don't have to worry about styles and sh*t like that.
|
|
|
|
|
Gary, I'm sorry but we can't be friends any more.
/ravi
|
|
|
|