Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A moment of silence please...

A moment of silence please...

Scheduled Pinned Locked Moved The Lounge
csharpc++visual-studio
33 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Gary Wheeler

    ... 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;

    M Offline
    M Offline
    mekDroid
    wrote on last edited by
    #2

    Sniff! :(

    1 Reply Last reply
    0
    • G Gary Wheeler

      ... 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;

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #3

      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

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      P 1 Reply Last reply
      0
      • G Gary Wheeler

        ... 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;

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        Welcome to the club of the one and only true brace placement style! I'll take my coat.

        H 1 Reply Last reply
        0
        • G Gary Wheeler

          ... 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;

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #5

          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 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

          1 Reply Last reply
          0
          • G Gary Wheeler

            ... 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;

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            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.

            P H G 3 Replies Last reply
            0
            • G Gary Wheeler

              ... 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;

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #7

              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!

              1 Reply Last reply
              0
              • G Gary Wheeler

                ... 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;

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #8

                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

                G P 2 Replies Last reply
                0
                • G Gary Wheeler

                  ... 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;

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #9

                  And there was much rejoicing.

                  1 Reply Last reply
                  0
                  • L Lost User

                    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.

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #10

                    I print my code, that's part of why I use so much vertical space. Room for notes, underlining, circling, etc.

                    L 1 Reply Last reply
                    0
                    • P PIEBALDconsult

                      I print my code, that's part of why I use so much vertical space. Room for notes, underlining, circling, etc.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #11

                      Quote:

                      that's part of why I use so much vertical space

                      Makes sense!

                      1 Reply Last reply
                      0
                      • D Dave Kreskowiak

                        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

                        G Offline
                        G Offline
                        Gary Wheeler
                        wrote on last edited by
                        #12

                        Hmm. Did a quick Wikipedia check; I'm calling 'Allman style' 'vertical braces'. Apparently I'm already nuts.

                        Software Zen: delete this;

                        L D 2 Replies Last reply
                        0
                        • G Gary Wheeler

                          Hmm. Did a quick Wikipedia check; I'm calling 'Allman style' 'vertical braces'. Apparently I'm already nuts.

                          Software Zen: delete this;

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #13

                          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. :laugh:

                          1 Reply Last reply
                          0
                          • G Gary Wheeler

                            ... 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;

                            R Offline
                            R Offline
                            Rage
                            wrote on last edited by
                            #14

                            Yes, but ... tabs or spaces ?

                            Do not escape reality : improve reality !

                            G 1 Reply Last reply
                            0
                            • R Rage

                              Yes, but ... tabs or spaces ?

                              Do not escape reality : improve reality !

                              G Offline
                              G Offline
                              Gary Wheeler
                              wrote on last edited by
                              #15

                              Tabs originally, now spaces. The group couldn't agree on a tab size :rolleyes: .

                              Software Zen: delete this;

                              P L 2 Replies Last reply
                              0
                              • L Lost User

                                Welcome to the club of the one and only true brace placement style! I'll take my coat.

                                H Offline
                                H Offline
                                H Brydon
                                wrote on last edited by
                                #16

                                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

                                1 Reply Last reply
                                0
                                • L Lost User

                                  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.

                                  H Offline
                                  H Offline
                                  H Brydon
                                  wrote on last edited by
                                  #17

                                  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

                                  1 Reply Last reply
                                  0
                                  • L Lost User

                                    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.

                                    G Offline
                                    G Offline
                                    Gary Wheeler
                                    wrote on last edited by
                                    #18

                                    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;

                                    L D 2 Replies Last reply
                                    0
                                    • G Gary Wheeler

                                      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;

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #19

                                      I haven't worked in C++ for many years - only C#. Hence no requirement to print on my side.

                                      1 Reply Last reply
                                      0
                                      • G Gary Wheeler

                                        Hmm. Did a quick Wikipedia check; I'm calling 'Allman style' 'vertical braces'. Apparently I'm already nuts.

                                        Software Zen: delete this;

                                        D Offline
                                        D Offline
                                        Dave Kreskowiak
                                        wrote on last edited by
                                        #20

                                        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

                                        1 Reply Last reply
                                        0
                                        • G Gary Wheeler

                                          ... 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;

                                          S Offline
                                          S Offline
                                          Slacker007
                                          wrote on last edited by
                                          #21

                                          put it all on one line. then you don't have to worry about styles and shit like that.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups