Humor

User avatar
Royal
Posts: 10566
Joined: Mon Apr 11, 2011 5:55 pm

Re: Humor

Post by Royal » Mon Mar 25, 2019 4:27 am


User avatar
Pigeon
Posts: 18062
Joined: Thu Mar 31, 2011 3:00 pm

Re: Humor

Post by Pigeon » Mon Mar 25, 2019 1:04 pm

Sure. Pres Ego has to do his thing.

President "Beat A Dead Horse"

Who actually believes any of this stuff, found or not found, any more. It's good everything is peachy in our country otherwise we should be expecting something different from our leadership.

:)

User avatar
Royal
Posts: 10566
Joined: Mon Apr 11, 2011 5:55 pm

Re: Humor

Post by Royal » Thu Apr 25, 2019 8:00 am

Image

User avatar
Pigeon
Posts: 18062
Joined: Thu Mar 31, 2011 3:00 pm

Re: Humor

Post by Pigeon » Fri Aug 09, 2019 8:31 pm

Haha. Really.

The incrementer side effect

Image

User avatar
Royal
Posts: 10566
Joined: Mon Apr 11, 2011 5:55 pm

Re: Humor

Post by Royal » Sat Aug 10, 2019 1:26 am

I think this is the nerdiest joke you ever posted.

User avatar
Pigeon
Posts: 18062
Joined: Thu Mar 31, 2011 3:00 pm

Re: Humor

Post by Pigeon » Sat Aug 10, 2019 1:39 am

Do you see why I actually works. That guy needs a new line of work.

User avatar
Pigeon
Posts: 18062
Joined: Thu Mar 31, 2011 3:00 pm

Re: Humor

Post by Pigeon » Sat Aug 10, 2019 1:40 am

There are strange loops and there are useless loops.

User avatar
Royal
Posts: 10566
Joined: Mon Apr 11, 2011 5:55 pm

Re: Humor

Post by Royal » Sat Aug 10, 2019 1:46 am

You should break it down.

User avatar
Pigeon
Posts: 18062
Joined: Thu Mar 31, 2011 3:00 pm

Re: Humor

Post by Pigeon » Sat Aug 10, 2019 2:12 am

Intended to return the square of a number

The parameter n is passed and is the number to square

There is a while loop with no termination condition

while(true)

It checks for the value of variable k to equal square of the past parameter to square

k == n*n

If true it returns k which is the square of n and leaves the loop

it starts k at 0 and each interration it is incremented by 1

So k eventually will match the square of n

It could just

return n*n

Basically a WTF?

I works but the guy doesn't even know why ( or what he is doing :) )

User avatar
Pigeon
Posts: 18062
Joined: Thu Mar 31, 2011 3:00 pm

Re: Humor

Post by Pigeon » Sat Aug 10, 2019 2:14 am

It runs a loop for as many times as the value of the square result when it doesn't even need a loop.

Post Reply