Chaos Project

General => Entertainment => Topic started by: tSwitch on May 03, 2009, 09:41:43 pm

Title: ITT: Nerd Jokes
Post by: tSwitch on May 03, 2009, 09:41:43 pm
stuff only us awesome computer geeks would get
like...

#define ever ;;
for(ever) {
   //comment
}


or


sudo chown -r us ./base
Title: Re: ITT: Nerd Jokes
Post by: Diokatsu on May 03, 2009, 09:50:28 pm
DEAR GOD I GOT THEM ;_;
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 03, 2009, 10:17:28 pm
DEAR GOD U USE UBUNTU `_`


sudo rm -Rf /



Guy1: Hey, my code is failing when given pre-1970 dates...
Guy2: Epoch fail!
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 03, 2009, 10:19:50 pm
Quote from: Biker WcW on May 03, 2009, 10:17:28 pm
DEAR GOD U USE UBUNTU `_`


no, but I know some unix

Quote from: Biker WcW on May 03, 2009, 10:17:28 pm

sudo rm -Rf /



that's not funny D:

Quote from: Biker WcW on May 03, 2009, 10:17:28 pm

Guy1: Hey, my code is failing when given pre-1970 dates...
Guy2: Epoch fail!



yay xkcd
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 04, 2009, 05:37:33 am
sudo make me a sandwich
ok
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 04, 2009, 06:23:59 am
wow... i don't get these.. plz explain :( TT
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 04, 2009, 09:49:04 am
QuoteEight bytes walk into a bar.  The bartender asks, "Can I get you anything?"
"Yeah," reply the bytes.  "Make us a double."


QuoteWhy do programmers always mix up Halloween and Christmas?
Because Oct 31 equals Dec 25.


Quote"Knock, knock."
"Who's there?"
very long pause....
"Java."


Spoiler: ShowHide
(http://www.devtopics.com/wordpress/wp-content/uploads/2008/05/comic.jpg)


Quote
The programmer compiled an array of reasons as to why he can't find a girlfriend with a good <HEAD> on her <BODY>, reason 0 being that he has limited cache.  So he searches his memory to recall connecting to the TCP/IP tunnel of his last girlfriend -- sometimes even without a secure socket.  His last girlfriend always complained about his lack of comments. He fumed, "I hate commenting!"  Realizing it was a program requirement, he told her she had nice bits.  This resulted in a Syntax Error.  Now she demanded a massage, but this was rejected as "Feature Creep."  He smacked her back-end and shouted, "Who's your parent node?!"  He scanned for open ports.  He attempted to install a backdoor worm but her response was 403.  While his data uploaded into her input device, she considered terminating the process.  But instead she initiated a Do While loop where she recalled a previous boyfriend with a larger pointer.  To expedite the routine routine, she screamed, "Hack into my system! Hack deep into my system! You're 1337, baby!"  This caused his stack to overflow, and he shot his GUI on her interface.
Title: Re: ITT: Nerd Jokes
Post by: King Munkey on May 04, 2009, 11:57:01 am
I got some of them
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 04, 2009, 03:38:43 pm
i got the 3rd the one with the spoiler and the last one.  funny but the first 3i dont know... :(
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 04, 2009, 05:31:43 pm
Lol @ all of these.

I <3 UNIX. You have to admit that it is better than Windows at shell jokes XD
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 04, 2009, 08:18:57 pm
Quote"Knock, knock."
"Who's there?"
very long pause....
"Java."


love this obne

Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 04, 2009, 08:54:34 pm
Are we allowed to explain them to people?
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 05, 2009, 03:48:41 am
OMG, I get ALL of them. ;_; The Java one was funny. xD
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 05, 2009, 08:45:41 am
Quote from: Biker WcW on May 04, 2009, 08:54:34 pm
Are we allowed to explain them to people?


Quote from: Eilte Four NAMKCOR on May 03, 2009, 09:41:43 pm
stuff only us awesome computer geeks would get
like...


I guess you could, but if they don't get them on their own they aren't a computer geek :P
Title: Re: ITT: Nerd Jokes
Post by: Vell on May 05, 2009, 06:49:49 pm
ah... yes. I am most certainly not a geek.
Title: Re: ITT: Nerd Jokes
Post by: King Munkey on May 06, 2009, 12:35:49 am
I don't get the unix/ubuntu ones. The rest I do get.
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 06, 2009, 08:32:58 am
Quote from: Rocket Grunt on May 06, 2009, 12:35:49 am
I don't get the unix/ubuntu ones. The rest I do get.


they also work in OSX
Title: Re: ITT: Nerd Jokes
Post by: King Munkey on May 06, 2009, 09:56:00 am
Unfortunately I lack knowledge in that area too :/
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 06, 2009, 10:55:47 am
this one is more of a riddle than a joke.

Spoiler: ShowHide
10
11
12
13
14
15
16
17
20
22
24
31
100
[ ? ]
10000

find ?
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 06, 2009, 11:08:18 am
Spoiler: ShowHide
(http://img115.imageshack.us/img115/5954/snap742.png)
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 06, 2009, 11:14:37 am
Quote from: Rival Blizzard on May 06, 2009, 11:08:18 am
Spoiler: ShowHide
(http://img115.imageshack.us/img115/5954/snap742.png)



har har so funny obvious joke :P
no, what number is ?
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 06, 2009, 11:41:39 am
Oh wait, you're serious? I have no idea. ;_; That number sequence makes no sense to me.
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 06, 2009, 11:51:18 am
Quote from: Rival Blizzard on May 06, 2009, 11:41:39 am
Oh wait, you're serious? I have no idea. ;_; That number sequence makes no sense to me.


there is a pattern to it, it's just very well hidden.

Quote<NAMKCOR> sudo chown -r NAMKCOR /Blizzard
<NAMKCOR> sudo chmod 644 /Blizzard
<Blizzard> ;_;
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 06, 2009, 02:50:35 pm
I was on the right track for a moment, but I abandoned that idea because I made a mistake at the beginning. I know what the solution is now.
Title: Re: ITT: Nerd Jokes
Post by: legacyblade on May 07, 2009, 03:17:01 pm
Quote from: Elite Four NAMKCOR on May 04, 2009, 09:49:04 am
QuoteEight bytes walk into a bar.  The bartender asks, "Can I get you anything?"
"Yeah," reply the bytes.  "Make us a double."


Quote"Knock, knock."
"Who's there?"
very long pause....
"Java."


Spoiler: ShowHide
(http://www.devtopics.com/wordpress/wp-content/uploads/2008/05/comic.jpg)


Quote
The programmer compiled an array of reasons as to why he can't find a girlfriend with a good <HEAD> on her <BODY>, reason 0 being that he has limited cache.  So he searches his memory to recall connecting to the TCP/IP tunnel of his last girlfriend -- sometimes even without a secure socket.  His last girlfriend always complained about his lack of comments. He fumed, "I hate commenting!"  Realizing it was a program requirement, he told her she had nice bits.  This resulted in a Syntax Error.  Now she demanded a massage, but this was rejected as "Feature Creep."  He smacked her back-end and shouted, "Who's your parent node?!"  He scanned for open ports.  He attempted to install a backdoor worm but her response was 403.  While his data uploaded into her input device, she considered terminating the process.  But instead she initiated a Do While loop where she recalled a previous boyfriend with a larger pointer.  To expedite the routine routine, she screamed, "Hack into my system! Hack deep into my system! You're 1337, baby!"  This caused his stack to overflow, and he shot his GUI on her interface.



It's sad that I actually get all of those...

My favorite one has to be the comic where the kid wrote a program on the board that would print the sentence 100 times.
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 07, 2009, 05:01:34 pm
Quote from: Gym Leader Blades on May 07, 2009, 03:17:01 pm
My favorite one has to be the comic where the kid wrote a program on the board that would print the sentence 100 times.


500
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 07, 2009, 07:12:03 pm
grr namk you truly are a GEEK!
i cant figure this one out... like blizzard said the number sequence makes no sense!~
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 07, 2009, 10:59:22 pm
Quote from: Lass Sally on May 07, 2009, 07:12:03 pm
grr namk you truly are a GEEK!
i cant figure this one out... like blizzard said the number sequence makes no sense!~


thank you.
and it makes plenty of sense.
Title: Re: ITT: Nerd Jokes
Post by: legacyblade on May 08, 2009, 02:01:01 am
I meant to type 500, I'm just tired from rewriting this stupid essay over and over.
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 08, 2009, 03:27:29 am
Quote from: Lass Sally on May 07, 2009, 07:12:03 pm
grr namk you truly are a GEEK!
i cant figure this one out... like blizzard said the number sequence makes no sense!~


Quote from: Rival Blizzard on May 06, 2009, 02:50:35 pm
I was on the right track for a moment, but I abandoned that idea because I made a mistake at the beginning. I know what the solution is now.


It makes a lot of sense. But it's not as obvious as NAMK is claiming. It's more of a mathematical riddle rather than a computer science riddle.
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 08, 2009, 06:20:33 am
x+(x+2) ? :( i cant figure it out
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 10:33:58 am
I never said it was obvious, I said it was very well hidden.
All I said was that it makes perfect sense.
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 08, 2009, 11:41:45 am
Yes, you did. You told me that in IRC. ._.
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 08, 2009, 11:50:18 am
PLURFECT NUMBARS
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 12:10:55 pm
Quote from: Rival Blizzard on May 08, 2009, 11:41:45 am
Yes, you did. You told me that in IRC. ._.


I told you that if I gave you a hint, that it'd become obvious. at least to you.

Quote from: Biker WcW on May 08, 2009, 11:50:18 am
PLURFECT NUMBARS


so then what number should replace [ ? ]
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 08, 2009, 01:25:38 pm
Crap. I think I just figured it out. I can't believe I didn't notice that X|

DO NOT READ: ShowHide

Decreasing bases?

I mean, it goes base-8, base-4, base-2...
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 04:12:56 pm
Quote from: Biker WcW on May 08, 2009, 01:25:38 pm
Crap. I think I just figured it out. I can't believe I didn't notice that X|

DO NOT READ: ShowHide

Decreasing bases?

I mean, it goes base-8, base-4, base-2...



I want the answer, I'm not here to give hints.
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 08, 2009, 04:29:07 pm
Spoiler: ShowHide

1000

Prolly not, but oh well. I don't feel like using my head too much today.
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 08, 2009, 04:47:28 pm
Can I tell him, please? ;_;
Title: Re: ITT: Nerd Jokes
Post by: King Munkey on May 08, 2009, 05:12:20 pm
You can tell me
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 05:41:01 pm
Quote from: Biker WcW on May 08, 2009, 04:29:07 pm
Spoiler: ShowHide

1000

Prolly not, but oh well. I don't feel like using my head too much today.


no.

Quote from: Rival Blizzard on May 08, 2009, 04:47:28 pm
Can I tell him, please? ;_;


no.

Quote from: Rocket Grunt on May 08, 2009, 05:12:20 pm
You can tell me


no.
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 08, 2009, 05:56:39 pm
can you give me a hint? im not smart like blizzard =[

Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 06:27:07 pm
Quote from: Lass Sally on May 08, 2009, 05:56:39 pm
can you give me a hint? im not smart like blizzard =[




no, sorry.
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 08, 2009, 06:47:19 pm
Is being a sadist fun?

Will you tell me the answer?
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 06:48:45 pm
Quote from: Biker WcW on May 08, 2009, 06:47:19 pm
Is being a sadist fun?


yes.
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 08, 2009, 06:55:27 pm
I retcon my statement, and now you are obligated to tell me the answer.
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 10:01:20 pm
Quote from: Biker WcW on May 08, 2009, 06:55:27 pm
I retcon my statement, and now you are obligated to tell me the answer.


I didn't answer the part written in black ;)
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 08, 2009, 10:49:49 pm
HAHA! I KNEW IT! YOU ARE USING THE DARK THEME!

Therefore, the answer is 10, for binary 3.

or

Spoiler: ShowHide

100, as 100 * 100 = 10000


Yes, another guess.
Title: Re: ITT: Nerd Jokes
Post by: winkio on May 08, 2009, 11:33:33 pm
Ha, I got the answer.  I'll pm it to you, or drop it by in chat when no one else is around.
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 08, 2009, 11:42:07 pm
Quote from: Biker WcW on May 08, 2009, 10:49:49 pm
HAHA! I KNEW IT! YOU ARE USING THE DARK THEME!

Therefore, the answer is 10, for binary 3.

or

Spoiler: ShowHide

100, as 100 * 100 = 10000


Yes, another guess.


no.

Quote from: winkio on May 08, 2009, 11:33:33 pm
Ha, I got the answer.  I'll pm it to you, or drop it by in chat when no one else is around.


you win, great job.
Title: Re: ITT: Nerd Jokes
Post by: winkio on May 08, 2009, 11:47:20 pm
Yay, time to go eat some cookies that are conveniently sitting in my kitchen!

COOKIES!!!!!!  (homemade FTW)
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 09, 2009, 08:21:21 am
Quote from: Lass Sally on May 08, 2009, 05:56:39 pm
can you give me a hint? im not smart like blizzard =[




I'm not smart. I'm just good at being awesome.
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 09, 2009, 09:34:00 am
Can you give me a hint? im not as awesome as blizzard is.
Title: Re: ITT: Nerd Jokes
Post by: G_G on May 09, 2009, 02:32:15 pm
Quote from: Elite Four NAMKCOR on May 04, 2009, 09:49:04 am


Spoiler: ShowHide
(http://www.devtopics.com/wordpress/wp-content/uploads/2008/05/comic.jpg)





PLace this in a script above main
Spoiler: ShowHide
loop do
  if $game_variables == nil
    $game_variables = Game_Variables.new
  end
  print "I will not throw paper airplanes in class."
  $game_variables[1] += 1
  if $game_variables[1] == 500
    break
  end
end
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 09, 2009, 03:10:48 pm
Spoiler: ShowHide
500.times {p 'I will not throw paper airplanes in class.'}


EDIT: That actually works.
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 09, 2009, 04:11:25 pm
Quote from: Youngster Gi Gi on May 09, 2009, 02:32:15 pm
Quote from: Elite Four NAMKCOR on May 04, 2009, 09:49:04 am


Spoiler: ShowHide
(http://www.devtopics.com/wordpress/wp-content/uploads/2008/05/comic.jpg)





PLace this in a script above main
Spoiler: ShowHide
loop do
  if $game_variables == nil
    $game_variables = Game_Variables.new
  end
  print "I will not throw paper airplanes in class."
  $game_variables[1] += 1
  if $game_variables[1] == 500
    break
  end
end



I think you've won the award for most useless and overly complex code. Why use $game_variables at all? That's just pointless.

EDIT: Yah, sorry. I didn't want to be mean with that, G_G X(
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 09, 2009, 04:14:51 pm
Don't be mean, he doesn't know better. He probably thought that $game_variables had to initialized since it contains variables. ._.

Spoiler: ShowHide
var = 0
loop do
  print "I will not throw paper airplanes in class."
  var += 1
  if var == 500
    break
  end
end
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 09, 2009, 05:12:08 pm

#include <iostream>

int main () {
  for (int n = 0; n < 500; ++n)
    std::cout << "I will not throw paper airplanes in class" << (n == 499 ? "." : ";") << std::endl;
}


C++ makes short code shorter
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 09, 2009, 05:26:38 pm
Quote from: Rival Blizzard on May 09, 2009, 03:10:48 pm
500.times {p 'I will not throw paper airplanes in class.'}



:naughty:
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 09, 2009, 05:31:48 pm
Quote from: Rival Blizzard on May 09, 2009, 05:26:38 pm
Quote from: Rival Blizzard on May 09, 2009, 03:10:48 pm
500.times {p 'I will not throw paper airplanes in class.'}



:naughty:


Ruby makes short code slower

EDIT:

print "I will not throw paper airplanes in class.\n" * 500

Yes, in your face.
Title: Re: ITT: Nerd Jokes
Post by: G_G on May 09, 2009, 05:47:47 pm
Quote from: Rival Blizzard on May 09, 2009, 04:14:51 pm
Don't be mean, he doesn't know better. He probably thought that $game_variables had to initialized since it contains variables. ._.

Spoiler: ShowHide
var = 0
loop do
  print "I will not throw paper airplanes in class."
  var += 1
  if var == 500
    break
  end
end



Blizzard I tried that and it didnt work. The only different is that I had this

Spoiler: ShowHide

printed = 0
loop do
  print "I will not throw paper airplanes in class."
  printed += 1
  if printed == 500
    break
  end
end


But it didnt work.
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 09, 2009, 05:49:16 pm
Because "print" doesn't work that well in RGSS. Use "p" instead.

@WcW: Not really. Getting 500 times a pop up screen owns the same text on one window. Also, it won't work properly in RGSS.

In your face:

p "I will not throw paper airplanes in class.\n" * 500


:D
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 09, 2009, 06:36:39 pm
Oh, I assumed we were talking Ruby, not RGSS, which sucks a billion times more. Do you have any experience with plain ruby/standard library? Just wondering.

EDIT:
I just tested it, and even the top speed of your method was 3ms slower that the worst speed of my method; I got up to 8-10ms faster than you at times, and other times it was up to 20ms.

EDIT2:
After changing 500 to 1,000,000 in both of our implementations, blizzard, mine beat yours by a whopping 6 seconds, mine taking 76ms and yours taking ~6.6 each time. (I piped output from both to /dev/null to eliminate the time it took to print it out to the shell, for a better comparison ;)

Scripts: ShowHide

Blizzard's method:

#! /usr/bin/ruby

1000000.times { p "I will not throw paper airplanes.\n" }


My method:

#! /usr/bin/ruby

print "I will not throw paper airplanes.\n" * 1000000


Using this code to test from bash, after chmod'ing both files:

time ./blizz-method.rb >> /dev/null
time ./wcw-method.rb >> /dev/null


Of course, I tested both multiple times to ensure accuracy ;)


Title: Re: ITT: Nerd Jokes
Post by: Sally on May 09, 2009, 09:49:23 pm
why are the code boxes only 1line long?!!?!~
Title: Re: ITT: Nerd Jokes
Post by: G_G on May 09, 2009, 10:06:05 pm
Use Opera. I.E. isnt good when displaying Code Boxes.
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 09, 2009, 10:12:12 pm
Or Safari 3/4. Fx works well though. Blizz is just too lazy to fix Safari (and presumably Chrome, since they both use WebKit)
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 09, 2009, 11:01:02 pm
i use chrome...
Title: Re: ITT: Nerd Jokes
Post by: tSwitch on May 09, 2009, 11:01:38 pm
Quote from: Biker WcW on May 09, 2009, 05:12:08 pm

#include <iostream>

int main () {
  for (int n = 0; n < 500; ++n)
    std::cout << "I will not throw paper airplanes in class" << [b](n == 499 ? "." : ";")[/b] << std::endl;
}


C++ makes short code shorter


the bolded part seems like a pointless check, tbh.
you also forgot to return 0 from main, even though you used int main ;)

#include <iostream>

void main () {
 for (int n = 0; n < 500; n++)
   std::cout << "I will not throw paper airplanes in class.\n";
}


I think that's as short as it gets.
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 09, 2009, 11:03:01 pm
Argh! G++ never gives me errors when I don't return, so I hadn't thought about it. The only reason I even use "int" usually is because SDL requires it.
Title: Re: ITT: Nerd Jokes
Post by: G_G on May 09, 2009, 11:14:11 pm
Quote from: Biker WcW on May 09, 2009, 11:03:01 pm
Argh! G++ never gives me errors when I don't return, so I hadn't thought about it. The only reason I even use "int" usually is because SDL requires it.


G++ or C++? Is there a program called G++? O.o
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 09, 2009, 11:19:02 pm
G++ (or gpp) is the GNU C++ Compiler. I use it OSX, 'cuz it's what comes with OSX, and it works well.
Anyway...

I vote that we make a new nerd forum that only nerds can join, and we post this crap there. Or maybe I need to sleep. I like cheese, we need our cheese emoticon back.
Title: Re: ITT: Nerd Jokes
Post by: Vell on May 10, 2009, 12:39:05 am
I SAY - HECK NO! leave the nerds to post here. we ALL are nerds anyway.
Title: Re: ITT: Nerd Jokes
Post by: Blizzard on May 10, 2009, 07:09:16 am
Quote from: Biker WcW on May 09, 2009, 06:36:39 pm
Oh, I assumed we were talking Ruby, not RGSS, which sucks a billion times more. Do you have any experience with plain ruby/standard library? Just wondering.

EDIT:
I just tested it, and even the top speed of your method was 3ms slower that the worst speed of my method; I got up to 8-10ms faster than you at times, and other times it was up to 20ms.

EDIT2:
After changing 500 to 1,000,000 in both of our implementations, blizzard, mine beat yours by a whopping 6 seconds, mine taking 76ms and yours taking ~6.6 each time. (I piped output from both to /dev/null to eliminate the time it took to print it out to the shell, for a better comparison ;)

Scripts: ShowHide

Blizzard's method:

#! /usr/bin/ruby

1000000.times { p "I will not throw paper airplanes.\n" }


My method:

#! /usr/bin/ruby

print "I will not throw paper airplanes.\n" * 1000000


Using this code to test from bash, after chmod'ing both files:

time ./blizz-method.rb >> /dev/null
time ./wcw-method.rb >> /dev/null


Of course, I tested both multiple times to ensure accuracy ;)



Doesn't surprise me. "p" is a built-in method in RGSS that extends "print" hence it's slower. There's also "puts" in Ruby. Also, obviously sending stuff to the I/O 1000000 times is slower than concatening a string 1000000 times. And you never said the code is supposed to be fastest. I thought we were just messing around with shortness. :P

Quote from: Lass Sally on May 09, 2009, 09:49:23 pm
why are the code boxes only 1line long?!!?!~


IDK, they worked fine for me in Chrome and IE while others were reporting the same problem.
Title: Re: ITT: Nerd Jokes
Post by: Sally on May 10, 2009, 07:31:53 am
Spoiler: ShowHide
(http://i707.photobucket.com/albums/ww73/kerthil/chrome.jpg)
Title: Re: ITT: Nerd Jokes
Post by: Gabbergon on May 10, 2009, 08:05:44 am
Quote from: Elite Four NAMKCOR on May 06, 2009, 10:55:47 am
Spoiler: ShowHide
10
11
12
13
14
15
16
17
20
22
24
31
100
[ ? ]
10000

find ?



finally I found ?
I know for sure it is what i think
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 10, 2009, 10:07:45 am
I had to google it.

Gabber, I highly doubt you got it if it's what I think it is, unless you learned a lot from a certain post by a certain annoying preteen >_<



And that's just more of a noticing problem, you only have to know some basic parts of math to get it, it's just noticing it (and I feel like an idiot for not, I thought it was a totally different type of problem)
Title: Re: ITT: Nerd Jokes
Post by: Gabbergon on May 10, 2009, 01:34:46 pm
google it... crap that i didnt thought bout that

indeed it seems i wasn't correct :(
Title: Re: ITT: Nerd Jokes
Post by: fugibo on May 10, 2009, 01:40:24 pm
I don't blame you, I didn't think of it either. I doubt almost anybody would.