All You Need to Know, and Nothing You Don't, to Create Ruby Programs, Gems, and Web Apps
Programmers love Ruby for its elegance, power, and that's why it was chosen for the Ruby on Rails framework that launched websites from Shopify to Coinbase. You'll love Ruby too, but you don't need to learn "everything" about it, just how to use it efficiently to solve real problems. In Learn Enough Ruby to Be Dangerous, renowned instructor Michael Hartl teaches the concepts, skills, and approaches you need to be professionally productive in both general-purpose programming and beginning web app development.
Even if you're new to programming, Hartl helps you quickly build technical sophistication and master the lore you need to succeed. You'll gain a solid understanding of object-oriented and functional programming, develop and publish a self-contained Ruby package (a gem), and use your gem to build and deploy a dynamic web app with the Sinatra framework. Focused exercises help you internalize what matters, without wasting time on details pros don't care about. Soon, it'll be like you were born knowing this stuff--and you'll be suddenly, seriously dangerous.
Learn enough about . . . Writing real code quickly using interactive Ruby (irb) Working with native Ruby objects and creating your own Using functional techniques to write more concise and modular code Creating tests and improving code with test-driven development (TDD) Developing and publishing self-contained Ruby packages (gems) Writing nontrivial shell scripts to leverage Ruby's power at the command line Developing and deploying a web app with routes, layouts, embedded Ruby, and forms Mastering modern development skills you can use with any language Michael Hartl's Learn Enough Series includes books and video courses that focus on the most important parts of each subject, so you don't have to learn everything to get started--you just have to learn enough to be dangerous and solve technical problems yourself.
Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
I'm brand new to coding in Ruby and a friend of mine suggested I try this book. Well, actually he suggested I start with the Ruby on Rails tutorial first because I had some minor coding experience in HTML and Python years ago. I got about 25% through the Rails tutorial before I realized I probably did need to go through the Ruby book first. It probably took me around 5 weeks to finish this tutorial, putting in about 4-6 hours a week.
This book includes: - Starting from the ground up on basic programming topics like strings, arrays, hashes, functions, methods ect - How to use map, select, and reduce which are very powerful ruby methods - What are objects, classes and inheritance - How to do test-driven development and how to incorporate testing into your workflow - How to use shell scripts to read from documents or URLs - Creating and publishing your own Ruby Gem that tests if a string is a palindrome - Creating your github repositories, and how to push/pull your work to it. - Creating a final project that wraps your newly created gem in HTML and lets you interact with it via a webpage that is published.
I learned a lot and I'm ready to go back to the ruby on rails tutorial now!
Pretty great introductory book. It covers all the basics you would expect from a typical introductory language book, but I appreciated that it shared some insights on larger software engineering concepts as well.
For example, it places an emphasis on "shipping" code, including helping the beginner deploy a working web app through Heroku. The book also touches on ideas like TDD and effectively abstracting pieces of code.