Leanpub Header

Skip to main content

Ruby Is For Fun

Self-Study Course, From Absolute Beginner to Advanced

This self-study course written as a book is your first step towards making money by coding and programming from home, and doing that with fun. You will understand how the Ruby language works, and establish a foundation for being successful freelance developer. 

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
1,055
Readers
394
Pages
69,563Words
About

About

About the Book

 Hey there! Feel free to dive into the book without any pressure to pay. If you end up loving it, you can always choose to buy it later. And just so you know, whether you pay or not, I won't have any access to who bought the book. Enjoy reading!

This self-study course written as a book is your first step towards making money by coding and programming from home, and doing that with fun. You will understand how the Ruby language works, and establish a foundation for being successful freelance developer. This book gives you not only technical detail, but presents knowledge in a friendly format, understandable by all ages, providing a thorough explanation of modern concepts for absolute beginners. 

In this book you will find 78 easy to follow tasks, so even people without any programming skill can solve them. Beginners will learn how to create, debug, and understand programs in Ruby. Those who are already familiar with the language will rediscover object-oriented concepts, memory organization, find career advice, and save the planet from a nuclear apocalypse.

License

Creative Commons Attribution 4.0 International License

Contribute

Contributions are welcome! Typos, rephrases, better explanations, etc. The Leanpub-flavored markdown manuscript is available at GitHub repository.

Translations

Share this book

Categories

Price

Pick Your Price...

Minimum price

Free!

$20.00

You pay

$20.00

Author earns

$16.00
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 0)

0
The author will earn $0.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Roman Pushkin

Contents

Table of Contents

Front Matter

  1. In Lieu Of an Introduction
  2. Ruby vs. Ybur
  3. Ruby Is For Fun
  4. What will we study?
  5. Web Programming Or Something Else?
  6. How Much Do Programmers Earn?
  7. Your Advantage
  8. Exercise

Part I. First Steps

  1. Runtime Environment
  2. Setting Up Windows (MacOS, Linux) For Your First Program
  3. Exercise
  4. Hello, I’m Your REPL
  5. Exercise
  6. Running a Program From a File
  7. Hello, I’m Your File Manager
  8. Exercise
  9. File System Essentials
  10. File System Navigation
  11. Exercise
  12. Shell Survival Guide
  13. Exercise 1
  14. Keep this in mind
  15. Exercise 2
  16. Exercise 3
  17. Be Careful
  18. Don’t Do This
  19. Text Editors
  20. Exercise
  21. Your First Program
  22. Exercise 1
  23. Exercise 2
  24. Variables in Ruby
  25. String Addition and Multiplication

Part II. Essentials

  1. Data Types
  2. Exercise
  3. Exercise
  4. Everything Is An Object (Proof)
  5. Type Casting (type conversion)
  6. Fractional Numbers
  7. String Interpolation
  8. Exercise 1
  9. Exercise 2
  10. Bang!
  11. Exercise
  12. Blocks
  13. Blocks With Parameters
  14. Exercise 1
  15. Exercise 2
  16. Methods Of Integer Class
  17. Exercise 1
  18. Exercise 2
  19. Testing Variables And Branching
  20. Exercise
  21. Combining Conditions
  22. Exercise 1
  23. Exercise 2
  24. Exercise 3
  25. Some Useful Methods of Ruby Language
  26. Random Numbers
  27. Exercise 1
  28. Exercise 2
  29. Exercise 3
  30. Exercise 4
  31. Guess The Number Game
  32. Exercise

Part III. Having Fun

  1. Ternary Operator
  2. Exercise
  3. Loading Indicator
  4. Exercise
  5. Methods
  6. Judgement Day Emulator
  7. Exercise 1
  8. Exercise 2
  9. Exercise 3
  10. Exercise 4
  11. Instance and Local Variables
  12. Programming Slot Machine
  13. Exercise 1
  14. Exercise 2
  15. Arrays
  16. Exercise
  17. Few Words About “Each”
  18. Initializing Array
  19. Accessing Array
  20. Missing Detail
  21. Exercise
  22. Battle of Robots
  23. Exercise
  24. Exercise 1
  25. Exercise 2
  26. Arrays of Arrays (two-dimensional arrays)
  27. Exercise 1
  28. Exercise 2
  29. Exercise 3
  30. Exercise 4
  31. Gems
  32. Exercise
  33. Accessing Array of Arrays
  34. Exercise 1
  35. Exercise 2
  36. Exercise 3
  37. Multi-dimensional Arrays
  38. Exercise 1
  39. Exercise 2
  40. Closer Look into Array class
  41. empty? method
  42. Methods length, size, count
  43. Exercise
  44. include? method
  45. Adding Elements to Arrays
  46. Selecting Elements by Criteria
  47. Rejecting Elements by Criteria
  48. Take Method
  49. Is There Any Match? (any?)
  50. All Elements Should Meet Criteria
  51. Few Words About Array Methods
  52. Symbols
  53. Exercise
  54. Hash
  55. Exercise 1
  56. Exercise 2, the Moon store
  57. Other types as Hash values
  58. Exercise 1
  59. JSON-structure of a real-world application
  60. Exercise 1
  61. Exercise 2
  62. English-Spanish dictionary
  63. Exercise 1
  64. Exercise 2
  65. Comparison of hashes and arrays
  66. Most often used methods of Hash class
  67. Setting a default value in Hash
  68. Exercise
  69. Passing parameters to methods
  70. Exercise
  71. HashSet
  72. Exercise 1
  73. Exercise 2
  74. Iteration over hash elements
  75. Exercise
  76. “dig” method
  77. Key presence
  78. Exercise

Part IV. Fun with Object-Oriented Programming

  1. Classes and objects
  2. State
  3. Exercise 1
  4. Exercise 2
  5. State, one more example
  6. Exercise
  7. Duck typing and polymorphism
  8. Exercise 1
  9. Exercise 2
  10. Exercise 3
  11. Inheritance
  12. Modules
  13. Subtyping vs Inheritance
  14. Exercise
  15. Class methods
  16. The truth about Object-Oriented programming
  17. Debugging a program
  18. Debugging by using output to console
  19. Debugging by using console debugger
  20. Debugging with IDE
  21. Practice: save the world with Ruby
  22. Exercise 1
  23. Exercise 2
  24. Exercise 3
  25. Exercise 4
  26. Exercise 4
  27. Exercise 5
  28. Exercise 6
  29. Docker, crash course
  30. Ruby Version Manager (RVM)
  31. Testing Ruby programs
  32. Rspec
  33. Exercise 1
  34. Exercise 2
  35. Final words

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub