|
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
|
|
|
|
|
Software Zen: delete this;
|
|
|
|
|
I'm hoping you'll see the beauty in the K&R format and return to your roots. Besides, IL generated from C# code written in the K&R format has been known to run faster.
/ravi
|
|
|
|
|
Ah, 'tis me leg you be pullin' there laddie. We all be knowin' that the only way to make managed code go faster be to whip the horse harder.
Software Zen: delete this;
|
|
|
|
|
See the Washington Post [^]
He always dreamt of being a real hacker...
I'll get my coat.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Quote: I'll get my coat. Yeah ... this one's a bit low TBH
|
|
|
|
|
According to the link that I provided, Jihadi John did study computer programming. That is what makes it funny.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Given his preferred method of executing his victims "hacker" is what makes it distinctly un-funny
|
|
|
|
|
Some jokes are better kept to oneself.
Life is too shor
|
|
|
|