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. I feel so dirty

I feel so dirty

Scheduled Pinned Locked Moved The Lounge
csharpannouncement
14 Posts 11 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 Offline
    G Offline
    Gary Wheeler
    wrote on last edited by
    #1

    I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

    Software Zen: delete this;

    CPalliniC K N A realJSOPR 10 Replies Last reply
    0
    • G Gary Wheeler

      I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

      Software Zen: delete this;

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Gary Wheeler wrote:

      I just coded used #define in a C# application for the first time.

      FFY. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      G 1 Reply Last reply
      0
      • G Gary Wheeler

        I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

        Software Zen: delete this;

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #3

        I've been teaching VB for weeks. X|

        Sort of a cross between Lawrence of Arabia and Dilbert.[^]

        1 Reply Last reply
        0
        • G Gary Wheeler

          I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

          Software Zen: delete this;

          N Offline
          N Offline
          Nagy Vilmos
          wrote on last edited by
          #4

          Gary Wheeler wrote:

          I feel so dirty

          @55 seconds[^]


          Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

          1 Reply Last reply
          0
          • G Gary Wheeler

            I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

            Software Zen: delete this;

            A Offline
            A Offline
            Arindam Tewary
            wrote on last edited by
            #5

            You must be carrying your C/CPP habbit!! That happens :)

            Thanks, Arindam D Tewary

            1 Reply Last reply
            0
            • G Gary Wheeler

              I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

              Software Zen: delete this;

              realJSOPR Offline
              realJSOPR Offline
              realJSOP
              wrote on last edited by
              #6

              I do that all the time when I'm testing alternatives to prior code blocks. That way, I can always revert back to what was working if things go completely sideways on me.

              .45 ACP - because shooting twice is just silly
              -----
              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

              1 Reply Last reply
              0
              • G Gary Wheeler

                I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

                Software Zen: delete this;

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #7

                Gary Wheeler wrote:

                I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

                Isn't this what source control is for? :confused:

                3x12=36 2x12=24 1x12=12 0x12=18

                G 1 Reply Last reply
                0
                • D Dan Neely

                  Gary Wheeler wrote:

                  I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

                  Isn't this what source control is for? :confused:

                  3x12=36 2x12=24 1x12=12 0x12=18

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

                  No, because other parts of this piece of code are evolving. I'm using the #define to preserve the original behavior, while allowing me to update the rest of the class. If this was a change in a single location, I would just comment-out the code and be done with it. Unfortunately, it requires a change in several places, so the #define was the better solution.

                  Software Zen: delete this;

                  1 Reply Last reply
                  0
                  • CPalliniC CPallini

                    Gary Wheeler wrote:

                    I just coded used #define in a C# application for the first time.

                    FFY. :)

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                    [My articles]

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

                    Actually not. I've been developing in C# for two years now.

                    Software Zen: delete this;

                    1 Reply Last reply
                    0
                    • G Gary Wheeler

                      I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

                      Software Zen: delete this;

                      L Offline
                      L Offline
                      leppie
                      wrote on last edited by
                      #10

                      I just love littering my code base with:

                      Console.Writeline(
                      #if DEBUG
                      "Foo"
                      #else
                      "Bar"
                      #endif
                      );

                      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                      1 Reply Last reply
                      0
                      • G Gary Wheeler

                        I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

                        Software Zen: delete this;

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

                        Welcome to the dark side.

                        1 Reply Last reply
                        0
                        • G Gary Wheeler

                          I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

                          Software Zen: delete this;

                          D Offline
                          D Offline
                          Dr Walt Fair PE
                          wrote on last edited by
                          #12

                          I don't see what the problem with that might be, as long as it isn't over done. I use it all the time to keep the source code for my Commercial, Demo and Student versions organized.

                          CQ de W5ALT

                          Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                          1 Reply Last reply
                          0
                          • G Gary Wheeler

                            I just used #define in a C# application for the first time :-O. I've been told to change a feature that I'm reasonably certain will revert to the original behavior before release, so this lets me switch easily. Sigh.

                            Software Zen: delete this;

                            A Offline
                            A Offline
                            AspDotNetDev
                            wrote on last edited by
                            #13

                            If it's code that can be tossed into a few methods, I like this type of solution.

                            [Forum Guidelines]

                            G 1 Reply Last reply
                            0
                            • A AspDotNetDev

                              If it's code that can be tossed into a few methods, I like this type of solution.

                              [Forum Guidelines]

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

                              Very interesting; thanks for the link!

                              Software Zen: delete this;

                              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