Learn Enough Ruby to Be Dangerous: Write Programs, Publish Gems, and Develop Sinatra Web Apps with Ruby
- Length: 859 pages
- Edition: 1
- Language: English
- Publisher: Addison-Wesley Professional
- Publication Date: 2022-06-17
- ISBN-10: B09WMLX9DG
- Sales Rank: #0 (See Top 100 Books)
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 flexibility: 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.
Cover Page About This eBook Title Page Copyright Page Contents Preface About the Author Chapter 1. Hello, World! 1.1 Introduction to Ruby 1.2 Ruby in a REPL 1.3 Ruby in a File 1.4 Ruby in a Shell Script 1.5 Ruby in a Web Browser Chapter 2. Strings 2.1 String Basics 2.2 Concatenation and Interpolation 2.3 Printing 2.4 Attributes, Booleans, and Control Flow 2.5 Methods 2.6 String Iteration Chapter 3. Arrays 3.1 Splitting 3.2 Array Access 3.3 Array Slicing 3.4 More Array Methods 3.5 Array Iteration Chapter 4. Other Native Objects 4.1 Math 4.2 Time 4.3 Regular Expressions 4.4 Hashes 4.5 Application: Unique Words Chapter 5. Functions and Blocks 5.1 Function Definitions 5.2 Functions in a File 5.3 Method Chaining 5.4 Blocks Chapter 6. Functional Programming 6.1 Map 6.2 Select 6.3 Reduce Chapter 7. Objects and Classes 7.1 Defining Classes 7.2 Inheritance 7.3 Derived Classes 7.4 Modifying Native Objects 7.5 Modules Chapter 8. Testing and Test-Driven Development 8.1 Testing and Ruby Gem Setup 8.2 Initial Test Coverage 8.3 Red 8.4 Green 8.5 Refactor Chapter 9. Shell Scripts 9.1 Reading from Files 9.2 Reading from URLs 9.3 DOM Manipulation at the Command Line Chapter 10. A Live Web Application 10.1 Setup 10.2 Site Pages 10.3 Layouts 10.4 Embedded Ruby 10.5 Palindrome Detector 10.6 Conclusion Code Snippets
Donate to keep this site alive
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.