Did you miss your activation email?

• Thursday September 24, 2020, 8:21 pm
• Proudly celebrating 15+ years online.
• Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.

### Author Topic: If a tree falls (in c#)  (Read 5178 times)

#### Fred Nerd

• Supporting Member
• Joined in 2006
• Posts: 278
##### If a tree falls (in c#)
« on: May 07, 2011, 07:43 AM »
Just a random, late night thought of a programming student.

I think I might be on the track of solving the age old problem of
"if a tree falls in the forest and no-one hears it, does it still make a sound"

I have considered it equal to:
"if something happens in my atempted program but there is no gui link, does it do what I wanted (and will use and later link)?"

When I work it out, then I will have solved both of them.

I also found out that is the answer os 42, the question is "How long is a piece of string?" Now to find out the units..... ( I need another drink)

Fred

#### Ath

• Supporting Member
• Joined in 2006
• Posts: 3,470
##### Re: If a tree falls (in c#)
« Reply #1 on: May 07, 2011, 07:57 AM »
I found the key:
a random, late night thought
-Fred Nerd

• Charter Member
• Joined in 2005
• Posts: 13,268
• Tell me something you don't know...
##### Re: If a tree falls (in c#)
« Reply #2 on: May 07, 2011, 09:47 AM »
I also found out that is the answer os 42, the question is "How long is a piece of string?" Now to find out the units..... ( I need another drink)
-Fred Nerd

1 error there... You need N more drinks. (And so do I~!)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

#### Stephen66515

• Animated Giffer in Chief
• Honorary Member
• Joined in 2010
• Posts: 3,649
##### Re: If a tree falls (in c#)
« Reply #3 on: May 07, 2011, 06:29 PM »
"How long is a piece of string?"
-Fred Nerd

Twice as long as it is from the middle.

#### Fred Nerd

• Supporting Member
• Joined in 2006
• Posts: 278
##### Re: If a tree falls (in c#)
« Reply #4 on: May 08, 2011, 09:57 AM »
Actually, I have always found the length of a piece of string to be N-1 where n is the required length....
And my programming also comes up short

• Charter Member
• Joined in 2005
• Posts: 13,268
• Tell me something you don't know...
##### Re: If a tree falls (in c#)
« Reply #5 on: May 08, 2011, 11:18 AM »
Actually, I have always found the length of a piece of string to be N-1 where n is the required length....
And my programming also comes up short
-Fred Nerd

And the solution to the N-1 string length problem is to have N+1 drinks~!
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

#### Target

• Honorary Member
• Joined in 2006
• Posts: 1,754
##### Re: If a tree falls (in c#)
« Reply #6 on: May 08, 2011, 09:05 PM »
Actually, I have always found the length of a piece of string to be N-1 where n is the required length....
And my programming also comes up short
-Fred Nerd

And the solution to the N-1 string length problem is to have N+1 drinks~!

this is not a solution as the only output is 2X(N-1)

• Charter Member
• Joined in 2005
• Posts: 13,268
• Tell me something you don't know...
##### Re: If a tree falls (in c#)
« Reply #7 on: May 08, 2011, 10:59 PM »
this is not a solution as the only output is 2X(N-1)
-Target

However, the wonderful side effect when N > 10 is that you just don't care much anymore.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

#### Fred Nerd

• Supporting Member
• Joined in 2006
• Posts: 278
##### Re: If a tree falls (in c#)
« Reply #8 on: May 09, 2011, 06:08 AM »
If N>10, then you have way too much string.
I think if I have had N+1 drinks I would get entangled in all of it. And then go from falling trees to 'string theory'

• Charter Member
• Joined in 2005
• Posts: 13,268
• Tell me something you don't know...
##### Re: If a tree falls (in c#)
« Reply #9 on: May 09, 2011, 08:15 AM »
If N>10, then you have way too much string.
I think if I have had N+1 drinks I would get entangled in all of it. And then go from falling trees to 'string theory'
-Fred Nerd

Wait, if whenever you have string, and need N, you have N-1, then would that be N-1>10 or N>10-1?

As for string theory? That requires copious amounts of LSD, not alcohol.

Speaking of... I hear N[4 or 7] calling me now...
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

#### Fred Nerd

• Supporting Member
• Joined in 2006
• Posts: 278
##### Re: If a tree falls (in c#)
« Reply #10 on: May 10, 2011, 04:55 AM »
Remember we had N-1 string * N+1 drinks, making a grand total of 2N-1 (drinks/string whatever) So if N > 10, then we have almost double the string, and way too much to drink.

Remember not to do calculus when drinking though: don't drink and derive :p

#### Target

• Honorary Member
• Joined in 2006
• Posts: 1,754
##### Re: If a tree falls (in c#)
« Reply #11 on: May 10, 2011, 05:19 PM »
Remember we had N-1 string * N+1 drinks, making a grand total of 2N-1 (drinks/string whatever) So if N > 10, then we have almost double the string, and way too much to drink.

Remember not to do calculus when drinking though: don't drink and derive :p
-Fred Nerd

I'm a bit confused - I've been following the process and all I ended up with was zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

• Charter Member
• Joined in 2005
• Posts: 13,268
• Tell me something you don't know...
##### Re: If a tree falls (in c#)
« Reply #12 on: May 10, 2011, 06:32 PM »
Remember we had N-1 string * N+1 drinks, making a grand total of 2N-1 (drinks/string whatever) So if N > 10, then we have almost double the string, and way too much to drink.

Remember not to do calculus when drinking though: don't drink and derive :p
-Fred Nerd

Hahahahahaha~!

I'm a bit confused - I've been following the process and all I ended up with was zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
-Target

Who's the lush?
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker