Год выпуска: 2006
Автор: Brian Marick
Издательство: The Pragmatic Bookshelf
ISBN-10: 0-9776166-1-4
ISBN-13: 978-0-9776166-1-9
Формат: PDF
Количество страниц: 297
Язык: Английский
Размер: 2,01 МБ
Описание:
This book for all those people:
• For the person who thinks programming is too hard (our tester): it’s
not as hard as all that. Programming has a bad reputation because
computers used to be too slow. To make programs run fast enough,
programmers had to use programming languages that made them tell the
computer all kinds of fiddly details. Computers are now fast enough that
we can use languages that make them figure out the fiddly little
details. As a result, programming is now much easier.
• For the person who gets bogged down when writing or changing larger
scripts (our analyst): you don’t yet have the skills to master
complexity. This book teaches them. It’s a tutorial in the modern style
of programming, one that emphasizes writing tests first (testdriven
programming), borrowing other people’s work in bits and pieces, growing
programs gradually, and constantly keeping them clean. Many scripts will
be one-shot: write it, use it, throw it away. But
for scripts you plan to keep around, these skills will let you do it.
(In truth, many professional programmers I meet haven’t yet learned
these particular skills, so they will find this book a useful
introduction.)
• For the person who knows the wrong languages well (our programmer):
languages like Java, C#, C++, and C are perfectly fine languages—in
their niche. But their niche is not writing smaller programs quickly,
especially not smaller programs that manipulate text and files rather
than numbers and internal data structures. You need to add another
language to your repertoire. In this book, you’ll learn a
language—Ruby—that is well suited to each of these three audiences. It’s
easy to learn and quick to write. While it has the features needed for
simple scripts that transform or search text, it also has all the
features needed to cope with complexity.