Humor Random Comments Thread

Linguofreak

Well-known member
Joined
May 10, 2008
Messages
5,034
Reaction score
1,273
Points
188
Location
Dallas, TX
I spent a couple hours trying to find and fix this in a string handling function:

Code:
if(string[i] = '\n')
{
    //blah
}

Excuse me while I go perform percussive maintenance on my brain...

:beathead:
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,653
Reaction score
2,374
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
It becomes a very interesting and philosophical sentence if generalized. Food for thought, really. :hmm: :hmm: :hmm:

Well, some how it does make sense, not only artistically. ;) Think of a taxi driver and his relation to traffic regulations. Or a programmer in regards of the rules and guidelines of his programming language and project... Djikstra considered the goto harmful, but breaking the law from time to time brings better programs.
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,886
Reaction score
2,139
Points
203
Location
between the planets
I spent a couple hours trying to find and fix this in a string handling function:

Oh, I did pretty much the same two weeks ago. Funniest thing was that I was even thinking that it could be this problem, and I checked the exact place in the code. And still didn't see it. Needed to take a break before finding it...

On another note, I wonder where the close association between pirates and swashbuckling comes from. In no book, movie or video game would I have ever seen one swashbuckle. They always seem to fight with rapiers...
 

theshhh

2 year orbiter player
Joined
May 27, 2012
Messages
96
Reaction score
0
Points
0
Oh, I did pretty much the same two weeks ago. Funniest thing was that I was even thinking that it could be this problem, and I checked the exact place in the code. And still didn't see it. Needed to take a break before finding it...

On another note, I wonder where the close association between pirates and swashbuckling comes from. In no book, movie or video game would I have ever seen one swashbuckle. They always seem to fight with rapiers...

excuse me, is your name based off jebediah? (KSP) :rofl:
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,886
Reaction score
2,139
Points
203
Location
between the planets
excuse me, is your name based off jebediah? (KSP)

Not as such, but the two are related. It's two different spellings of the same hebrew name that is over two and a half millenia old. KSP came a bit later, I'm afraid. It also came about 31 years after my father seriously contemplated actually naming me Jedidia shortly before his death. I wear the nickname in his memory, or lack thereof, since he died before my birth.
 

Linguofreak

Well-known member
Joined
May 10, 2008
Messages
5,034
Reaction score
1,273
Points
188
Location
Dallas, TX
Oh, I did pretty much the same two weeks ago. Funniest thing was that I was even thinking that it could be this problem, and I checked the exact place in the code. And still didn't see it. Needed to take a break before finding it...

Well, first off, the fact that the code printed a bunch of newlines where it should have been printing other characters made me suspect another part of the code (whose output was shifted up the screen by all the newlines).

Once I eliminated that, I didn't even suspect that I'd written "=" for "==", even after it became obvious that code that should execute conditionally was executing unconditionally. So I reordered the code to put the "else" case first, and in doing so introduced another bug, which involved ">" instead of ">=", and also demonstrated that newlines were still being generated where they shouldn't be (though not everywhere). I think the fact that I had to add an "=" to solve that bug clued me in to what the original bug was.

The scary thing is that, had I not introduced the second bug, not only would I not have gotten the clue I needed for the first bug in fixing it, but the first bug would have been masked (but not taken care of) by the reordering I did.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,653
Reaction score
2,374
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
On another note, I wonder where the close association between pirates and swashbuckling comes from. In no book, movie or video game would I have ever seen one swashbuckle. They always seem to fight with rapiers...

Rather historic evolution, since Swashbucklers are just loud, boastful and rough swordsmen. But true, I never saw a pirate with a buckler.
 

Mattyv

Rocket Scientist in Training
Joined
Nov 17, 2011
Messages
435
Reaction score
0
Points
16
Location
Here.
I'd like to see a weather forecast use Rankine

"Today the temperature will drop to 490 degrees. As such a frost advisory has been issued"

That sure would be a good way to screw with people.:hmm:
 

Goth

Occasional orbinaut
Donator
Joined
Aug 1, 2008
Messages
424
Reaction score
2
Points
0
In a cavern, in a canyon,
Excavating for a mine
Dwelt a miner forty niner,
And his daughter Clementine
 

MattBaker

New member
Joined
Jul 9, 2011
Messages
2,750
Reaction score
0
Points
0
"Today the temperature will drop to 490 degrees. As such a frost advisory has been issued"

That sure would be a good way to screw with people.:hmm:

Sounds like weather forecasts by Venus' Aliens...
 

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
Never did like the metric system, US tons are: 2000 lbs = 1ton Thanks!
:huh: 1 US ton = 2000 lbs, but why isn't it a more round number, like 1000? I'll never understand non-metric systems. :p
 

TMac3000

Evil Republican
Joined
Nov 16, 2008
Messages
2,773
Reaction score
0
Points
36
Location
Flying an air liner to the moon
Doin' good right now. IHP is coming along nicely: we are about 20 million clicks out with 82 days to go, and I expect pretty soon we'll hit the straight-way and plunge in-system
 
Top