A moment of silence please...
-
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
-
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
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...
-
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
-
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
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
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
My code will probably drive you nuts as I use Allman style. Always have, always will.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
And there was much rejoicing.
-
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.
-
I print my code, that's part of why I use so much vertical space. Room for notes, underlining, circling, etc.
-
My code will probably drive you nuts as I use Allman style. Always have, always will.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave KreskowiakHmm. Did a quick Wikipedia check; I'm calling 'Allman style' 'vertical braces'. Apparently I'm already nuts.
Software Zen:
delete this;
-
Hmm. Did a quick Wikipedia check; I'm calling 'Allman style' 'vertical braces'. Apparently I'm already nuts.
Software Zen:
delete this;
-
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
Yes, but ... tabs or spaces ?
-
Yes, but ... tabs or spaces ?
Tabs originally, now spaces. The group couldn't agree on a tab size :rolleyes: .
Software Zen:
delete this;
-
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.
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
-
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.
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;
-
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;
-
Hmm. Did a quick Wikipedia check; I'm calling 'Allman style' 'vertical braces'. Apparently I'm already nuts.
Software Zen:
delete this;
Well then, welcome to the nut house! :-D
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
put it all on one line. then you don't have to worry about styles and shit like that.
-
... for the last vestiges of the old Republic have been swept away. My legacy C++ code was written in K&R brace style, as the gods intended. I write my C# using the vertical brace Allman[^] style, thereby appeasing those gods. The last week or so I've been doing significant work in the legacy code, and I can't stand it anymore. I've written a VS macro(*) to reformat K&R to vertical braces Allman form. (*) Yes, I know that VS can reformat code for you. The built-in stuff in VS2008 is pretty lame.
Software Zen:
delete this;
-
Gary, I'm sorry but we can't be friends any more. :( /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
:((
Software Zen:
delete this;