6 ms·
Nice try, kid ...
- mrtron 19y agoShould have wrote it in Python to save a few lines :) for x in range(500): print 'I will not throw paper airplanes in class.' Or perhaps Arc!
- jgrahamc 19y ago(for i 1 500 (prn "I will not throw paper airplanes in class.")) Although, I assume the kid forgot the \n in his printf.
- davidw 19y ago"prn"? Ick. Looks like 'porn'! Why not print, or put, or puts or out or just "p"?
- run4yourlives 19y agoBecause i and t are such a waste of time! :-)
- jgrahamc 19y agopr = print prn = print followed by newline
- WilliamLP 19y ago?"For the win."
- BrandonM 19y agoWouldn't it be easier to type: (repeat 500 (prn ...)) ?
- jgrahamc 19y agoYou are correct. I need to go back and reread the tutorial.
- dima 19y agoWhy not use Erlang and make it concurrent? :) [spawn(fun() -> print("'I will not throw paper airplanes in class.'") end) || N <- lists:seq(1, 500)]
- jgrahamc 19y agoUm. Because writing to stdout will serialize the processes?
- mynameishere 19y agostdout can be redirected, as to a stream that round robins it to a matrix of printers.
- eru 19y agoMatrix printers?
- mynameishere 19y agoof
- Xichekolas 19y agoI'm pretty sure the people in the Matrix will be confused when every printer in the world starts printing out "I will not throw paper airplanes in class." ... Of course, then the agents will reset the system and everyone will just experience deja vu.
- eru 19y agoSure, of. But a Matrix of Matrix printers would be nice.
- rontr 19y agoWhat makes you think it's written to stdout?
- jamiequint 19y agoor ruby (0..500).each {|i| print "I will not throw paper airplanes in class\n"}
- aston 19y ago500.times {print "I will not throw paper airplanes in class \n"}
- curi 19y ago500.times {puts "I will not throw paper airplanes in class"}
- jamiequint 19y agoI figured there was something in ruby for that :P
- deleted 19y ago[deleted]
- chengmi 19y agoNow all he has to do is compile, link, and load!
- umjames 19y agoI actually did something similar when I was in middle school. The teacher wanted everyone in the class to write something like that 500 times and turn it in the next day. I went home and ran the following program on my Apple IIe: 10 FOR X = 1 TO 500 20 ?"I will behave myself in class" 30 NEXT X PR# 2 RUN With the printer plugged into slot 2 on the machine, this sent the output of the program to the printer. Needless to say the teacher was not impressed the next day, when I handed in several sheets of linefeed printer paper. I was impressed however. He made me write it by hand about 100 times instead of 500.
- eru 19y agoIn retrospect I wonder why we did what the teachers told us. Mostly.
- rms 19y agoWe were trained to obey with the eventual consequences of insubordination being suspension or expulsion.
- tb 19y agoI have a friend who was suspended from high-school for (indirectly) refusing to do a word puzzle. His stated reason is that he doesn't like word puzzles. When he was asked to leave the room for failing to follow instructions, he refused. The punishments escalated and he refused each one on the basis that it was overblown punishment for refusing to do a word puzzle. Eventually he reluctantly agreed to a week's suspension because the only worse punishment available was expulsion. He still carps on about being suspended for a week for refusing to do a word puzzle.
- tomjen 19y agoWhat is so bad about suspension? He would have more time to do something that is fun when he is not in school.
- frankus 19y agoNot as high-tech, but I once got caught writing a column of "I"s, a column of "will"s, a column of "not"s, etc.
- deleted 19y ago[deleted]
- mattmaroon 19y agoCute, bizarre, clever. Good.
- dkokelley 19y agoI find it funny that many of these comments are on ways the code could be improved. We are a strange bunch of people indeed. Still, I laughed when I saw this image.
- edw519 19y agoFirst sentence should have been: "Funny how much commenting about improving code." Second sentence should have been: "We are strange." Third sentence should have been: "I laughed anyway." 50.6% as much text.
- dkokelley 19y agoha(x4) good one! I could have written it in some form of Chinese and used 7 characters.