324 Comments
- qber, on 10/12/2007, -3/+315Ouch. What did he do to deserve infinite detention?
- WalesAlex, on 10/12/2007, -3/+198... or you could just click the links on the story?
- LegendarySock, on 10/12/2007, -17/+204"I will not throw paper airplanes in class"
Ctrl-C, Ctrl-V, Ctrl-V, Ctrl-V, Ctrl-V, Ctrl-V, Ctrl-V, Ctrl-V, Ctrl-V, Ctrl-V...
Who needs programming. - th2edrrfs, on 10/31/2007, -17/+16810 print "I will not throw paper airplanes in class"
20 goto 10 - obrysii, on 10/12/2007, -6/+121So Could People Always Capitalizing The First Letter Of Each Word In A Sentence.
- kenthorvath, on 10/12/2007, -0/+106@danielxmorris:
That would only print once and terminate. - SvenHammerstahl, on 10/12/2007, -3/+87Kudos for a lack of CAPS, Amazing, Awesome, etc in title.
- tallonx, on 10/12/2007, -6/+83basic.... lol
- DevinOlsen, on 10/12/2007, -9/+75Yeah, I realize that it's an annoying habit... I do what I can to 'break it' but it's hard... Sorry about that =(
- Linkin4, on 10/12/2007, -1/+60I always returned zero at the end of C programs, let's the program know that it ran successfully with no errors
- noahhoward, on 10/12/2007, -1/+52It'll cost you a fortune in beer and pizza but we'll be there.
- inactive, on 10/12/2007, -4/+50Two too many '))'.
- merr, on 10/12/2007, -0/+46You caused me to overwork my scrolling finger. Not cool.
- baraqiyal, on 10/12/2007, -0/+44Even if you had the Return in the right place, it'd look like a complete mess without a slash n.
- Uruviel, on 10/12/2007, -2/+44Start counting from zero.
- chapium, on 10/12/2007, -6/+47(((((Scheme is downright evil.)))))))
- tfinniga, on 10/12/2007, -2/+43Programmers don't wonder why we don't get invited to many parties.
We know. - antifreze, on 10/12/2007, -3/+41Recursion FTW
- blapierre, on 10/12/2007, -2/+34@Zovix
Learn C. - TheMattrix, on 10/12/2007, -1/+35It's the exit status.
- blackjack75, on 10/12/2007, -1/+33Teacher: "Control+Break !"
- jacko1990, on 10/12/2007, -6/+39Oh you programmers - you're such a blast! What a wit you all have!
I must be sure to invite some of you along to my next party.... - sinfree, on 10/12/2007, -2/+34I think it is because the first two words in the sentence were capitalized. I think I've done that before... it's like after you capitalize the first two words your brain goes on autopilot.
- Kronos6948, on 10/12/2007, -5/+35I was just going to say "What about BASIC?
- Vash63, on 10/12/2007, -7/+38@legendary
Um, I'd have that program written in 1/10th of the time it would take you to hit ctrl+v 500 times. - NanoStuff, on 10/12/2007, -1/+25"You need braces!"
Of course. Boy is my face red :) - lostradamus, on 10/12/2007, -3/+28start{
*get intern to write "I will not throw paper airplanes in class" x500
}end - cheald, on 10/12/2007, -4/+27Alternately:
#!/usr/bin/ruby
500.times { puts "I will not throw paper airplanes in class." }
Saves you two bytes ;) - NanoStuff, on 10/12/2007, -8/+31500.times print 'I will not throw paper airplanes in class'
Ah yes :) Try and PWN that. - dcmjzero, on 10/12/2007, -5/+26what does LISP stand for?
Lot of Indecipherable, Stupid Parentheses - mutt, on 10/12/2007, -6/+26@danielxmorris
you seem to have a bug.
int count;
for (count = 0; count < 500; count++) {
printf("I will not throw paper airplanes in class.");
return 0;
}
This would only print it once.... that's nto going to get you out of detention.
and the obligitory:
perl -e 'print "I will not throw paper airplanes in class.n" foreach(0..499)' - antifreze, on 10/12/2007, -5/+25i = 0;
if (i < 500) {
print("I will not throw paper airplanes");
i++;
if (i < 500) {
print("I will not throw paper airplanes");
i++;
if (i < 500) {
print("I will not throw paper airplanes");
i++;
if (i < 500) {
print("I will not throw paper airplanes");
i++;
if (i < 500) {
print("I will not throw paper airplanes");
i++;
if (i < 500) {
print("I will not throw paper airplanes");
i++;
if (i < 500) {
print("I will not throw paper airplanes");
i++;
etc.etc.etc.etc.etc.
} }}}}}}}}}}}}}}}}}
fin
That'll teach em - Wootery, on 10/12/2007, -6/+26@NanoStuff
You need braces!
500.times {print 'I will not throw paper airplanes in class'}
without the braces, it doesn't run. (I'm not entirely sure why I ran that...)
Also, a shorter version would be
500.times {p 'I will not throw paper airplanes in class'}
or you could be boring and go for a still shorter
p 'I will not throw paper airplanes in class'*500 - bearda, on 10/12/2007, -1/+21Whatever executes the application. Presumably an OS or scheduler.
- PleaseJustDie, on 10/12/2007, -0/+18error, I != i
- PlasmaSnk, on 10/12/2007, -3/+20Actually, you don't have to keep pressing Ctrl+V, just hold it down... it should make 500 in less than 5 minutes. It just won't be an accurate 500.
- blapierre, on 10/12/2007, -7/+23It only takes one line of C:
void main(){int b=500;while(b-->0)printf("I will not throw paper airplanes in class\n");}
GCC will compile it and it runs perfect. - championchap, on 10/12/2007, -10/+26You need to meet my teacher, she found this picture ages back now and its been up in our class ever since.
Having said that, she's probably on here and i just dont know it. - blackjack75, on 10/12/2007, -2/+18"So Could People Always Capitalizing The First Letter Of Each Word In A Sentence."
a) be merciful with the German where it's correct to capitalize each proper noun (not the rest)
b) anyone with some java background will understand that this is typical of a
class OfPeopleWhoTendToHaveThatAnnoyingHabit
{ - techykid, on 10/12/2007, -1/+17Open Vi editor
Insert
Type "I will not throw paper airplanes in class"
Esc
yy
499p
Done!! - r0b1, on 10/12/2007, -3/+19Returning 0, if I recall, is proper ANSI C.
- stevius, on 10/12/2007, -0/+15@ Tenetri: take a closer look at the for loop declaration... specifically the count = 1 part. this is where count is initialized.
- nipterink, on 10/12/2007, -2/+17there's no real point in using recursion for something that can be done iteratively... you hardly saved any lines and ended up wasting resources.
- merr, on 10/12/2007, -4/+18#!/usr/bin/ruby
1.upto(500) { puts "I will not throw paper airplanes in class." } - yahoofrom, on 10/12/2007, -2/+16@PlasmaSnk,
there is a fast AND accurate way.
1. "I will not throw paper airplanes in class"
2. press Ctrl+A. and press Ctrl+V ten times.
3. press Ctrl+A. and press Ctrl+V ten times.
3. press Ctrl+A. and press Ctrl+V five times. - Evoguy, on 10/12/2007, -0/+14Gah, no newline character!
I will not throw paper airplanes in classI will not throw paper airplanes in classI will not throw paper airplanes in classI will not throw paper airplanes in class - dickeytk, on 10/12/2007, -3/+13you guys are putting WAY too much thought into this
- damentz, on 10/12/2007, -3/+16I will try my history essay in assembly.
- griz, on 10/12/2007, -1/+13Mooman's got it right.
"I will not throw paper airplanes in class"
CTRL+C CTRL+V CTRL+A...
do this 8 times and you are golden. 2 more times, just to kiss the teacher's butt. - jalexhall1989, on 10/12/2007, -1/+11my java teacher has this on her wall at the school, very cool
-
Show 51 - 100 of 321 discussions



What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official