|
You should vote for this suggestion[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
But that would only affect Visual Studio? What rubbish.
I still want some way of having comments somewhat separated from the code so you can hide or show them as desired. And maybe store the code in XML.
|
|
|
|
|
Welcome to the club of the one and only true brace placement style!
I'll take my coat.
|
|
|
|
|
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;
|
|
|
|