Live data from Hacker News

Nice try, kid ...

flickr.com

1–10 of 35 posts

Re: Nice try, kid ...

#2
Should 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!

Re: Nice try, kid ...

#3
post #2

Should 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!

(for i 1 500 (prn "I will not throw paper airplanes in class."))

Although, I assume the kid forgot the \n in his printf.

Re: Nice try, kid ...

#5
post #2

Should 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!

Why not use Erlang and make it concurrent? :)

[spawn(fun() -> print("'I will not throw paper airplanes in class.'") end) || N <- lists:seq(1, 500)]

Re: Nice try, kid ...

#7
I 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.

Re: Nice try, kid ...

#8
post #5
post #2

Should 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!

Why not use Erlang and make it concurrent? :) [spawn(fun() -> print("'I will not throw paper airplanes in class.'") end) || N <- lists:seq(1, 500)]

Um. Because writing to stdout will serialize the processes?

Re: Nice try, kid ...

#9
post #3
post #2

Should 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!

(for i 1 500 (prn "I will not throw paper airplanes in class.")) Although, I assume the kid forgot the \n in his printf.

"prn"? Ick. Looks like 'porn'! Why not print, or put, or puts or out or just "p"?

Re: Nice try, kid ...

#10
post #9
post #3

Earlier quoted context omitted.

(for i 1 500 (prn "I will not throw paper airplanes in class.")) Although, I assume the kid forgot the \n in his printf.

"prn"? Ick. Looks like 'porn'! Why not print, or put, or puts or out or just "p"?

Because i and t are such a waste of time! :-)
Post reply on HN