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. What The Hell Was Going Through My Mind?

What The Hell Was Going Through My Mind?

Scheduled Pinned Locked Moved The Lounge
questioncsharplinqhelp
13 Posts 9 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.
  • R Offline
    R Offline
    realJSOP
    wrote on last edited by
    #1

    I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    "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

    M B L P G 7 Replies Last reply
    0
    • R realJSOP

      I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "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

      M Offline
      M Offline
      Mike Hankey
      wrote on last edited by
      #2

      Yes eieio Absolutely, never hurts.

      The problem with borrowing money from China is 30 mins. later you feel broke again.

      1 Reply Last reply
      0
      • R realJSOP

        I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        "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

        B Offline
        B Offline
        bulingit43
        wrote on last edited by
        #3

        LOL! You've quite a smart wife out there. We'll we just sometimes miss the little things.

        1 Reply Last reply
        0
        • R realJSOP

          I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          "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

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

          With that title you had me worried for a second. Good to see that it was not one of your .45 ACP going through your mind :) Seriously, it's not always easy to start working on a project as if no interruption had occured. I always try to stop when a point has been reached where today's work is done and an entirely new task comes next, so that I don't have to remember too many details. But once in a while it turns out that I have a bad day and do something that's more or less out of the context. It happens.

          "Dark the dark side is. Very dark..." - Yoda ---
          "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

          1 Reply Last reply
          0
          • R realJSOP

            I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            "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

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

            Indeed, writing an article is a great reason to find and fix things like that.

            John Simmons / outlaw programmer wrote:

            the code in question was performing a LINQ join

            That'll teach you; write readable code. :-D

            R 1 Reply Last reply
            0
            • P PIEBALDconsult

              Indeed, writing an article is a great reason to find and fix things like that.

              John Simmons / outlaw programmer wrote:

              the code in question was performing a LINQ join

              That'll teach you; write readable code. :-D

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

              It *is* readable. I was simply not reading it. :) PIBCAK (Problem Is Between Chair And Keyboard).

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              "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

              1 Reply Last reply
              0
              • R realJSOP

                I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                "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

                G Offline
                G Offline
                Gary R Wheeler
                wrote on last edited by
                #7

                John Simmons / outlaw programmer wrote:

                My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell."
                 
                Sometimes, she's pretty damn funny.

                Mrs. Outlaw sounds like a keeper. :-D

                Software Zen: delete this;

                1 Reply Last reply
                0
                • R realJSOP

                  I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "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

                  B Offline
                  B Offline
                  BillWoodruff
                  wrote on last edited by
                  #8

                  That's a great post, John, brought me a 4:20AM smile that was very refreshing as I took a break from strugging for the #nth. time to figure out why an error thrown by Activator.CreateInstance was not being "caught." May I ask what "more cow-bell" is; the phrase fascinates me. I'ts been over nine years since I set foot in the US; what have I been missing in terms of language ? I had lots of contact with "country people" growing up in Florida in the 1950's, and I am quite familiar with hush-puppies, grits, corn-pone, chicory, Uncle Remus stories, Paul Bunyan stories, "wet dog in the house," "fuller than a tick on a dog," "like a cow pi**ing on a flat rock," "cat on a hot tin-roof," etc. But, never heard "cow-bell" used. I can only hope that it doesn't refer to some game on an i-something that has umpteen-million users. thanks, Bill

                  "In the River of Delights, Panic has not failed me." Jorge Luis Borges

                  M R 2 Replies Last reply
                  0
                  • B BillWoodruff

                    That's a great post, John, brought me a 4:20AM smile that was very refreshing as I took a break from strugging for the #nth. time to figure out why an error thrown by Activator.CreateInstance was not being "caught." May I ask what "more cow-bell" is; the phrase fascinates me. I'ts been over nine years since I set foot in the US; what have I been missing in terms of language ? I had lots of contact with "country people" growing up in Florida in the 1950's, and I am quite familiar with hush-puppies, grits, corn-pone, chicory, Uncle Remus stories, Paul Bunyan stories, "wet dog in the house," "fuller than a tick on a dog," "like a cow pi**ing on a flat rock," "cat on a hot tin-roof," etc. But, never heard "cow-bell" used. I can only hope that it doesn't refer to some game on an i-something that has umpteen-million users. thanks, Bill

                    "In the River of Delights, Panic has not failed me." Jorge Luis Borges

                    M Offline
                    M Offline
                    Member 4194593
                    wrote on last edited by
                    #9

                    Google is your friend.

                    B 1 Reply Last reply
                    0
                    • M Member 4194593

                      Google is your friend.

                      B Offline
                      B Offline
                      BillWoodruff
                      wrote on last edited by
                      #10

                      Yes, but there are times when one fears what either friend, or Google, might tell you, and the 'horse's mouth' is always so ... flavorful. best, Bill

                      "In the River of Delights, Panic has not failed me." Jorge Luis Borges

                      M 1 Reply Last reply
                      0
                      • B BillWoodruff

                        Yes, but there are times when one fears what either friend, or Google, might tell you, and the 'horse's mouth' is always so ... flavorful. best, Bill

                        "In the River of Delights, Panic has not failed me." Jorge Luis Borges

                        M Offline
                        M Offline
                        Member 4194593
                        wrote on last edited by
                        #11

                        Bill, I also replied to your Algorithm question. Dave.

                        1 Reply Last reply
                        0
                        • B BillWoodruff

                          That's a great post, John, brought me a 4:20AM smile that was very refreshing as I took a break from strugging for the #nth. time to figure out why an error thrown by Activator.CreateInstance was not being "caught." May I ask what "more cow-bell" is; the phrase fascinates me. I'ts been over nine years since I set foot in the US; what have I been missing in terms of language ? I had lots of contact with "country people" growing up in Florida in the 1950's, and I am quite familiar with hush-puppies, grits, corn-pone, chicory, Uncle Remus stories, Paul Bunyan stories, "wet dog in the house," "fuller than a tick on a dog," "like a cow pi**ing on a flat rock," "cat on a hot tin-roof," etc. But, never heard "cow-bell" used. I can only hope that it doesn't refer to some game on an i-something that has umpteen-million users. thanks, Bill

                          "In the River of Delights, Panic has not failed me." Jorge Luis Borges

                          R Offline
                          R Offline
                          realJSOP
                          wrote on last edited by
                          #12

                          That's a reference to a Saturday Night Live skit starring Christopher Walken.

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          "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

                          1 Reply Last reply
                          0
                          • R realJSOP

                            I'm in the middle of writing an article, and was going back and forth between the article content and the code, and I got to one method and after looking at it for a while, I wondered "What the hell was going through my mind?" Despite having some comments, the code doesn't make any freakin' sense, despite the fact that the application appears to work as intended. Has anyone else ever had that happen to them? EDIT ========== My lovely wife just delivered my 2nd cup of coffee, leaned over my shoulder, and said "I think I know what the problem is. You need more cow bell." Sometimes, she's pretty damn funny. :) EDIT ========== I think I understand the code now. I hadn't noticed that the code in question was performing a LINQ join (slaps forehead). I'm adding more appropriate commentage at this time. EDIT ========== Article is currently over 1000 lines long. It looks like I'm going to have to make it a multi-part series because I'm only about a 3rd of the way finished with the article content. :/

                            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                            -----
                            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                            -----
                            "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

                            M Offline
                            M Offline
                            Mike Ellison
                            wrote on last edited by
                            #13

                            I wish I could give your wife a 5 for her comment. :) That's terrific.

                            www.MishaInTheCloud.com

                            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