News for hackers. Stuff that matters.
Re:Why Lisp macros are cool, a Perl perspective (2005) by marttt on Friday April 29, 2022 @01:09AM (#31201651)
> ... many great Perl book authors ...

Would you mind listing a few of these?

I would add "Modern Perl" by chromatic: https://pragprog.com/titles/swperl/modern-perl-fourth-editio...

With lots of elegant examples, this book really shows that perl is not a write-only language.

Re:Why Lisp macros are cool, a Perl perspective (2005) by G3rn0ti on Friday April 29, 2022 @04:56AM (#31202959)
> Would you mind listing a few of these?

Sure:

I already mentioned

Mark Jason Dominus: "Higher-Order Perl"

as it is a great introduction of functional programming and goes into all the gory details of how to implement lazy evaluation on top of closures.

Damian Conway: "Object Oriented Perl"

Comes to my mind as well. It's basically an introduction to object oriented programming so kind of similar in spirit to "Higher-Order Perl". It even talks about implementation techniques of OO protocols. Neat stuff.

These books are great even today as they transcend the Perl language.

A little outdated but still great to read are:

Randal L. Schwartz "Learning Perl"

Randal L. Schwartz "Intermediate Perl"

Brian D Foy "Mastering Perl" (my personal favorite in this series)

if you need to learn Perl 5 today.

I personally also liked

Tom Christiansen, Nathan Torkington: "Perl Cookbook"

which was basically just a large collection of programming solution recipes but usually also contained elaborate discussions on the various pros and cons of the corresponding solutions. I think it was in this book I first learned about the Fisher–Yates shuffle algorithm.

Brian D Foy: "Learning Perl 6" is a great book about Raku and is a more recent example of the great heritage of high quality introductory books about programming in the Perl domain.

Re:Why Lisp macros are cool, a Perl perspective (2005) by gnat on Saturday April 30, 2022 @01:31AM (#31213597)
(Nat Torkington here) Thanks for the kind words about Perl Cookbook! I had fun writing it and learned an enormous amount from Tom. The philosophy was that we show you the possible answers, tell you when each is appropriate, and then tell you how and why they work. You come for quick answers and before you know it, you've learned something! Every time I learn a new language, I wish someone had written a good cookbook for it.
Re:Why Lisp macros are cool, a Perl perspective (2005) by G3rn0ti on Saturday April 30, 2022 @05:25AM (#31214569)
Wow, thanks so much for your work! I had it on my desk for a long time because it was so useful. You are right every language should have a book like this!

It’s a good way to learn from because in practice you have these messy problems you’ll sometimes have to tackle from various sides before you push for a solution. Also software development is not about knowing all algorithms by heart but knowing when to reach for established work that is bullet proof and will save you and your organization a lot of headache in the future.

Re:Why Lisp macros are cool, a Perl perspective (2005) by serallak on Friday April 29, 2022 @10:19AM (#31205472)
I'd add Network Programming with Perl by Lincoln Stein.

Somewhat more specific, and many of the libraries used are dated. But it did provide you with a huge amount of information, from writing simple echo clients with raw sockets up to fully multi process HTTP deamons, in a very accessible way.

Re:Why Lisp macros are cool, a Perl perspective (2005) by submeta on Friday April 29, 2022 @07:32AM (#31203842)
Wonderful books! They had so much wit and were fun to read. I really enjoyed reading those Perl books. Maybe they were in the spirit of the Perl founder, who was/is a linguist and did not just write technical books, but almost technical literature. Haven't seen these kind of in-between-the-line writing in Python-land (or did I miss the good ones?).
Re:Why Lisp macros are cool, a Perl perspective (2005) by 7thaccount on Friday April 29, 2022 @08:05AM (#31204079)
I also bought a huge amount of Perl books as they're basically free + postage as the supply is much higher than demand.

The best one I've come across so far is from the guy that goes by "Ovid" (Curtis Poe). It had the right amount about the language, environment, package managers, popular libraries...etc. I liked the code as well.

Re:Why Lisp macros are cool, a Perl perspective (2005) by chungus on Friday April 29, 2022 @03:54AM (#31202543)
Damian Conway's book Perl Best Practices. And here's the reason why I thought of it: at a previous job where we were stuck with a million lines of less-than-optimal perl code, and the original developers who only knew perl, we had to make a decision. Rewrite it in a more gentle language that suited our new developers too, or try to write better perl. Initially we went with better perl, we used a linter called perl critic that would refer you to specific sections of Damian Conway's book Perl Best Practices. We managed to write very nice code that pleased all the new FP enthousiasts present, and were able to onboard non perl developers (incl. myself) fairly easily. It didn't work out though. The problem? Our original perl developers were unable to work with our "flashy" new perl code. It might as well have been an entirely different language to them. As it often is, this was not a coding problem but a people problem.
Re:Why Lisp macros are cool, a Perl perspective (2005) by TurboHaskal on Friday April 29, 2022 @03:58AM (#31202562)
This one is really good. I no longer work with Perl but it's one of the books that had the most impact on me. There are many things to take away from it no matter the language you code in.
Re:Why Lisp macros are cool, a Perl perspective (2005) by scrapheap on Friday April 29, 2022 @04:06AM (#31202627)
I read Damian's Perl Best Practices book for insights into ways to improve my Perl coding, but since then I've found that the principles I picked up from it have significant improved my code in most other languages as well.
Re:Why Lisp macros are cool, a Perl perspective (2005) by cutler on Friday April 29, 2022 @06:31AM (#31203486)
Seconded. Anything by The Damian is pure gold including his Vim videos.
Re:Why Lisp macros are cool, a Perl perspective (2005) by petesergeant on Friday April 29, 2022 @06:20AM (#31203432)
To my mind, Perl Medic by Peter Scott is the best book I've ever read on refactoring and working with legacy code
Re:Why Lisp macros are cool, a Perl perspective (2005) by cafard on Friday April 29, 2022 @12:21PM (#31207193)
Effective Perl Programming by Hall, McAdams, and foy has come in handy.