Video description
“Learn to Code with Ruby" is a meticulously crafted educational experience, designed to take you from beginner to proficient in the world of programming. Your learning adventure begins with the basics of installation and configuration on various operating systems, followed by an exploration of Ruby's object-oriented principles.
As you progress, you'll delve into the core of programming with hands-on sessions on variables, data types, and control structures. Our approach is to build your skills progressively, ensuring that each concept is understood profoundly before moving to the next. The course is designed to simulate a real-world coding environment, with practical exercises that encourage problem-solving and critical thinking.
Beyond the syntax and semantics, we emphasize why programming is a critical skill in today's technology-driven landscape. Ruby not only opens doors to software development but also lays a strong foundation for web development with Ruby on Rails. As you move through the course, you'll experience the satisfaction of creating functional code that evolves with complexity. By the end of your journey, you'll be well-equipped with the knowledge and skills to tackle real-world programming challenges with confidence and creativity. Please refer to the GH repository for all course files and codes.
What you will learn
- Install and configure Ruby on Mac OS and Windows
- Understand basic programming concepts like variables, arithmetic, and output
- Manipulate strings, numbers, and Booleans in Ruby
- Work with Ruby collections such as ranges, arrays, and hashes
- Implement blocks, procs, and lambdas
- Master object-oriented programming with classes, modules, and inheritance
Audience
This course is ideal for novice programmers seeking an introduction to an easy, user-friendly programming language, as well as for intermediate coders eager to delve deeper into Ruby. It's also perfectly suited for web developers looking to understand the underlying principles of Ruby on Rails.
About the Author
Boris Paskhaver: Boris Paskhaver is a New York City-based software engineer, author, and Udemy instructor with a unique journey into tech. Graduating from NYU in 2013 with a degree in Business Economics and Marketing, he initially worked in various roles, including business analyst and data analyst, at several companies. His coding journey began accidentally while building projects with Python and JavaScript, leading him to passionately pursue programming. Without formal computer science education, Boris completed App Academy's full-stack web development bootcamp, diving headfirst into web development. As an instructor, Boris focuses on creating comprehensive, easy-to-understand courses, addressing the challenges he faced learning to code. He's driven by the intersection of technology and education, aiming to make programming accessible to all. Boris brings this passion to his teaching, helping others unlock the potential of coding.
Table of contents
-
Chapter 1 : Introduction and Installation
- Welcome to Ruby
- Object-Oriented Programming
- macOS - Access and Work with the Terminal
- macOS - Install XCode Command Line Tools
- macOS - Install Homebrew
- macOS - Install rbenv
- macOS - Install Ruby
- macOS - Install VSCode Text Editor
- Windows - Access and Work with PowerShell
- Windows - Figure Out if System is 32-bit or 64-bit
- Windows - Install Ruby
- Windows - Install VSCode Text Editor
- Install VSCode Extensions
- Write First Ruby File and Run with Code Runner
- Write First Ruby File and Run with Terminal or PowerShell
- Interactive Ruby (IRB)
- Section Review [SLIDES]
- Chapter 2 : Getting Started
- Chapter 3 : Variables
- Chapter 4 : Object Methods
- Chapter 5 : Booleans and Predicate Methods
- Chapter 6 : Methods
- Chapter 7 : Blocks
-
Chapter 8 : Conditionals
- The if Statement
- Predicate Methods in if Statements
- Truthiness and Falsiness
- if and elsif
- if and else
- Multiple Conditions with And Operator ()
- Multiple Conditions with Or Operator (||)
- Parentheses Precedence
- Nested if Statements
- Ternary Operator
- Call A Method from Another Method
- The case Statement
- The unless Keyword
- Statement Modifiers
- Conditional Assignment Operator
- Section Review [SLIDES]
-
Chapter 9 : Strings I
- Single Quotes vs Double Quotes
- Multiline Strings
- String Comparisons
- String Concatenation Options
- The length and size Methods
- Intro to Index Positions
- Extract Multiple Characters from a String
- Overwrite Characters in String
- The insert Method
- The empty? and nil? Methods
- Case Methods
- The reverse Method
- Bang Methods on Strings
- Section Review [SLIDES]
- Chapter 10 : Loops
- Chapter 11 : Debugging
-
Chapter 12 : Arrays I: Creation and Access
- Introduction to Arrays
- Nested Arrays
- Shorthand %w Syntax to Create An Array of Strings
- Access and Overwrite Array Element by Index Position
- Access Single Array Element with the fetch Method
- Access and Overwrite Multiple Array Elements with Bracket Syntax
- Access Multiple Array Elements with the values_at Method
- The first and last Methods
- The length, size, and count Methods
- The empty? and nil? Methods
- Equality and Inequality Operators with Arrays
- The Spaceship Operator
- The push Method and Shovel Operator
- The insert Method
- The pop Method
- The shift and unshift Methods
- Section Review [SLIDES]
- Chapter 13 : Ranges
-
Chapter 14 : Arrays II: Iteration and Various Methods
- The each Method
- Filtering with the each Method
- each within each
- The for Loop
- The each_with_index Method
- Iteration over Array with while or until Loops
- The map and collect Methods
- The select and reject Methods
- The partition Method
- The any? and all? Methods
- The find and detect Mthods
- The index and find_index Methods
- The include? Method
- The max and min Methods
- Unlimited Method Arguments/Splat Argument
- Section Review [SLIDES]
- Chapter 15 : Strings II
- Chapter 16 : Object References and Copies
-
Chapter 17 : Hashes I
- Intro to Hashes
- Populate Hash and Extract Values from Keys
- Intro to Symbols
- Symbols as Hash Keys
- Ruby 3.1 Shorthand Hash Syntax
- Add a New Key-Value Pair to Hash
- Iterating over a Hash
- Check for Inclusion in a Hash
- The select and reject Methods on a Hash
- Convert Hash to Array and Vice Versa
- The delete Method
- The merge Method
- Create Hash with Default Value (Hash.new)
- Reference Problems with Hash.new
- Section Review [SLIDES]
-
Chapter 18 : Arrays III: Bonus Methods
- The reverse Method
- The sort Method
- The uniq Method
- The compact Method
- The inject and reduce Methods
- The flatten Method
- The sample Method
- Multiply an Array with an Asterisk
- Merge Arrays and Exclude Duplicates
- Remove Array Items that Exist in Another Array
- Array Intersection with the Ampersand Symbol
- Section Review [SLIDES]
- Chapter 19 : Blocks, Procs, and Lambdas
-
Chapter 20 : Classes I: The Basics
- Intro to Classes
- Create a Class
- The new Method on Ruby's Native Objects
- Instance Variables and the initialize Method
- Instance Methods
- Override the to_s Method
- The self Keyword
- Omitting the self Keyword
- Getter Methods (Read Methods)
- Setter Methods (Write Methods)
- The attr_reader and attr_writer Methods
- The attr_accessor Method
- Add Parameters to initialize Method
- Section Review [SLIDES]
- Chapter 21 : Classes II
- Chapter 22 : Keyword Arguments
-
Chapter 23 : Classes III: Inheritance
- Intro to Inheritance [SLIDES]
- Create Subclasses
- The superclass and ancestors Class Methods
- Check Inheritance Hierarchy of our Subclasses
- The is_a? and instance_of? Methods
- The methods Method
- Exclusive Instance Methods in Subclasses
- Override Methods in a Subclass
- The super Keyword I
- The super Keyword II
- Defining Equality
- Duck Typing
- Section Review [SLIDES]
- Chapter 24 : Input and Output
-
Chapter 25 : Modules and Mixins
- Intro to Modules
- Modules with Identical Methods
- Import Modules into the Current File
- The Math Module
- The uri and net/http Modules
- The Enumerable Mixin
- The Comparable Mixin
- Mixing in Our Own Module
- The ancestors Method in Depth
- The prepend Keyword
- The extend Keyword
- Mixing in Multiple Modules
- Multiple Declarations for the Same Module
- Modules within Modules
- Section Review [SLIDES]
- Chapter 26 : Sets
- Chapter 27 : Datetimes
- Chapter 28 : Regular Expressions
- Chapter 29 : Exceptions
- Chapter 30 : Testing with Minitest
- Chapter 31 : Reading and Writing Documentation
- Chapter 32 : Gems
- Chapter 33 : Conclusion
Product information
- Title: Learn to Code with Ruby
- Author(s):
- Release date: February 2024
- Publisher(s): Packt Publishing
- ISBN: 9781788834063
You might also like
video
Learn Ruby the Hard Way
The media elements for Learn Ruby the Hard Way demonstrate key points in the text.
video
Learning Ruby
In this Ruby training course, expert author Mike McMillan teaches you the fundamentals of the Ruby …
book
The Ruby Programming Language
The Ruby Programming Language is the authoritative guide to Ruby and provides comprehensive coverage of versions …
book
The Ruby Way: Solutions and Techniques in Ruby Programming, Third Edition
For more than a decade, Ruby developers have turned to The Ruby Way for reliable “how-to” …