The unless conditional is a popular programming process for many Rubyists. It's not required and many developers I know, even experienced ones, don't like it since it is a very different way of looking at conditionals. I'll leave it up to you to decide if you feel good about using it in your own programs. Either way, you'll run into it in a large number of Ruby programs, so it's important to at least understand the syntax.
-
Book Overview & Buying
-
Table Of Contents
Comprehensive Ruby Programming
By :
Comprehensive Ruby Programming
By:
Overview of this book
Ruby is a powerful, general-purpose programming language that can be applied to any task. Whether you are an experienced developer who wants to learn a new language or you are new to programming, this book is your comprehensive Ruby coding guide. Starting with the foundational principles, such as syntax, and scaling up to advanced topics such as big data analysis, this book will give you all of the tools you need to be a professional Ruby developer. A few of the key topics are: object-oriented programming, built-in Ruby methods, core programming skills, and an introduction to the Ruby on Rails and Sinatra web frameworks. You will also build 10 practical Ruby programs.
Created by an experienced Ruby developer, this book has been written to ensure it focuses on the skills you will need to be a professional Ruby developer. After you have read this book, you will be ready to start building real-world Ruby projects.
Table of Contents (20 chapters)
Preface
Introduction to the Ruby Programming Language
Ruby Variables
Ruby Strings
Working with Numbers in Ruby
Ruby Methods
Ruby Iterators and Loops
Ruby Collections
Ruby Conditionals
Object-Oriented Programming in Ruby
Working with the Filesystem in Ruby
Error Handling in Ruby
Regular Expressions in Ruby
Searching with grep in Ruby
Ruby Metaprogramming
Ruby Web Frameworks
Working with APIs in Ruby
Ruby Algorithms