eBooks from Leonard Richardson
All books and eBooks by Leonard Richardson:
Ruby Cookbook
by Lucas Carlson and Leonard Rich...
Chapter 1 CHAPTER 1 Strings 1 Ruby is a programmer-friendly language. If you are already familiar with object- oriented programming, Ruby should quickly become second nature. If you’ve strug- gled with learning object-oriented programming or are not familiar with it, Ruby should make more sense to you than other object-oriented languages because Ruby’s methods are consistently named, concise, and generally act the way you expect. Throughout this book, we demonstrate concepts through interactive Ruby sessions. Strings are a good place to start because not only are they a useful data type, they’re easy to create and use. They provide a simple introduction to Ruby, a point of com- parison between Ruby and other languages you might know, and an approachable way to introduce important Ruby concepts like duck typing (see Recipe 1.12), open classes (demonstrated in Recipe 1.10), symbols (Recipe 1.7), and even Ruby gems (Recipe 1.20). If you use
(2006)
RESTful Web Services
by Leonard Rich... and Sam Ruby
CHAPTER 1 The Programmable Web and Its Inhabitants When you write a computer program, you’re not limited to the algorithms you can think up. Your language’s standard library gives you some algorithms. You can get more from books, or in third-party libraries you find online. Only if you’re on the very cutting edge should you have to come up with your own algorithms. If you’re lucky, the same is true for data. Some applications are driven entirely by the data the users type in. Sometimes data just comes to you naturally: if you’re analyzing spam, you should have no problem getting all you need. You can download a few public data sets—word lists, geographical data, lists of prime numbers, public domain texts —as though they were third-party libraries. But if you need some other kind of data, it doesn’t look good. Where’s the data going to come from? More and
(2007)

