Slashdot Mirror


Building a Programmer's Rosetta Stone

Did you ever run into the problem where you knew how to do something in one programming language, but really needed to do it in another? That's what Rosetta Code is all about. A variety of programming tasks are solved using as many languages as possible. You can examine existing tasks, or create your own.

13 of 215 comments (clear)

  1. One task that isn't on there by antifoidulus · · Score: 4, Funny

    "How to bring a hooker back to life" Damn, I really neede....I mean, was interested in how you would do it in Perl, for curiosity's sake....

    1. Re:One task that isn't on there by Anonymous Coward · · Score: 3, Funny

      use Hooker::Transactional;

      Hooker::Transactional->get_last->rollback;

      Dude, CPAN has EVERYTHING! :)

    2. Re:One task that isn't on there by patio11 · · Score: 2, Funny

      >>
      I mean, was interested in how you would do it in Perl, for curiosity's sake....
      >>

      There's more than one way to do it.

    3. Re:One task that isn't on there by Lord+Ender · · Score: 1, Funny
      I mean, was interested in how you would do it in Perl, for curiosity's sake....

      • Hold down shift.
      • Mash the top row of your keyboard with your fist. You may also consider outsourcing this job to your cat.

      The Perl language was designed with genetic programming in mind. Any random combination of characters is executable Perl.
      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
  2. Will they support these programming styles ?!? by ctrl-alt-canc · · Score: 3, Funny
  3. Re:No Fair! by frakir · · Score: 5, Funny

    I program in Malbolge, you insensitive clod!
    http://en.wikipedia.org/wiki/Malbolge_programming_ language

    I hope next windows ver will be coded in Malbolge and open source.

  4. Re:Simple Tasks - Not Progamming Wars by seebs · · Score: 2, Funny

    I can beat that. The language Greet has the specification that an empty input file (or indeed, any other) is a program directing the language to print "Hello, world!"

    In fact, K&R presents a complete Greet interpreter very early on.

    --
    My blog: http://www.seebs.net/log/ --- My iPhone/iPad app: http://www.seebs.net/seebsfrac/
  5. Re:No Fair! by Dunbal · · Score: 2, Funny

    I hope next windows ver will be coded in Malbolge and open source.

          You mean it's not? ;)

    --
    Seven puppies were harmed during the making of this post.
  6. Re:I don't know about firehosing it by Anonymous Coward · · Score: 1, Funny
    "In the 1980s capitalism triumphed over communism, In the 1990s it triumphed over democracy."

                And in the 2000's, it's well on the way to triumphing over common sense... with apologies to the author.


    What is your secret? Every post I have seen that is critical of capitalism immediately gets modded as a troll, offtopic or flamebait.

    How did you do it?
  7. Re:Pointless, don't bother! by Reverend528 · · Score: 2, Funny
    I looked at the file I/O task, and there were no versions for ... Java

    Well, that would be pushing the limits of the MySQL LARGETEXT field.

  8. Re:No Fair! by nuzak · · Score: 2, Funny

    > I hope next windows ver will be coded in Malbolge and open source.

    If something's written in malbolge, I don't think it really matters if it's open source.

    --
    Done with slashdot, done with nerds, getting a life.
  9. Re:Pointless, don't bother! by ozmanjusri · · Score: 1, Funny
    The idea isn't bad, but it's just a nearly empty wiki.

    NEARLY empty? I can only see one PHP example, and I don't think it's a very good one...

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/mike/public_html/includes/Exception.php on line 139
    --
    "I've got more toys than Teruhisa Kitahara."
  10. Re:While you wait by Short+Circuit · · Score: 2, Funny

    That's actually the page that inspired the site.