Sponsored by Microsoft
Microsoft responds to the headlines. view!
microsoft.com/everybodysbusiness - Read our developers’ points of view on the headlines making news.
319 Comments
- qber, on 10/12/2007, -3/+317Ouch. What did he do to deserve infinite detention?
- WalesAlex, on 10/12/2007, -3/+199... or you could just click the links on the story?
- LegendarySock, on 10/12/2007, -17/+205"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/+17010 print "I will not throw paper airplanes in class"
20 goto 10 - obrysii, on 10/12/2007, -6/+122So Could People Always Capitalizing The First Letter Of Each Word In A Sentence.
- kenthorvath, on 10/12/2007, -0/+107@danielxmorris:
That would only print once and terminate. - SvenHammerstahl, on 10/12/2007, -3/+88Kudos for a lack of CAPS, Amazing, Awesome, etc in title.
- tallonx, on 10/12/2007, -6/+84basic.... 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/+61I 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/+45Even 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. - blackjack75, on 10/12/2007, -1/+34Teacher: "Control+Break !"
- TheMattrix, on 10/12/2007, -1/+35It's the exit status.
- 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.
- Vash63, on 10/12/2007, -7/+39@legendary
Um, I'd have that program written in 1/10th of the time it would take you to hit ctrl+v 500 times. - Kronos6948, on 10/12/2007, -5/+35I was just going to say "What about BASIC?
- 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/+28Alternately:
#!/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. - mutt, on 10/12/2007, -6/+27@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)' - dcmjzero, on 10/12/2007, -5/+26what does LISP stand for?
Lot of Indecipherable, Stupid Parentheses - Wootery, on 10/12/2007, -6/+27@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 - 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 - 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/+21Actually, 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.
- 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. - 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. - 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.
- 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/+19#!/usr/bin/ruby
1.upto(500) { puts "I will not throw paper airplanes in class." } - 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.
- 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 - damentz, on 10/12/2007, -3/+17I will try my history essay in assembly.
- 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. - dickeytk, on 10/12/2007, -3/+13you guys are putting WAY too much thought into this
- 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. - kypen, on 10/12/2007, -1/+10@damentz (damn you updated your comment)
Like this?
int i;
for(i = 0; i < 500; i++){
printf("***** happened (SLASH)n");
}
return 0; -
Show 51 - 100 of 321 discussions



What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the