What The Hell Was Going Through My Mind?
-
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 -
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, 1997Yes eieio Absolutely, never hurts.
The problem with borrowing money from China is 30 mins. later you feel broke again.
-
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, 1997LOL! You've quite a smart wife out there. We'll we just sometimes miss the little things.
-
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, 1997With 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 -
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, 1997Indeed, 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
-
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
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 -
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, 1997John 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;
-
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, 1997That'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
-
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
Google is your friend.
-
Google is your friend.
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
-
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
Bill, I also replied to your Algorithm question. Dave.
-
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
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 -
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, 1997I wish I could give your wife a 5 for her comment. :) That's terrific.