Learn to Code with Ruby [Video]

Preview in Mapt

Learn to Code with Ruby [Video]

Boris Paskhaver

A comprehensive introduction to coding with the Ruby programming language. Complete beginners welcome!

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
Video
$50.15
RRP $58.99
Save 14%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$50.15
$29.99 p/m after trial
RRP $58.99
Subscription
Video
Start 14 Day Trial

Frequently bought together


Learn to Code with Ruby [Video] Book Cover
Learn to Code with Ruby [Video]
$ 58.99
$ 50.15
Create Apps in MATLAB with App Designer (Codes Included) [Video] Book Cover
Create Apps in MATLAB with App Designer (Codes Included) [Video]
$ 24.99
$ 21.25
Buy 2 for $35.00
Save $48.98
Add to Cart

Video Details

ISBN 139781788834063
Course Length31 hours 24 minutes

Video Description

The most comprehensive Ruby course available. An in-depth overview of coding with Ruby, a popular programming language renowned for its simplicity and elegance. Whether you've never written a line of code before or are looking to learn a brand new language, this course covers all bases! Ruby is a language released by Yukihiro Matsumoto in 1995 that bills itself as "a programmer's best friend". Every aspect of Ruby is designed to make programming easier for the developer. There is no better first language if you're interested in learning how to program.Ruby also serves as the foundation for Ruby on Rails, a popular web framework that powers over 1.2 million websites worldwide. The course offers an extensive introduction to the base language you'll need to know if you intend to tackle web development in the future. Check out the sample videos below to get a taste of what the course has to offer! So if you're ready to commit yourself, if you're eager to expand your knowledge of programming, if you're ready to discover what makes this elegant language so loved by developers, you are ready to Learn to Code with Ruby!Thanks for checking out the course!

Style and Approach

Learn to Code with Ruby offers more than 30+ hours of video tutorials, 250+ lectures, and dozens of quizzes and exercises to test your knowledge as you proceed through the course.

Table of Contents

Introduction and Installation
Introduction to Ruby
Mac OS - Access and Work with the Terminal
Mac OS - Install RVM and Install Ruby
Mac OS - Install Atom Text Editor and Atom Runner and Custom Theme
Mac OS - Write First Ruby File and Run with Atom Runner
Mac OS - Run Ruby File from Terminal
Windows - Download and Install Ruby
Windows - Install Atom Text Editor and Atom Runner and Custom Theme
Windows - Write First Ruby File and Run with Atom Runner
Windows - Run Ruby File from Command Prompt
Interactive Ruby (IRB)
Getting Started
The puts Method
The print Method
The p Method
Basic Arithmetic in Ruby
Comments
Variables
Parallel Variable Assignment and Swapping Variable Values
Constants
Intro to Object Methods
Return Values and the nil Object
String Interpolation
The gets Method and the chomp Method
Numbers and Booleans
Intro to Numbers and the .class Method
Convert Numbers to Strings and Vice Versa
Intro to Booleans
The .odd? and .even? Predicate Methods
Comparison with the Equality (==) Operator
Comparison with the Inequality (!=) Operator
Less than and Greater than Operators
Arithmetic Methods and Basic Arguments
Intro to Object Methods with Parameters (The .between? Predicate Method)
Float Methods
Assignment Operators
Introduction to Blocks with the .times Method
The .upto and .downto Methods
BONUS - The .step Method
Strings I
Create a String
Multiline Strings
Escape Characters
Single Quotes vs Double Quotes
Equality and Inequality Operators with Strings
Concatenate Strings
The .length and .size Methods
Extract Single Characters from String with Bracket Syntax
Extract Multiple Characters from String with Bracket Syntax
Extract Multiple Characters with Range Objects
Overwrite Characters in String with Bracket Syntax
Case Methods
The .reverse Method on a String
Bang Methods on Strings
The .include? Method on a String
The .empty? And .nil? Methods on a String
Methods and Conditionals I
Intro to Methods
Local Variables
Parameters and Arguments
Return Values I
Return Values II - Default Return Values and the Return of the puts Method
The if Statement
Truthiness and Falseness
if elsif
The else Keyword
Multiple Conditions with && Operator
Multiple Conditions with || Operator
Parentheses and Precedence
Nested if Statements
The .respond_to? Method
Ternary Operator
Default or Optional Parameters
Call A Method from Another Method or Interpolated String
Methods and Conditionals II
The case Statement
Negation with !
The unless Keyword
The while Keyword
The until Keyword
CHALLENGE: FizzBuzz
Statement Modifiers / Inline Modifiers
Conditional Assignment
Ranges
Intro to Ranges
Alphabetical Ranges
The .size Method on a Range
Check if Value Exists in a Range with .includes? Method or ===
Generate A Random Number with the rand Method
Arrays I - Creation, Addition, and Modification
Introduction to Arrays
Create An Array with Bracket Syntax
Shorthand %w Syntax to Create an Array of Strings
Create an Array with Array.new Method
Access Single Array Element by Index Position
Access Single Array Element with .fetch Method
Extract Sequential Array Elements with Bracket Syntax
Access Sequential Array Elements with a Range Object
Access Multiple Array Elements with the .values_at Method
The .slice Method
Overwrite One or More Array Elements
The .length, .size and .count Methods on an Array
The .empty? and .nil? Methods on an Array
The .first and .last Methods
The .push Method, the Shovel Operator, and the .insert Method
The .pop Method
The .shift and .unshift Methods
Equality and Inequality Operators with Arrays
The Spaceship Operator
Convert Ranges to Arrays with the .to_a Method
The .is_a? Predicate Method
Arrays II - Iteration and Various Methods
The ri Program
Review of Blocks
The .each Method on an Array
More Practice with the .each Method
Each within each
The For Loop
The .each_with_index Method
CHALLENGE: The .each_with_index Method
The .map and .collect Methods on an Array
Iteration over Array with while or until Loops
The break Keyword
The next Keyword
The .reverse Method on an Array
The .sort Method on an Array
The .concat Method on an Array
The .max and .min Methods on an Array
The .include? Predicate Method on an Array
The .index and .find_index Methods on an Array
The .select Method on an Array
The .reject Method on an Array
Unpack a Multidimensional Array
The .partition Method on an Array
Strings II
The .split Method on a String
Iterate over String Characters
The .join Method on an Array
The .count Method on a String
The .index and .rindex Methods on a String
The .insert Method on a String
The .squeeze Method
The .clear Method on a String
The .delete Method on a String
Arrays III - Bonus Methods
Object Pointers and Object Copies
Splat Arguments
The .any? And .all? Methods on an Array
The .find and .detect Methods on an Array
The .uniq Method on an Array
The .compact Method on an Array
The .inject and .reduce Methods on an Array
The .flatten Method on an Array
The .zip Method on an Array
The .sample Method on an Array
Multiply an Array with Asterisk Symbol
Union - Combine Arrays and Exclude Duplicates
Remove Array Items that Exist in another Array
Array Intersection with the Ampersand Symbol
Hashes I
Intro to Hashes
Create Hash and Extract Values from Hashes by their Keys
Intro to Symbols and Symbols as Hash Keys
Convert Symbols to Strings and Vice Versa
The .fetch Method on a Hash
Add a Key Value Pair to a Hash with Bracket Syntax or the .store Method
The .length and .empty? Methods on a Hash
The .each Method on a Hash
The .each_key and .each_value Methods
Retrieve Keys or Values from Hash as an Array
Hashes II
Create Hash with Default Value
Convert Hash to Array and Vice Versa
The .sort and .sort_by Methods on a Hash
The .key? And .value? Methods on a Hash
Hashes as Method Arguments
The .delete Method on a Hash
The .select and .reject Methods on a Hash
The .merge Method to Combine Hashes
CHALLENGE: Word Frequency in a Sentence String
Blocks, Procs, and Lambdas
Introduction to Blocks
Introduction to Blocks
Procs I
The .block_given? Method
Yielding with Arguments
A Custom .each Method
Procs II
Pass a Ruby Method as Proc
Methods with Proc Parameters
Intro to Lambdas
Lambda Efficiency Example
The Time Object
Intro to the Time Object
Instance Methods on a Time Object
Predicate Methods on Time Objects
Add or Subtract Time by Seconds
The Comparable Methods on a Time Object
Convert Time Object to Other Objects
Convert Time Object to Formatted String
The .parse and .strptime Methods
File Input and Output
Read from a Text File with Ruby
Write to a Text File with Ruby
Rename and Delete a File with Ruby
Command Line Arguments (ARGV)
The load Method
The require and require_relative Methods
Regular Expressions
The .start_with? and .end_with? Methods
The .include? Method
Intro to Regular Expressions
The .scan Method I
The .scan Method II
The Wildcard Symbol
The Backslash
RegEx Anchors
Exclude Characters
The .sub and .gsub Methods with Regular Expressions
Rubular.com
Classes I
Intro to Classes
Review of the .class Method on Ruby Objects
The .superclass and .ancestors Methods on a Class
The .methods Method
Create A Class
Object Aliases
Instance Variables and the .initialize Method
Instance Methods
Override the .to_s Method
The self-Keyword in an Instance Method
Getter Methods
Setter Methods
Shortcut Accessor Methods
Add Parameters to initialize Method
Modules and Mixins
Intro to Modules
Modules with Identical Methods
Import Modules into the Current File
The Math Module
Mixins I - The Comparable Module
Mixins II - Custom Mixins
The .ancestors Method in Depth
The prepend Keyword
The extend Keyword
Mixins III - The Enumerable Module
Classes II
Private Methods
Protected Methods
Add Validation to Setter Methods
Prefer Instance Methods to Instance Variables
Calling Multiple Setter Methods within one Method
Structs
Monkey Patching I
Monkey Patching II
Monkey Patching III
Class Variables and Class Methods
Classes III
Review of Inheritance
Create Subclasses
Check Inheritance Hierarchy
The .is_a? and .instance_of? Predicate Methods
Exclusive Instance Methods in Subclasses
Override Methods in a Subclass
The super Keyword I
The super Keyword II
Class Variables across Subclasses
Singleton Classes and Singleton Methods
Hash as initialize Argument I
Hash as initialize Argument II
Reading and Writing Documentation
Intro to Rubydoc Documentation
Class Method Documentation on RubyDocs
Use rdoc to Generate Your Own Documentation I
Use rdoc to Generate Your Own Documentation II
Conclusion
Conclusion

What You Will Learn

  • Code in the Ruby programming language
  • Utilize common objects like Strings, Arrays, Hashes, and more
  • Solve popular coding challenges with Ruby

Authors

Table of Contents

Introduction and Installation
Introduction to Ruby
Mac OS - Access and Work with the Terminal
Mac OS - Install RVM and Install Ruby
Mac OS - Install Atom Text Editor and Atom Runner and Custom Theme
Mac OS - Write First Ruby File and Run with Atom Runner
Mac OS - Run Ruby File from Terminal
Windows - Download and Install Ruby
Windows - Install Atom Text Editor and Atom Runner and Custom Theme
Windows - Write First Ruby File and Run with Atom Runner
Windows - Run Ruby File from Command Prompt
Interactive Ruby (IRB)
Getting Started
The puts Method
The print Method
The p Method
Basic Arithmetic in Ruby
Comments
Variables
Parallel Variable Assignment and Swapping Variable Values
Constants
Intro to Object Methods
Return Values and the nil Object
String Interpolation
The gets Method and the chomp Method
Numbers and Booleans
Intro to Numbers and the .class Method
Convert Numbers to Strings and Vice Versa
Intro to Booleans
The .odd? and .even? Predicate Methods
Comparison with the Equality (==) Operator
Comparison with the Inequality (!=) Operator
Less than and Greater than Operators
Arithmetic Methods and Basic Arguments
Intro to Object Methods with Parameters (The .between? Predicate Method)
Float Methods
Assignment Operators
Introduction to Blocks with the .times Method
The .upto and .downto Methods
BONUS - The .step Method
Strings I
Create a String
Multiline Strings
Escape Characters
Single Quotes vs Double Quotes
Equality and Inequality Operators with Strings
Concatenate Strings
The .length and .size Methods
Extract Single Characters from String with Bracket Syntax
Extract Multiple Characters from String with Bracket Syntax
Extract Multiple Characters with Range Objects
Overwrite Characters in String with Bracket Syntax
Case Methods
The .reverse Method on a String
Bang Methods on Strings
The .include? Method on a String
The .empty? And .nil? Methods on a String
Methods and Conditionals I
Intro to Methods
Local Variables
Parameters and Arguments
Return Values I
Return Values II - Default Return Values and the Return of the puts Method
The if Statement
Truthiness and Falseness
if elsif
The else Keyword
Multiple Conditions with && Operator
Multiple Conditions with || Operator
Parentheses and Precedence
Nested if Statements
The .respond_to? Method
Ternary Operator
Default or Optional Parameters
Call A Method from Another Method or Interpolated String
Methods and Conditionals II
The case Statement
Negation with !
The unless Keyword
The while Keyword
The until Keyword
CHALLENGE: FizzBuzz
Statement Modifiers / Inline Modifiers
Conditional Assignment
Ranges
Intro to Ranges
Alphabetical Ranges
The .size Method on a Range
Check if Value Exists in a Range with .includes? Method or ===
Generate A Random Number with the rand Method
Arrays I - Creation, Addition, and Modification
Introduction to Arrays
Create An Array with Bracket Syntax
Shorthand %w Syntax to Create an Array of Strings
Create an Array with Array.new Method
Access Single Array Element by Index Position
Access Single Array Element with .fetch Method
Extract Sequential Array Elements with Bracket Syntax
Access Sequential Array Elements with a Range Object
Access Multiple Array Elements with the .values_at Method
The .slice Method
Overwrite One or More Array Elements
The .length, .size and .count Methods on an Array
The .empty? and .nil? Methods on an Array
The .first and .last Methods
The .push Method, the Shovel Operator, and the .insert Method
The .pop Method
The .shift and .unshift Methods
Equality and Inequality Operators with Arrays
The Spaceship Operator
Convert Ranges to Arrays with the .to_a Method
The .is_a? Predicate Method
Arrays II - Iteration and Various Methods
The ri Program
Review of Blocks
The .each Method on an Array
More Practice with the .each Method
Each within each
The For Loop
The .each_with_index Method
CHALLENGE: The .each_with_index Method
The .map and .collect Methods on an Array
Iteration over Array with while or until Loops
The break Keyword
The next Keyword
The .reverse Method on an Array
The .sort Method on an Array
The .concat Method on an Array
The .max and .min Methods on an Array
The .include? Predicate Method on an Array
The .index and .find_index Methods on an Array
The .select Method on an Array
The .reject Method on an Array
Unpack a Multidimensional Array
The .partition Method on an Array
Strings II
The .split Method on a String
Iterate over String Characters
The .join Method on an Array
The .count Method on a String
The .index and .rindex Methods on a String
The .insert Method on a String
The .squeeze Method
The .clear Method on a String
The .delete Method on a String
Arrays III - Bonus Methods
Object Pointers and Object Copies
Splat Arguments
The .any? And .all? Methods on an Array
The .find and .detect Methods on an Array
The .uniq Method on an Array
The .compact Method on an Array
The .inject and .reduce Methods on an Array
The .flatten Method on an Array
The .zip Method on an Array
The .sample Method on an Array
Multiply an Array with Asterisk Symbol
Union - Combine Arrays and Exclude Duplicates
Remove Array Items that Exist in another Array
Array Intersection with the Ampersand Symbol
Hashes I
Intro to Hashes
Create Hash and Extract Values from Hashes by their Keys
Intro to Symbols and Symbols as Hash Keys
Convert Symbols to Strings and Vice Versa
The .fetch Method on a Hash
Add a Key Value Pair to a Hash with Bracket Syntax or the .store Method
The .length and .empty? Methods on a Hash
The .each Method on a Hash
The .each_key and .each_value Methods
Retrieve Keys or Values from Hash as an Array
Hashes II
Create Hash with Default Value
Convert Hash to Array and Vice Versa
The .sort and .sort_by Methods on a Hash
The .key? And .value? Methods on a Hash
Hashes as Method Arguments
The .delete Method on a Hash
The .select and .reject Methods on a Hash
The .merge Method to Combine Hashes
CHALLENGE: Word Frequency in a Sentence String
Blocks, Procs, and Lambdas
Introduction to Blocks
Introduction to Blocks
Procs I
The .block_given? Method
Yielding with Arguments
A Custom .each Method
Procs II
Pass a Ruby Method as Proc
Methods with Proc Parameters
Intro to Lambdas
Lambda Efficiency Example
The Time Object
Intro to the Time Object
Instance Methods on a Time Object
Predicate Methods on Time Objects
Add or Subtract Time by Seconds
The Comparable Methods on a Time Object
Convert Time Object to Other Objects
Convert Time Object to Formatted String
The .parse and .strptime Methods
File Input and Output
Read from a Text File with Ruby
Write to a Text File with Ruby
Rename and Delete a File with Ruby
Command Line Arguments (ARGV)
The load Method
The require and require_relative Methods
Regular Expressions
The .start_with? and .end_with? Methods
The .include? Method
Intro to Regular Expressions
The .scan Method I
The .scan Method II
The Wildcard Symbol
The Backslash
RegEx Anchors
Exclude Characters
The .sub and .gsub Methods with Regular Expressions
Rubular.com
Classes I
Intro to Classes
Review of the .class Method on Ruby Objects
The .superclass and .ancestors Methods on a Class
The .methods Method
Create A Class
Object Aliases
Instance Variables and the .initialize Method
Instance Methods
Override the .to_s Method
The self-Keyword in an Instance Method
Getter Methods
Setter Methods
Shortcut Accessor Methods
Add Parameters to initialize Method
Modules and Mixins
Intro to Modules
Modules with Identical Methods
Import Modules into the Current File
The Math Module
Mixins I - The Comparable Module
Mixins II - Custom Mixins
The .ancestors Method in Depth
The prepend Keyword
The extend Keyword
Mixins III - The Enumerable Module
Classes II
Private Methods
Protected Methods
Add Validation to Setter Methods
Prefer Instance Methods to Instance Variables
Calling Multiple Setter Methods within one Method
Structs
Monkey Patching I
Monkey Patching II
Monkey Patching III
Class Variables and Class Methods
Classes III
Review of Inheritance
Create Subclasses
Check Inheritance Hierarchy
The .is_a? and .instance_of? Predicate Methods
Exclusive Instance Methods in Subclasses
Override Methods in a Subclass
The super Keyword I
The super Keyword II
Class Variables across Subclasses
Singleton Classes and Singleton Methods
Hash as initialize Argument I
Hash as initialize Argument II
Reading and Writing Documentation
Intro to Rubydoc Documentation
Class Method Documentation on RubyDocs
Use rdoc to Generate Your Own Documentation I
Use rdoc to Generate Your Own Documentation II
Conclusion
Conclusion

Video Details

ISBN 139781788834063
Course Length31 hours 24 minutes
Read More

Read More Reviews

Recommended for You

Create Apps in MATLAB with App Designer (Codes Included) [Video] Book Cover
Create Apps in MATLAB with App Designer (Codes Included) [Video]
$ 24.99
$ 21.25
Learn To Program Tic-Tac-Toe with C# and Visual Studio [Video] Book Cover
Learn To Program Tic-Tac-Toe with C# and Visual Studio [Video]
$ 42.99
$ 36.55
Learn C# With Windows Forms and SQL Server [Video] Book Cover
Learn C# With Windows Forms and SQL Server [Video]
$ 98.99
$ 84.15
Mastering Machine Learning with MATLAB [Video] Book Cover
Mastering Machine Learning with MATLAB [Video]
$ 124.99
$ 106.25
Artificial Intelligence with Python – Sequence Learning [Video] Book Cover
Artificial Intelligence with Python – Sequence Learning [Video]
$ 124.99
$ 106.25
Introduction to Kubernetes using Docker [Video] Book Cover
Introduction to Kubernetes using Docker [Video]
$ 98.99
$ 84.15