A practical guide to rapid, real-world application development with the Ruby programming language.
- Over a million professional Ruby programmers currently, with nearly five million expected by 2013
- Beginner-friendly, accessible approach
- Includes short, ready-to-run code examples to illustrate each topic
-Author well-known for his work on Ruby In Steel, the premier Ruby IDE
Ruby is famous for being easy to learn, but most users only scratch the surface of what it can do. While other books focus on Ruby's trendier features, The Book of Ruby reveals the secret inner workings of one of the world's most popular programming languages, teaching you to write clear, maintainable code.
You'll start with the basics—types, data structures, and control flows—and progress to advanced features like blocks, mixins, metaclasses, and beyond. Rather than bog you down with a lot of theory, The Book of Ruby takes a hands-on approach and focuses on making you productive from day one.
As you follow along, you'll learn to:
-Leverage Ruby's succinct and flexible syntax to maximize your productivity
-Balance Ruby's functional, imperative, and object-oriented features
-Write self-modifying programs using dynamic programming techniques
-Create new fibers and threads to manage independent processes concurrently
-Catch and recover from execution errors with robust exception handling
-Develop powerful web applications with the Ruby on Rails framework
Each chapter includes a "Digging Deeper" section that shows you how Ruby works under the hood, so you'll never be caught off guard by its deceptively simple scoping, multithreading features, or precedence rules.
Whether you're new to programming or just new Ruby, The Book of Ruby is your guide to rapid, real-world software development with this unique and elegant language.
Inhaltsverzeichnis
Introduction< BR> Chapter 1: Strings, Numbers, Classes, and Objects< BR> Chapter 2: Class Hierarchies, Attributes, and Class Variables< BR> Chapter 3: Strings and Ranges< BR> Chapter 4: Arrays and Hashes< BR> Chapter 5: Loops and Iterators< BR> Chapter 6: Conditional Statements< BR> Chapter 7: Methods< BR> Chapter 8: Passing Arguments and Returning Values< BR> Chapter 9: Exception Handling< BR> Chapter 10: Blocks, Procs, and Lambdas< BR> Chapter 11: Symbols< BR> Chapter 12: Modules and Mixins< BR> Chapter 13: Files and IO< BR> Chapter 14: YAML< BR> Chapter 15: Marshal< BR> Chapter 16: Regular Expressions< BR> Chapter 17: Threads< BR> Chapter 18: Debugging and Testing< BR> Chapter 19: Ruby on Rails< BR> Chapter 20: Dynamic Programming< BR> Appendix A: Documenting Ruby with RDoc< BR> Appendix B: Installing MySQL for Ruby on Rails< BR> Appendix C: Further Reading< BR> Appendix D: Ruby and Rails Development Software