|
|
libcats.org
Perl Medic: Transforming Legacy CodePeter J. ScottPerl ranks among hackers' favorite languages - there's always another approach to a problem, always optimization to be done, and forever new techniques to try. Perl's a hoot. But the culture of tinkering that surrounds Perl has resulted in a large body of hard-to-understand legacy code. That legacy code has to be maintained, extended, and adapted to new conditions - often without the help of the person who originally created it. Perl Medic considers Perl from the perspective of a programmer looking at code written by someone else and trying to answer the ancient question: "What were they thinking?"It's a creative approach, and one that makes good reading for someone well-versed in Perl programming (author Peter Scott makes the analogy of becoming fluent in a human language, such as French, then studying its various accents and dialects). He shows, for example, a kludgy piece of code that's meant to catch CGI form uploads, then indicates that the obvious replacement is the CGI.pm module. Elsewhere, Scott shows why symbolic references are bad, and how to avoid them by means of hashes. Some of the value in this book is in the form of documentation of the differences among Perl versions; other useful coverage deals with warnings and strictness control as debugging tools. Read this straight through to improve your own code; use the index to help decipher and improve what someone else has written. - David WallTopics covered: How to write good Perl code, read bad Perl code, and convert bad Perl code into good in less time that would be required to write an equivalent replacement program from scratch. Testing, debugging, documenting, replacing custom code with CPAN modules, and embracing features that became available in later versions of Perl are all covered. Overall, the author endorses and generally explains the principles of Extreme Programming (XP) for Perl work.
Скачать книгу бесплатно (chm, 1.19 Mb)
EPUB | FB2 | PDF | MOBI | TXT | RTF
* Конвертация файла может нарушить форматирование оригинала. По-возможности скачивайте файл в оригинальном формате.
Популярные книги за неделю:
Проектирование и строительство. Дом, квартира, садАвтор: Петер Нойферт, Автор: Людвиг Нефф
Размер книги: 20.83 Mb
Система упражнений по развитию способностей человека (Практическое пособие)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 818 Kb
Сотворение мира (3-х томник)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 817 Kb
Радиолюбительские схемы на ИС типа 555Автор: Трейстер Р.Категория: Электротехника и связь
Размер книги: 13.64 Mb
Только что пользователи скачали эти книги:
Братство убийц. Звездная крепостьАвтор: Спинрад НорманКатегория: Космическая фантастика
Размер книги: 1.85 Mb
Фридрих Наумович ГоренштейнАвтор: Хазанов БорисКатегория: Русская классическая проза
Размер книги: 11 Kb
Geometric Methods in the Algebraic Theory of Quadratic FormsАвтор: Oleg T. Izhboldin, Автор: Bruno Kahn, Автор: Nikita A. Karpenko, Автор: Alexander Vishik, Автор: Jean-Pierre Tignol
Размер книги: 1.60 Mb
Protein-ligand Interactions: Methods and ApplicationsАвтор: G. Ulrich Nienhaus
Размер книги: 5.66 Mb
Практические работы по органическому синтезуАвтор: ГолодниковКатегория: Chemistry
Размер книги: 2.12 Mb
The Ethics Of Educational ResearchАвтор: Robert G. BurgessКатегория: Philosophy
Размер книги: 1.06 Mb
shigley's Mechanical Engineering Design, Eighth EditionАвтор: Richard G. Budynas, Автор: J. Keith Nis
Размер книги: 19.30 Mb
Geheimnis Fußball: Auf den Spuren eines PhänomensАвтор: Christoph Bausenwein
Размер книги: 39.06 Mb
Am Rande der Hoffnung (5 of 6)Автор: Ferkau Volker, Автор: Thurner Michael MarcusКатегория: fiction
Размер книги: 413 Kb
|
|
|