|
作者:Damian Conway
出版日期:July 12, 2005
出版社:O'Reilly
页数:542
ISBN:ISBN-10: 0596001738 ISBN-13: 978-0596001735
文件格式:CHM
Review
“If you are looking for a book to teach you how to program Perl, thisis definitely not what you need. Also, if you are cranking out quickPerl scripts to solve one-time tasks, it might not be worth the effortto read this book. However, if you are fairly comfortable with thelanguage and are looking for ways to improve your code, this book wouldbe a wonderful addition to your bookshelf.” – James Mohr, LinuxMagazine, November 2005
Product Description
Many programmers code by instinct, relying on convenient habits or a“style” they picked up early on. They aren’t conscious of all thechoices they make, like how they format their source, the names theyuse for variables, or the kinds of loops they use. They’re focusedentirely on problems they’re solving, solutions they’re creating, andalgorithms they’re implementing. So they write code in the way thatseems natural, that happens intuitively, and that feels good.
But if you’re serious about your profession, intuition isn’t enough. Perl Best Practicesauthor Damian Conway explains that rules, conventions, standards, andpractices not only help programmers communicate and coordinate with oneanother, they also provide a reliable framework for thinking aboutproblems, and a common language for expressing solutions. This isespecially critical in Perl, because the language is designed to offermany ways to accomplish the same task, and consequently it supportsmany incompatible dialects.
With a good dose of Aussie humor, Dr. Conway (familiar to many inthe Perl community) offers 256 guidelines on the art of coding to helpyou write better Perl code–in fact, the best Perl code you possiblycan. The guidelines cover code layout, naming conventions, choice ofdata and control structures, program decomposition, interface designand implementation, modularity, object orientation, error handling,testing, and debugging.
They’re designed to work together to produce code that is clear,robust, efficient, maintainable, and concise, but Dr. Conway doesn’tpretend that this is the one true universal and unequivocal set of bestpractices. Instead, Perl Best Practices offers coherent andwidely applicable suggestions based on real-world experience of howcode is actually written, rather than on someone’s ivory-tower theorieson how software ought to be created.
Most of all, Perl Best Practices offers guidelines thatactually work, and that many developers around the world are alreadyusing. Much like Perl itself, these guidelines are about helping you toget your job done, without getting in the way.
Praise for Perl Best Practices from Perl community members:
“As a manager of a large Perl project, I’d ensure that every member of my team has a copy of Perl Best Practices on their desk, and use it as the basis for an in-house style guide.” — Randal Schwartz
“There are no more excuses for writing bad Perl programs. All levelsof Perl programmer will be more productive after reading this book.” —Peter Scott
“Perl Best Practices will be the next big important book inthe evolution of Perl. The ideas and practices Damian lays down willhelp bring Perl out from under the embarrassing heading of “scriptinglanguages”. Many of us have known Perl is a real programming language,worthy of all the tasks normally delegated to Java and C++. With PerlBest Practices, Damian shows specifically how and why, so everyone elsecan see, too.” — Andy Lester
“Damian’s done what many thought impossible: show how to buildlarge, maintainable Perl applications, while still letting Perl be thepowerful, expressive language that programmers have loved for years.” —Bill Odom
“Finally, a means to bring lasting order to the process and product of real Perl development teams.” — Andrew Sundstrom
“Perl Best Practices provides a valuable education in howto write robust, maintainable Perl, and is a definitive citation sourcewhen coaching other programmers.” — Bennett Todd “I’ve been teachingPerl for years, and find the same question keeps being asked: Where canI find a reference for writing reusable, maintainable Perl code?Finally I have a decent answer.” — Paul Fenwick “At last a wellresearched, well thought-out, comprehensive guide to Perl style.Instead of each of us developing our own, we can learn good practicesfrom one of Perl’s most prolific and experienced authors. I recommendthis book to anyone who prefers getting on with the job rather thangoing back and fixing errors caused by syntax and poor style issues.” —Jacinta Richardson “If you care about programming in any language readthis book. Even if you don’t intend to follow all of the practices,thinking through your style will improve it.” — Steven Lembark “ThePerl community’s best author is back with another outstanding book.There has never been a comprehensive reference on high quality Perlcoding and style until Perl Best Practices. This book fills a large gap in every Perl bookshelf.” — Uri Guttman |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|