Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Higher-Order Perl Available For Free Download

Posted by kdawson on Tue Dec 09, 2008 07:56 PM
from the virtual-special-shelf dept.
Christopher Cashell writes "As noted on Perlbuzz, Mark Jason Dominus's amazing book, Higher-Order Perl, is now available for free download. This is a great book that goes way beyond your normal programming reference. This will change the way you look at programs, and make you a better programmer in any language. It sits on that special shelf reserved for books like Structure and Interpretation of Computer Programs, The C Programming Language, and The Practice of Programming."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • amazing (Score:5, Interesting)

    by gizmo_mathboy (43426) on Tuesday December 09 2008, @08:10PM (#26053685)

    It is truly awesome that mjd is making this available for free.

    It's still worth buying the dead tree version, though.

    • Re: (Score:3, Insightful)

      Particularly since the links on the site go to Powell's.

      Powell's is freaking cool. And independent, if you care about such things. (And, for that matter, even if you don't.

  • Higher-Order Perl, is now available for free download. This is a great book that goes way beyond your normal programming reference. This will change the way you look at programs, and make you a better programmer in any language. It sits on that special shelf reserved for books like Structure and Interpretation of Computer Programs, The C Programming Language, and The Practice of Programming."

    Funny, I would have thought it sat on a hard drive or a usb key or something ...

    "You have downloads on my bookshe

    • Re: (Score:3, Funny)

      Nope, sorry -unlike peanut butter and chocolate, downloads don't mix with bookshelves.

      Interestingly, they can both be measured in the same units. (meaning Libraries of Congress, of course.)

    • Sir or madam, I would like to introduce you to the concept of metaphor :)

      metaphor (noun) - a figure of speech in which a word or phrase is applied to an object or action to which it is not literally applicable / a thing regarded as representative or symbolic of something else, esp. something abstract. The Oxford American Dictionary

      • They give the book away for free, but neglect to mention the metaphorical bookshelf you need to sit it on?

        A clever ruse, and the fools almost got away with it. But they failed to realize that Slashdot has a Sicilian in it's ranks!

        • Actually, they sell the book in the dead tree form that would sit on the book shelf.

          This story is about them giving that book away free of charge in electronic form.

  • I just got this book from the library for the first time two weeks ago. I'm pleased that I will only have to have checked it out once.

    Kudos and thanks, mjd.

  • by cjfs (1253208) on Tuesday December 09 2008, @09:11PM (#26054219) Homepage Journal

    He's just welcoming our new Zombie Overlords [perlmonks.org]

    .

  • All programs written in higher-order perl start with the following line:
    #!/usr/bong/perl
  • Thank you for the link, I am downloading the book and I will probably pour over it on my Christmas break. I don't think Perl is dead, there are jobs in my city with some high profile companies that need Perl developers. Just my two cents. I am not sure about other cities though.
    • Re:Perl Jobs (Score:4, Informative)

      by Wee (17189) on Tuesday December 09 2008, @10:41PM (#26054805)

      Perl has, in some small way, kept me continuously employed for the last 14 years. It's really pretty surprising the utility and longevity it has.

      -B

    • Re: (Score:3, Insightful)

      Perl is also very useful in a lot of jobs that don't list "Perl" specifically in the job description. I don't know how a network administrator could survive without it, for instance. You'd constantly find yourself spending hours to do a ten-minute job.
        • Re:Perl Jobs (Score:4, Insightful)

          by Haeleth (414428) on Wednesday December 10 2008, @06:02PM (#26066665) Journal

          Python isn't a very good language for quick-and-dirty scripting, and it's often not installed at all by default. It's a pretty good general-purpose programming language, but that's a different matter entirely. Perl, in comparison, is ubiquitous on pretty much all Unix-like platforms, and is well adapted for things like one-off one-liners.

          More relevantly to this thread, Perl is a better language for FP than Python is. Perl has full support for anonymous closures (Python's lambdas are very weak by comparison), and Perl has proper predictable lexical scoping (Python's scoping rules are rather strange). This all reflects the different design goals of the languages. Python is built on the principle that there should be only one way to achieve any goal -- and in practice that's usually objects. Perl is built on the principle that the programmer should have loads of options to choose from -- and hence it supports several programming paradigms equally well.

  • too late (Score:3, Funny)

    by museumpeace (735109) on Tuesday December 09 2008, @10:16PM (#26054625) Journal
    I bought the book quite a while back. And I wouldn't expect them to publish it with the title it should have: how to write perl so well you look like you are using python.
  • I run a web site that catalogs free books and accepts user-submitted reviews (see my sig). Reviews of this book would be welcome.

    I read a couple of chapters online, and it seemed pretty cool. I'm interested in learning FP techniques, and it was really nice to be able to learn about techniques like memoization in the context of a language whose syntax I already know. I can glance through the code examples and say, "Aha, I get it!" instead of laboriously poring over code listings in lisp or haskell and say

    • First of all, Perl is the ultimate syntax hurdle, and I say this as a fan of Perl.

      Second, if you're interested in functional programming, don't shy away from the languages you mention. Neither Common Lisp nor Scheme is particularly difficult (especially Scheme, whose syntax is almost nonexistent) and neither is purely functional.

      Finally, read SICP [mit.edu].

      • First of all, Perl is the ultimate syntax hurdle, and I say this as a fan of Perl.

        If you speak Greek, English is the ultimate syntax hurdle. And vice versa if you speak English.

  • by gbjbaanb (229885) on Wednesday December 10 2008, @11:20AM (#26060457)

    From TFA:

    You may remember I wanted to turn the book into a wiki. That would have been awesome. But the book's fourth anniversary is coming up this spring and I have to admit to myself that I'm not gonna get the wiki together. So I'm posting the thing already.

    So, perhaps if he put a bare wiki up, everyone could c&p a page at a time?

    • Re: (Score:2, Insightful)

      by Anonymous Coward

      If you can tell me why Perl is so popular, I think I can answer your question. It seems pretty clear that there is a large intersection between "people who love Perl" and "people who never had exposure to functional programming".

      • It's interesting you mention FP. One of the most interesting parts of Higher Order Perl, in my opinion, is the parser generator Dominus builds up. In response to an email about it, Dominus told me he'd adapted it from Structured ML for the Working Programmer.

        • It's interesting you mention FP.

          Yes, what a strange coincidence that functional programming has something to do with "higher order".