DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: If a tree falls (in c#)  (Read 10,404 times)

Fred Nerd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 278
    • Programming School - Stage 1 Medal
    • Participated in NANY Challenge Once
If a tree falls (in c#)
« on: May 07, 2011, 12:43 PM »
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,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: If a tree falls (in c#)
« Reply #1 on: May 07, 2011, 12:57 PM »
I found the key: ;D
a random, late night thought
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: If a tree falls (in c#)
« Reply #2 on: May 07, 2011, 02:47 PM »
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)

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

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

KynloStephen66515

  • Animated Giffer in Chief
  • Honorary Member
  • Joined in 2010
  • **
  • Posts: 3,772
    • Participated in NANY Challenge Three Times
    • Cody Award
    • Coding Snacks
    • Official Forum Clown
    • Volunteers/Staff
    • Writer
    • Hardware Hacker
    • DJ Badge - DJ
    • Linux User
Re: If a tree falls (in c#)
« Reply #3 on: May 07, 2011, 11:29 PM »
"How long is a piece of string?"

Twice as long as it is from the middle.

Fred Nerd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 278
    • Programming School - Stage 1 Medal
    • Participated in NANY Challenge Once
Re: If a tree falls (in c#)
« Reply #4 on: May 08, 2011, 02:57 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 :(

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: If a tree falls (in c#)
« Reply #5 on: May 08, 2011, 04:18 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 :(

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,840
    • Coding Snacks
Re: If a tree falls (in c#)
« Reply #6 on: May 09, 2011, 02:05 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 :(

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)
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: If a tree falls (in c#)
« Reply #7 on: May 09, 2011, 03:59 AM »
this is not a solution as the only output is 2X(N-1)

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
    • Programming School - Stage 1 Medal
    • Participated in NANY Challenge Once
Re: If a tree falls (in c#)
« Reply #8 on: May 09, 2011, 11: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'

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: If a tree falls (in c#)
« Reply #9 on: May 09, 2011, 01:15 PM »
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'

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. :P

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
    • Programming School - Stage 1 Medal
    • Participated in NANY Challenge Once
Re: If a tree falls (in c#)
« Reply #10 on: May 10, 2011, 09: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,840
    • Coding Snacks
Re: If a tree falls (in c#)
« Reply #11 on: May 10, 2011, 10: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

I'm a bit confused - I've been following the process and all I ended up with was zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: If a tree falls (in c#)
« Reply #12 on: May 10, 2011, 11: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


Hahahahahaha~! :D


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


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

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

Original address: https://www.donationcoder.com/forum/index.php?topic=26677.0