Eloquent Ruby

Eloquent Ruby

Einband:
Kartonierter Einband
EAN:
9780321584106
Untertitel:
Englisch
Genre:
Netzwerke
Autor:
Russ Olsen
Herausgeber:
Pearson Academic
Anzahl Seiten:
448
Erscheinungsdatum:
09.03.2011
ISBN:
978-0-321-58410-6

It's easy to write "correct" Ruby code. But it's far harder to gain the fluency needed to write great Ruby code. To do that, you need to go beyond syntax and absorb the "Ruby way" of thinking and problem solving. In Eloquent Ruby, Russ Olsen helps you understand Ruby like true Rubyists do-so you can leverage its immense, surprising power.

Olsen draws on years of experience internalizing the Ruby culture and teaching Ruby to other programmers. He guides you to the "Ah Ha!" moments when it suddenly becomes clear why Ruby works the way it does and how you can take advantage of its unique approach.

Eloquent Ruby starts small, answering tactical questions focused on a single statement, method, test, or bug. You'll learn how to write code that actually looks like Ruby (not Java); why Ruby has so many control structures; how to use strings, expressions, and symbols; and what dynamic typing is really good for.

Next, Olsen turns to bigger questions related to building methods and classes. You'll discover why Ruby classes contain so many tiny methods, when to use operator overloading, and when to avoid it. Olsen explains how to write Ruby code that writes its own code-and why you'll want to. He concludes with powerful project-level features and techniques ranging from gems to Domain Specific Languages.

The newest book in the renowned Addison-Wesley Professional Ruby Series, Eloquent Ruby will help you "put on your Ruby-colored glasses" and get results that make you a true believer.


Autorentext
Russ Olsen’s career spans three decades, during which he has written everything from graphics device drivers to document management applications. These days, he diligently codes GIS, web service security, and process automation solutions. He spends much of his otherwise free time writing and speaking about programming, especially Ruby and Clojure. His first book was the highly regarded Design Patterns In Ruby (Addison-Wesley, 2007). He is also the lurking presence behind the Technology As If People Mattered blog at www.russolsen.com.

Klappentext
It's easy to write "correct" Ruby code. But it's far harder to gain the fluency needed to write great Ruby code. To do that, you need to go beyond syntax and absorb the "Ruby way" of thinking and problem solving. In Eloquent Ruby, Russ Olsen helps you understand Ruby like true Rubyists do-so you can leverage its immense, surprising power. Olsen draws on years of experience internalizing the Ruby culture and teaching Ruby to other programmers. He guides you to the "Ah Ha!" moments when it suddenly becomes clear why Ruby works the way it does and how you can take advantage of its unique approach. Eloquent Ruby starts small, answering tactical questions focused on a single statement, method, test, or bug. You'll learn how to write code that actually looks like Ruby (not Java); why Ruby has so many control structures; how to use strings, expressions, and symbols; and what dynamic typing is really good for. Next, Olsen turns to bigger questions related to building methods and classes. You'll discover why Ruby classes contain so many tiny methods, when to use operator overloading, and when to avoid it. Olsen explains how to write Ruby code that writes its own code-and why you'll want to. He concludes with powerful project-level features and techniques ranging from gems to Domain Specific Languages. The newest book in the renowned Addison-Wesley Professional Ruby Series, Eloquent Ruby will help you "put on your Ruby-colored glasses" and get results that make you a true believer.

Zusammenfassung
It’s easy to write correct Ruby code, but to gain the fluency needed to write great Ruby code, you must go beyond syntax and absorb the “Ruby way” of thinking and problem solving. In Eloquent Ruby, Russ Olsen helps you write Ruby like true Rubyists do–so you can leverage its immense, surprising power.Olsen draws on years of experience internalizing the Ruby culture and teaching Ruby to other programmers. He guides you to the “Ah Ha!” moments when it suddenly becomes clear why Ruby works the way it does, and how you can take advantage of this language’s elegance and expressiveness.Eloquent Rubystarts small, answering tactical questions focused on a single statement, method, test, or bug. You’ll learn how to write code that actually looks like Ruby (not Java or C#); why Ruby has so many control structures; how to use strings, expressions, and symbols; and what dynamic typing is really good for.Next, the book addresses bigger questions related to building methods and classes. You’ll discover why Ruby classes contain so many tiny methods, when to use operator overloading, and when to avoid it. Olsen explains how to write Ruby code that writes its own code–and why you’ll want to. He concludes with powerful project-level features and techniques ranging from gems to Domain Specific Languages.A part of the renowned Addison-Wesley Professional Ruby Series, Eloquent Ruby will help you “put on your Ruby-colored glasses” and get results that make you a true believer.

Inhalt
Foreword xixPreface xxiAcknowledgments xxvAbout the Author xxviiPART I: The Basics 1Chapter 1: Write Code That Looks Like Ruby 3The Very Basic Basics 4Go Easy on the Comments 6Camels for Classes, Snakes Everywhere Else 8Parentheses Are Optional but Are Occasionally Forbidden 9Folding Up Those Lines 10Folding Up Those Code Blocks 11Staying Out of Trouble 12In the Wild 13Wrapping Up 15Chapter 2: Choose the Right Control Structure 17If, Unless, While, and Until 17Use the Modifier Forms Where Appropriate 19Use each, Not for 20A Case of Programming Logic 21Staying Out of Trouble 23In the Wild 25Wrapping Up 27Chapter 3: Take Advantage of Ruby’s Smart Collections 29Literal Shortcuts 29Instant Arrays and Hashes from Method Calls 30Running Through Your Collection 33Beware the Bang! 36Rely on the Order of Your Hashes 38In the Wild 38Staying Out of Trouble 40Wrapping Up 42Chapter 4: Take Advantage of Ruby’s Smart Strings 43Coming Up with a String 44Another API to Master 47The String: A Place for Your Lines, Characters, and Bytes 49In the Wild 50Staying Out of Trouble 51Wrapping Up 52Chapter 5: Find the Right String with Regular Expressions 53Matching One Character at a Time 54Sets, Ranges, and Alternatives 55The Regular Expression Star 57Regular Expressions in Ruby 58Beginnings and Endings 60In the Wild 62Staying Out of Trouble 63Wrapping Up 64Chapter 6: Use Symbols to Stand for Something 65The Two Faces of Strings 65Not Quite a String 66Optimized to Stand for Something 67In the Wild 69Staying Out of Trouble 70Wrapping Up 71Chapter 7: Treat Everything Like an Object–Because Everything Is 73A Quick Review of Classes, Instances, and Methods 74Objects All the Way Down 76The Importance of Being an Object 77Public, Private, and Protected 79In the Wild 81Staying Out of Trouble 82Wrapping Up 84Chapter 8: Embrace Dynamic Typing 85Shorter Programs, But Not the Way You Think 85Extreme Decoupling 89Requir…


billigbuch.ch sucht jetzt für Sie die besten Angebote ...

Loading...

Die aktuellen Verkaufspreise von 6 Onlineshops werden in Realtime abgefragt.

Sie können das gewünschte Produkt anschliessend direkt beim Anbieter Ihrer Wahl bestellen.


Feedback