Ruby Essential Training Part 1: The Basics
4h 16mIntermediate2022-03-10
Authors

Kevin Skoglund
Founder of NovaFabrica
Course details
Ruby, the popular object-oriented open-source programming language, is a great place to start learning programming or web development. You can use it to write interactive programs or build scripts to speed up common tasks. In this course, instructor Kevin Skoglund provides the basics that new and experienced developers need to know to start coding with Ruby, starting with the core object types: numbers, strings, symbols, booleans, and more. He demonstrates Ruby's control structures, including conditionals, loops, and iterators. Kevin explains scripting best practices and shows the power of using enumerables and code blocks. By the end of the course, you should be able to use Ruby to define your own custom methods with loops and conditional logic.
Skills covered
RubyEssential TrainingProgramming LanguagesOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Learn the basics of Ruby
- 02 - Get the most out of the exercise files
1. Get Started with Ruby
- 03 - Introducing Ruby
- 04 - Install Ruby on a Mac
- 05 - Install Ruby on Windows
- 06 - Using Ruby
- 07 - Interactive Ruby Shell (IRB)
- 08 - Documentation
2. Ruby Object Types
- 09 - Objects
- 10 - Variables
- 11 - Numbers - Integers
- 12 - Numbers - Floats
- 13 - Strings
- 14 - Strings - Escaping and interpolation
- 15 - Arrays
- 16 - Array methods
- 17 - Hashes
- 18 - Symbols
- 19 - Booleans
- 20 - Ranges
- 21 - Constants
- 22 - Nil
- 23 - Challenge - Roman numerals
- 24 - Solution - Roman numerals
3. Control Structures
- 25 - About control structures
- 26 - Conditionals - if, else, elsif
- 27 - Conditionals - unless
- 28 - Conditionals - case
- 29 - Conditionals - Shorthand operators
- 30 - Loops
- 31 - Iterators
- 32 - Challenge - Blanket patterns
- 33 - Solution - Blanket patterns
4. Ruby Scripting
- 34 - Best practices
- 35 - Exit a running script
- 36 - Input and output
- 37 - Challenge - Guessing game
- 38 - Solution - Guessing game
5. Enumerables and Code Blocks
- 39 - Enumerables
- 40 - What is a code block
- 41 - Find methods
- 42 - Map methods
- 43 - Inject methods
- 44 - Sort methods
- 45 - Merge methods
- 46 - Challenge - Ruby blanks
- 47 - Solution - Ruby blanks
6. Custom Methods
- 48 - Define and call methods
- 49 - Variable scope
- 50 - Arguments
- 51 - Argument default values
- 52 - Return value
- 53 - Return multiple values
- 54 - Challenge - Pig Latin
- 55 - Solution - Pig Latin
Conclusion
- 56 - Next steps
Related courses
- Ruby Essential Training Part 2: Classes and Modules
- Ruby Essential Training Part 3: Files, Formats, Templates
- Ruby on Rails 7 Essential Training
- Ruby on Rails 6 Essential Training: Models and Associations
- Installing and Running Ruby on Rails 5: Mac
- Installing and Running Ruby on Rails 5: Windows
- Ruby: Testing with RSpec
- Ruby on Rails: Get More From ActiveRecord
Related learn paths
- Build Your Ruby on Rails Skills
- Getting Started with Continuous Integration / Continuous Delivery (CI/CD)
- Prepare for the CompTIA PenTest+ (PT0-001) Exam
- Getting Started with C++
- Become a Programmer: Foundations
- Getting Started with DevOps
- Prepare for the CompTIA PenTest+ (PT0-002) Certification Exam
- Getting Started with R for Data Science