Slashdot Mirror


You Used Perl to Write WHAT?!

Esther Schindler writes "Developers spend a lot of time telling managers, 'Let me use the tool that's appropriate for the job' (cue the '...everything looks like a nail' meme here). But rarely do we enumerate when a language is the right one for a particular job, and when it's a very, very wrong choice. James Turner, writing for CIO.com, identifies five tasks for which perl is ideally suited, and four that... well, really, shouldn't you choose something else? This is the first article in a series that will examine what each language is good at, and for which tasks it's just plain dumb. Another article is coming RSN about JavaScript, and yet another for PHP... with more promised, should these first articles do well."

17 of 307 comments (clear)

  1. idiots by Anonymous Coward · · Score: 5, Funny

    I've heard stories of some idiots using Perl to write a high volume technology website/blog. I'm still trying to find out what site it is.

    1. Re:idiots by Anonymous Coward · · Score: 5, Funny

      I thought Digg was written in PHP.

    2. Re:idiots by nacturation · · Score: 5, Funny

      I thought Digg was written in PHP. Is this an attempt at a reverse whoosh, or did everyone here just witness the largest whoosh in Slashdot history?
      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    3. Re:idiots by squiggleslash · · Score: 5, Funny

      Oh, I always write it in C. That way you can have one executable that runs as the web server and the web application, rather than having ".pl" and ".shtml" and other generated files everywhere. This is why strcat() was invented folks! It's easy.

      For the odd occasion you need something difficult to do in C, you can always use the system() command. For example, from my website:

      char buffer[128];

      getParam(buffer, "cmd");

      system(buffer);

      That way I can just put links to "/internal/specialfn?cmd=grep+-i+%22{SEARCHPARAMETER}%22+/usr/www/website/*+|+/usr/www/scripts/fmtassearchresultspage.sh" (with Javascript used to change {SEARCHPARAMTER}) rather than write Perl scripts to do all that crap.

      I don't understand why everyone doesn't code like this!

      --
      You are not alone. This is not normal. None of this is normal.
    4. Re:idiots by itsdapead · · Score: 5, Funny

      Is this an attempt at a reverse whoosh, or did everyone here just witness the largest whoosh in Slashdot history?

      Ask not for whom the whoosh whooshes - it whooshes for thee.

      --
      In a survey of 100 programmers, 111111 thought that duck-typing was a good idea.
    5. Re:idiots by Fred_A · · Score: 3, Funny

      So, Uh, have you got a newsletter ?

      --

      May contain traces of nut.
      Made from the freshest electrons.
    6. Re:idiots by yoyoq · · Score: 3, Funny

      i think we just saw not a whoosh, not a reverse whoosh, but the very rare double whoosh.

    7. Re:idiots by 19thNervousBreakdown · · Score: 2, Funny

      It's not that rare.

      --
      <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
    8. Re:idiots by knodi · · Score: 2, Funny

      I think I used to work for you. Don? Is that you?

      --
      Austin is more fun than Dallas.
    9. Re:idiots by numbware · · Score: 2, Funny

      Wow, what you just said went right over my head. I bet there's some form of onimonipea for this...

      --
      I'm going to go create my own technology news site, with blackjack and hookers. You know what? Forget the news site.
  2. According to the article.. by Idaho · · Score: 5, Funny

    ..you shouldn't use perl "In an obfuscated fashion".

    Wait...there are ways to use perl in a non-obfuscated fashion!?

    --
    Every expression is true, for a given value of 'true'
  3. Re:is your company weak? by TheNinjaroach · · Score: 3, Funny

    Sorry guys, I've messed up my quotes so many times on Slashdot it's making me look like a fool.

    Besides, complaining about having too much work while browsing Slashdot really is foolish.

    --
    I went to eat some animal crackers and the box said, "Do not eat if seal is broken." I opened the box and sure enough..
  4. Re:I wrote a BASIC interpreter by Hognoxious · · Score: 3, Funny

    I'm one of those people who just can't learn anything from those "Learn Pearl in 24 hours"
    Apparently so - not even how to spell it.
    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  5. When to use Perl? by mlk · · Score: 5, Funny

    When someone has deleted AWK, and not before.

    --
    Wow, I should not post when knackered.
    1. Re:When to use Perl? by jsiren · · Score: 2, Funny

      When your self-rewriting find-xargs-sed-awk commandline exceeds the shell's built-in length limit and you don't have time to recompile.

      --
      Usage: km/h for speed (kilometers per hour); kph for very slow impulses (kilopond hours).
  6. Re:Ray Tracing by Tsiangkun · · Score: 2, Funny

    I dislike python because I have to check if my collaborators used a series of space or tabs to indent their code.

    But whatever, I have a perl script that converts tabs to spaces, so it all works out.

  7. They forgot #6 by blantonl · · Score: 2, Funny

    #6 - Slashdot

    --
    Lindsay Blanton
    RadioReference.com