
高阶 Perl
Higher-Order Perl
Mark Jason Dominus · 初版 2005 年
74人推荐
91位读者提及
122次提及
为什么值得读
- 详尽拆解基于闭包实现惰性求值的细节
- 讲解记忆化与高阶语法解析等技巧
- 为脚本语言开发者提供通俗的函数式范式
这本由最著名的Perl开发者之一撰写、备受期待的著作,总结了多年的创新实践。大多数Perl程序员最初都接受过C和Unix编程培训,因此他们编写的Perl程序与C程序极度相似。然而,Perl融入了许多源自Lisp等其他语言的特性。这些高级特性并不为人熟知,大多数Perl程序员很少使用,但它们却极其强大。它们可以自动化日常编程中用其他方式难以解决的任务。其中最强大的特性之一
Hacker News 上怎么说
正在加载完整评论……
> 你介意列举几本吗?当然不介意:我已经提到过 Mark Jason Dominus 的《高阶 Perl》(Higher-Order Perl),它是函数式编程的极佳入门书,并且深入到了如何在闭包之上实现惰性求值的所有硬核细节。Damian Conway 的《面向对象 Perl》(Object Oriented Perl)也浮现在我的……
> 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…
……我们需要某种面向脚本语言普通程序员、涵盖函数式技术的教程。《SICP》已经过时了,跟现代语言能做的事情不太契合。Mark-Jason Dominus 的《高阶 Perl》棒极了,但可惜的是它专门针对了一门在 2011 年大多数程序员已经不再选择的语言。曾经有人尝试把它移植到 JavaScript。也许有人应该把这事儿重新捡起来。
…we need some sort of text that covers functional techniques for the average programmer in scripting languages. SICP is dated and doesn't really match what modern languages can do. Mark-Jason Dominus' "Higher-Order Perl" is fantastic, but unfortunately specific to a language that's most programmers are not choosing in 2011. There was an attempt at a JavaScript port. Maybe someone should take that up again.
……在让人崩溃的 deadline 前拼命赶工,在别人都说不可能的时候把东西交付了。但我记不住数学定理。我也没那么喜欢教科书。除非那些书是像 Paul Graham 的《On Lisp》、Mark Jason Dominus 的《高阶 Perl》……这类的书。呃。这恰恰就是 Google 想要的。去看看 Steve Yegge 关于面试通常会问些什么的博文吧:http://steve-yegge.blogspot.com/2008/03/get-that-job-at-goog...……
…at back breaking deadlines, delivered stuff when others said it was impossible.But I don't remember math theorems. And am not too much into text books. Unless those books are like OnLisp(Paul Graham), Higher Order Perl(Mark Jason Dominus)... Kind of books. Umm. This is exactly what Google is looking for. Read Steve Yegge's post on what is typically asked in interviews: http://steve-yegge.blogspot.com/2008/03/get-that-job-at-goog...…
……在让人崩溃的 deadline 前拼命赶工,在别人都说不可能的时候把东西交付了。但我记不住数学定理。我也没那么喜欢教科书。除非那些书是像 Paul Graham 的《On Lisp》、Mark Jason Dominus 的《高阶 Perl》……这类的书。像我这样的人根本进不了 Google!
…at back breaking deadlines, delivered stuff when others said it was impossible.But I don't remember math theorems. And am not too much into text books. Unless those books are like OnLisp(Paul Graham), Higher Order Perl(Mark Jason Dominus)... Kind of books. People like me can't get hired at Google!
……Perl 所擅长的那种单行正则/fork 到 shell/reverse 连招之类的区别。那不过是刚起步,只是 Perl 拿手好戏的冰山一角。去读读 Mark Jason Dominus 写的这本《高阶 Perl》。你就会明白为什么一个 60000 行的 Python 程序实际上能变成 3000 行的 Perl 程序。>>大部分代码变成了你的实际业务逻辑,而我觉得逻辑代码最终……
…the difference between a one-line regexp/fork-to-shell/reverese combo type thing that perl is so great at That's just the very start, the very beginning of what Perl is good at. Read this book called "Higher Order Perl" by Mark Jason Dominus. You will see why 60000 line Python program actually becomes a 3000 line Perl program. >>most of the code becomes your actual business logic, and logic code I feel ends up being…
……有些东西我以前只能含糊其辞地解释,或者干脆早就忘了。真是一本神书。我隔一段时间就会重读一遍。我刚拿到第 2 版,期待着尽快拜读。Mark Jason Dominus 的《高阶 Perl》。虽然我读这本书时基本已经转向不用 Perl 了,但这本书真的帮我更好地理解了当年读学位时本该学得更扎实的计算机科学概念。这……
…were things I could only explain in a very hand-wavy sort of way or that I'd forgotten. Just an amazing book. I re-read it every so often. I just got the 2nd edition and look forward to reading it soon. Higher Order Perl by Mark Jason Dominus. Even though I'd mostly moved on from Perl when I read this, this book really helped me better understand C.S. concepts that I should have learned better getting my degree. This…