We encouraged people to learn to program and just look at what happened

Tags: , ,

22 Responses:

  1. What happened is that they forgot to capitalise the initial character of the name of their class. Could probably also stand to grow a docstring. At least it's an improvement on the median piece of graffiti.

    I still like Bristol's graffiti better. Ignoring Banksy, we get poetry on the walls around here.

  2. katre says:

    Heck, it's better than what a lot of new grads I've interviewed can write. He's hired!

  3. Jesper says:

    I guess I'm happy that we've advanced from

    10 PRINT "PENIS"
    20 GOTO 10

    but I hope pop culture is not now stuck with Java the way it was stuck with Basic.

    Graffiti demands a Brainfuck version.

    • Chas. Owens says:

      Something like this would be more entertaining, but a much smaller set of people would "appreciate" it.

      f;print$f;push@f,$f;select undef,undef,
      undef,.25;redo;last;exit;print or die;}

      • Jesper says:

        I think most non-JAPHs would wonder what "redo last exit, print or die" means, or why someone got a printer error in the middle of a poem.

    • Turtle Boughs says:

      Ironically, the BASIC version is more elegant than the Java.

  4. I wrote a haskell version onceā€¦

  5. Kyle says:

    In addition to not using a capital letter for the beginning of the class name, it's String[] args, not String args[].

  6. RamiGB says:

    Ruby's version is the best :P

    10.times do
    p 'Penis'

    • MikeJ says:

      Precisely the solution I'd expect in ruby. Concern about how cool it looks, totally fails on meeting the spec.

    • Leolo says:

      print "Penis\n" for 1..10;

      • John Ohno says:

        Ten does not in fact equal infinity, despite what you and your other ruby-programing colleage seem to believe.

        I am, however, tempted to graffito the brainfuck version all over bathroom stalls now. (Anyone up for producing some malboge code?)

        • RJ says:

          while "lol" do; p "Penis"; end #here is the 'infinity', one-liner Ruby version for ya :)

    • Alex says:

      I'm not sure which is worse, the "do .. penis" in Ruby or the "push/reverse" in Perl!

  7. 205guy says:

    Echos of the over/under TP discussion you started a few days ago. Are any of these languages NOT Turing complete? Then why are we having this discussion (again, and again, and again)? I see it all the time on HN, and you'd think they know better.