There may be no better way to learn how to program than by dissecting real, representative examples written in your language of choice. Ruby by Example analyzes a series of Ruby scripts, examing how the code works, explaining the concepts it illustrates, and showing how to modify it to suit your needs.
Baird´s examples demonstrate key features of the language (such as inheritance, encapsulation, higherorder functions, and recursion), while simultaneously solving difficult problems (such as validating XML, creating a blilingual program, and creating commandline interfaces). Each chapter builds upon the previous, and each key concept is highlighted in the margin to make it easier for your to navigate the book.
You´ll learn how to:
- Use the interactive Ruby shell (irb) to learn key feature of the language
- Extend Ruby using RubyGems, the Ruby package manager
- Create numerical utilities, as well als utilities that process and analyze HTML/XML
- Implement purely functional and metaprogramming techniques to save time and effort
- Optimize, profile, and test your code to make sure that it not only does its job, but does it well
- Create web applications using Rails
Ruby is the fastest growing programming language today, and for good reason: Its elegant syntax and readdable code make for prolific and happy programmers. But it can be difficult to understand and implement without a little help. Ruby by Example shows you how to take advantage of Ruby as you explore Ruby´s fundamental concepts in action.
Sprache
Verlagsort
Zielgruppe
-Beginning to intermediate programmers -Ruby enthusiasts -Programmers using Ruby to solve problems
Maße
Höhe: 234 mm
Breite: 178 mm
ISBN-13
978-1-59327-148-0 (9781593271480)
Schweitzer Klassifikation
Kevin C. Baird received his Ph.D. from the State University of New York at Buffalo. He originally wrote his dissertation in Python but rewrote the project after discovering Ruby, and he hasn't looked back since. He has presented at RubyConf and written articles for Linux Journal, Music & Computers magazine, and the New Interfaces for Musical Expression conference proceedings.
DedicationACKNOWLEDGMENTSINTRODUCTION: WHAT IS RUBY?Chapter 1: INTERACTIVE RUBY AND THE RUBY ENVIRONMENTChapter 2: AMUSEMENTS AND SIMPLE UTILITIESChapter 3: PROGRAMMER UTILITIESChapter 4: TEXT MANIPULATIONChapter 5: NUMBER UTILITIESChapter 6: FUNCTIONALISM WITH BLOCKS AND PROCSChapter 7: USING, OPTIMIZING, AND TESTING FUNCTIONAL TECHNIQUESChapter 8: HTML AND XML TOOLSChapter 9: MORE COMPLEX UTILITIES AND TRICKS, PART IChapter 10: MORE COMPLEX UTILITIES AND TRICKS, PART IIChapter 11: CGI AND THE WEBChapter 12: RUBYGEMS AND RAILS PREPARATIONChapter 13: A SIMPLE RAILS PROJECTHow Does Ruby Compare to Other Languages?Colophon