Cyll | Practical Ruby Projects | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 328 Seiten

Cyll Practical Ruby Projects

Ideas for the Eclectic Programmer
1. ed
ISBN: 978-1-4302-0471-8
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

Ideas for the Eclectic Programmer

E-Book, Englisch, 328 Seiten

ISBN: 978-1-4302-0471-8
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



Revitalized by Ruby on Rails, the Ruby language continues to grow in popularity. Books like this are necessary to fill the demand. Here is a classic of its kind; required reading for Ruby programmers who have already mastered the basics and want to learn higher level techniques. Practical Ruby Projects presents nine diverse projects that will teach new and innovative techniques in a learn-by-example fashion. They include a turn-based adventure game and a generative music creator. While there are many other Ruby titles, none of them take this unique project-based approach to teaching.

Topher Cyll is a software engineer and writer living in Cambridge, Massachusetts. He received his bachelor's degree in computer science from Williams College and works for a small Boston-area startup. In reverse alphabetical order, he finds programming languages, music, free software, education, bioengineering, and beer terribly exciting. Topher loves Ruby not only for the language itself, but also the light-hearted and intellectually curious community that surrounds it.

Cyll Practical Ruby Projects jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;5
2;Contents;6
3;About the Author;13
4;About the Technical Reviewer;14
5;Acknowledgments;15
6;Introduction;16
6.1;Why Ruby?;16
6.2;Why This Book?;17
6.3;Getting Set Up;18
6.4;Source Code in This Book;19
6.5;Your Projects;20
7;Making Music with Ruby;21
7.1;MIDI: Giving Yourself a Vocabulary;21
7.2;Talking C and Making Noise;23
7.3;Building a Metronome;36
7.4;Composing;43
7.5;Saving Your Music;50
7.6;Live Coding;53
7.7;Summary;63
8;Animating Ruby;64
8.1;Scalable Vector Graphics;64
8.2;The Animator;68
8.3;Drawing Many Cubes;80
8.4;Your First Animation;91
8.5;Putting the Animations Together;96
8.6;Spicing It Up;99
8.7;Summary;104
9;Pocket Change: Simulating Coin Systems with Ruby;105
9.1;Going Shopping;105
9.2;How to Make Change;107
9.3;Dynamic Programming;111
9.4;The Customer;112
9.5;The ChangeSimulator;122
9.6;So How Heavy Are Your Pockets?;123
9.7;Replacing a Coin;123
9.8;Adding a Coin;124
9.9;Optimal Coins;125
9.10;Wizard Money;128
9.11;In the Literature;129
9.12;Summary;130
10;Turn-Based Strategy in Ruby;131
10.1;A Strategy;131
10.2;An Implementation;133
10.3;Building the World Around Us;133
10.4;Meeting Your Heroes;141
10.5;Making Choices;145
10.6;Taking Action;148
10.7;The Players;151
10.8;The Artificial Intelligence Doesn’t Seem So Intelligent;154
10.9;Writing a Command- Line Player;155
10.10;The Game;156
10.11;Putting It All Together;162
10.12;Summary;164
11;RubyCocoa;165
11.1;The Very Basics;165
11.2;Building a Turn- Based Strategy Game;170
11.3;Selecting Units from the Map;192
11.4;Using Image Tiles;196
11.5;Packaging It Up;204
11.6;Summary;207
12;Genetic Algorithms in Ruby;208
12.1;Simulating Evolution;209
12.2;Thinking About Encodings;214
12.3;Using Mutation;219
12.4;Making Change . . . Again!;222
12.5;Adding Further Improvements;227
12.6;Summary;232
13;Implementing Lisp in Ruby;233
13.1;Learning Lisp;234
13.2;Choosing Your Lisp Data Types;234
13.3;Building Cons Cells;234
13.4;Saving Values in the Environment;236
13.5;Understanding eval and apply;240
13.6;Making It Look Like Lisp;245
13.7;Choosing Your Primitive Functions;246
13.8;Creating an Interpreter Object;248
13.9;But What About Special Forms?;250
13.10;Implementing Macros;257
13.11;It Just Ain’t Lisp Without eval;260
13.12;Adding Lexical Macros;261
13.13;Interoperating with Ruby;263
13.14;Summary;266
14;Parsing in Ruby;271
14.1;Parsing with Ruby;272
14.2;Parsing S- Expressions;275
14.3;Parsing List Comprehensions;288
14.4;Summary;300
15;Index;302



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.