Mô tả

Welcome to the most comprehensive Ruby course available on Udemy! 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!

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

Lessons include:

  • Installation and configuration for both Mac OS and Windows systems

  • Common programming concepts (variables, arithmetic, output)

  • Objects and methods

  • Strings

  • Numbers

  • Booleans

  • Methods and Conditionals

  • Ranges

  • Arrays

  • Hashes

  • Blocks, Procs, and Lambdas

  • Dates and times

  • File Input and Output

  • Regular Expression

  • Classes, Modules, and Inheritance

and more!

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!

Bạn sẽ học được gì

Yêu cầu

Nội dung khoá học

33 sections

Introduction and Installation

20 lectures
Welcome to Ruby [SLIDES]
08:09
Object-Oriented Programming [SLIDES]
05:41
Ruby Installation Instructions
00:55
macOS - Access and Work with the Terminal
09:46
macOS - Install XCode Command Line Tools
03:22
macOS - Install Homebrew
03:05
macOS - Install rbenv
07:39
macOS - Install Ruby
06:38
macOS - Install VSCode Text Editor
04:42
Windows - Access and Work with PowerShell
09:26
Windows - Figure Out if System is 32-bit or 64-bit
01:19
Windows - Install Ruby
06:36
Windows - Install VSCode Text Editor
03:39
Install VSCode Extensions
04:51
Add VSCode to Your System PATH
01:05
Download Course Materials
01:56
Write First Ruby File and Run with Code Runner
08:55
Write First Ruby File and Run with Terminal or PowerShell
04:31
Interactive Ruby (IRB)
05:04
Section Review [SLIDES]
03:52

Getting Started

13 lectures
The puts Method
10:09
Escape Characters
08:13
The print Method
03:08
The p Method
06:22
Comments
06:30
Outputting Text
1 question
Multiline Comments
02:12
Integers and Floating Point Numbers
04:14
Basic Arithmetic in Ruby
08:47
String Concatenation
03:30
Intro to Exceptions: TypeError
08:01
Output and Arithmetic
10 questions
Section Review [SLIDES]
07:09

Variables

10 lectures
Variables [SLIDES]
09:43
Declaring Variables
11:07
Variable Declaration
1 question
Coding Exercise Solution: Variable Declaration
00:13
Exceptions: NameError
03:14
Parallel Variable Assignment
03:41
Swapping Variable Values
03:54
Assignment Shortcuts
07:47
Constants
05:36
Section Review [SLIDES]
06:14

Object Methods

13 lectures
Intro to Object Methods
11:21
Integer Methods
02:59
Intro to Object Methods
1 question
Coding Exercise Solution: Intro to Object Methods
00:12
Exceptions: NoMethodError
02:25
Method Chaining
05:39
The inspect Method
03:43
The nil Object
06:07
String Interpolation
09:21
The gets Method
11:25
The class Method
07:26
Methods to Convert Objects
10:31
Section Review [SLIDES]
09:25

Booleans and Predicate Methods

10 lectures
Intro to Booleans
07:36
The Equality Operator
10:32
The Inequality Operator
03:48
Mathematical Comparisons
03:14
Predicate Methods
05:01
Methods with Arguments (include?)
08:30
Methods with Multiple Arguments
05:49
Arithmetic Methods
06:16
Float Methods
06:31
Section Review [SLIDES]
04:16

Methods

13 lectures
Intro to Methods
10:13
Parameters and Arguments
08:21
Multiple Method Parameters
03:00
Manipulating Arguments
03:16
Local Variables
09:22
Return Values I
05:24
Return Values II: Implicit Return Values
07:53
Methods
1 question
Coding Exercise Solution: Methods
04:47
Optional Parameters and Default Arguments
05:07
Optional Parameters and Default Arguments
1 question
Coding Exercise Solution: Optional Parameters and Default Arguments
06:56
Section Review [SLIDES]
07:57

Blocks

9 lectures
Introduction to Blocks with the times Method
09:04
Intro to Blocks
1 question
Coding Exercise Solution: Intro to Blocks
03:59
Block Variables
08:01
Block Variables
1 question
Coding Exercise Solution: Block Variables
03:44
The upto and downto Methods
07:54
The step Method
04:08
Section Review [SLIDES]
04:49

Conditionals

22 lectures
The if Statement
07:56
Predicate Methods in if Statements
02:42
Truthiness and Falsiness
06:52
if Statements
1 question
Coding Exercise Solution: if Statements
06:54
if and elsif
10:46
if and else
07:49
if, else and elsif
1 question
Coding Exercise Solution: if, else and elsif
06:51
Multiple Conditions with And Operator (&&)
08:12
Multiple Conditions with Or Operator (||)
07:40
Multiple Conditions
1 question
Coding Exercise Solution: Multiple Conditions
07:19
Parentheses Precedence
09:12
Nested if Statements
08:44
Ternary Operator
07:09
Call A Method from Another Method
08:06
The case Statement
10:43
The unless Keyword
09:31
Statement Modifiers
04:34
Conditional Assignment Operator
06:39
Section Review [SLIDES]
14:25

Strings I

20 lectures
Single Quotes vs Double Quotes
06:29
Multiline Strings
04:16
String Comparisons
07:43
String Concatenation Options
11:38
The length and size Methods
02:09
Length and Comparison
1 question
Coding Exercise Solution: Length and Comparison
04:59
Intro to Index Positions
10:04
Index Positions
1 question
Coding Exercise Solution: Index Positions
05:01
Extract Multiple Characters from a String
05:53
String Slicing
1 question
Coding Exercise Solution: String Slicing
03:35
Overwrite Characters in String
06:33
The insert Method
04:05
The empty? and nil? Methods
03:14
Case Methods
04:44
The reverse Method
01:05
Bang Methods on Strings
07:36
Section Review [SLIDES]
10:31

Loops

9 lectures
The while Loop
10:21
The until Loop
05:51
FizzBuzz Problem
03:23
FizzBuzz Solution
12:03
The next Keyword
09:39
The break keyword
04:50
Recursion I
16:28
Recursion II
16:50
Section Review [SLIDES]
05:34

Debugging

5 lectures
Install debug Gem
01:08
The debugger and binding.break Methods
14:43
The step Keyword
08:51
The info Keyword
07:41
Section Review [SLIDES]
05:33

Arrays I: Creation and Access

23 lectures
Introduction to Arrays
09:43
Nested Arrays
05:01
Shorthand %w Syntax to Create An Array of Strings
02:16
Creating Arrays
1 question
Coding Exercise Solution: Creating Arrays
02:18
Access and Overwrite Array Element by Index Position
09:00
Access Single Array Element with the fetch Method
03:10
Indexing into Arrays
1 question
Coding Exercise Solution: Indexing into Array
05:54
Access and Overwrite Multiple Array Elements with Bracket Syntax
07:19
Access Multiple Array Elements with the values_at Method
04:33
The first and last Methods
03:03
The length, size, and count Methods
03:15
Extracting Multiple Array Elements
1 question
Coding Exercise Solution: Extracting Multiple Array Elements
17:42
The empty? and nil? Methods
03:07
Equality and Inequality Operators with Arrays
03:54
The Spaceship Operator
06:37
The push Method and Shovel Operator
03:47
The insert Method
03:28
The pop Method
03:50
The shift and unshift Methods
04:19
Section Review [SLIDES]
08:33

Ranges

8 lectures
Intro to Ranges
10:08
Alphabetical Ranges
04:14
The include? and member? Method on Ranges
04:04
Random Numbers in Ruby (rand Method)
06:03
Extract Multiple Characters or Elements
07:17
The case Statement with Ranges
08:08
Convert Ranges to Arrays with to_a Method
03:18
Section Review [SLIDES]
04:21

Arrays II: Iteration and Various Methods

28 lectures
The each Method
08:31
Filtering with the each Method
09:08
each within each
10:09
The for Loop
09:00
each Method
1 question
Coding Exercise Solution: The each Method
14:49
The each_with_index Method
04:35
each_with_index
1 question
Coding Exercise Solution: each_with_index Method
05:25
Iteration over Array with while or until Loops
09:13
The map and collect Methods
07:55
The select and reject Methods
10:01
The partition Method
08:14
Filtering Methods
1 question
Coding Exercise Solution: Filtering Methods
09:18
The any? and all? Methods
05:02
The any? and all? Methods
1 question
Coding Exercise Solution: The any? and all? Methods
06:57
The find and detect Mthods
03:47
The index and find_index Methods
02:22
The include? Method
03:04
The max and min Methods
02:32
Custom Max
1 question
Coding Exercise Solution: Custom Max
09:32
Unlimited Method Arguments/Splat Argument
12:46
Unlimited Method Arguments
1 question
Coding Exercise Solution: Unlimited Method Arguments
03:35
Section Review [SLIDES]
08:40

Strings II

19 lectures
The split Method on a String
06:48
The split Method
1 question
Coding Exercise Solution: The split Method
08:21
The chars and each_char Methods
04:01
Custom Split
1 question
Coding Exercise Solution: Custom Split
16:50
The join Method on an Array
03:44
Custom Join
1 question
Coding Exercise Solution: Custom Join
09:50
The count Method on a String
02:39
Custom Count
1 question
Coding Exercise Solution: Custom Count
03:15
The index and rindex Methods
06:26
Custom Index
1 question
Coding Exercise Solution: Custom Index
12:48
The delete Method
01:56
Custom Delete
1 question
Coding Exercise Solution: Custom Delete
05:35
Section Review [SLIDES]
04:05

Object References and Copies

4 lectures
Object References
07:42
The dup and clone Methods
05:15
The freeze Method
06:36
Passing Objects to Mutating Methods
08:48

Hashes I

20 lectures
Intro to Hashes
09:23
Populate Hash and Extract Values from Keys
12:06
Intro to Symbols
09:32
Symbols as Hash Keys
06:56
Ruby 3.1 Shorthand Hash Syntax
06:50
Add a New Key-Value Pair to Hash
05:31
Creating a Hash
1 question
Coding Exercise Solution: Creating a Hash
04:54
Iterating over a Hash
07:52
Check for Inclusion in a Hash
05:29
The select and reject Methods on a Hash
07:07
Convert Hash to Array and Vice Versa
05:11
The delete Method
02:46
The merge Method
04:54
Create Hash with Default Value (Hash.new)
04:13
Word Frequency
1 question
Coding Exercise Solution: Word Frequency
13:22
Reference Problems with Hash.new
20:48
Section Review [SLIDES]
10:14
Hashes
7 questions

Arrays III: Bonus Methods

13 lectures
The reverse Method
02:14
The sort Method
03:09
The uniq Method
01:50
The compact Method
02:58
The inject and reduce Methods
18:07
The flatten Method
03:09
The sample Method
03:15
Multiply an Array with an Asterisk
01:34
Merge Arrays and Exclude Duplicates
03:04
Remove Array Items that Exist in Another Array
02:31
Array Intersection with the Ampersand Symbol
02:44
Section Review [SLIDES]
04:46
Arrays III - Bonus Methods
8 questions

Blocks, Procs, and Lambdas

15 lectures
Review of Blocks
04:45
The yield Keyword
05:10
Block Return Values
04:59
The block_given? Method
04:29
Block Parameters
10:16
A Custom each Method
11:02
Custom Map Method
1 question
Coding Exercise Solution: Custom Map Method
10:03
Procs
10:32
More Proc Examples
09:23
Methods with Proc Parameters
18:09
Intro to Lambdas
07:45
Differences between Lambdas and Procs
15:21
Section Review [SLIDES]
12:47
Blocks, Procs, and Lambdas
5 questions

Classes I: The Basics

29 lectures
Intro to Classes
14:44
Create a Class
08:04
Create a Class
1 question
Coding Exercise Solution: Create a Class
02:33
The new Method on Ruby’s Native Objects
03:24
Instance Variables and the initialize Method
16:33
Declare Instance Variables
1 question
Coding Exercise Solution: Declare Instance Variables
02:45
Instance Methods
12:57
Instance Methods
1 question
Coding Exercise Solution: Instance Methods
03:20
Override the to_s Method
06:45
The to_s Method
1 question
Coding Exercise Solution: The to_s Method
02:37
The self Keyword
11:14
Omitting the self Keyword
11:03
Getter Methods (Read Methods)
06:12
Getter Methods
1 question
Coding Exercise Solution: Getter Methods
03:24
Setter Methods (Write Methods)
08:57
Setter Methods
1 question
Coding Exercise Solution: Setter Methods
06:26
The attr_reader and attr_writer Methods
06:18
The attr_accessor Method
01:51
Add Parameters to initialize Method
07:41
Add Parameters to initialize Method
1 question
Coding Exercise Solution: Add Parameters to Initialize Method
04:01
Section Review [SLIDES]
09:50
Classes I
6 questions

Classes II

17 lectures
Private Methods
08:55
Protected Methods
12:15
Add Validation to Setter Methods
07:58
Add Validation to Setter Methods
1 question
Coding Exercise Solution: Add Validation to Setter Methods
05:43
Derived Values
07:45
Class Methods
11:45
Alternative Class Method Syntax
05:54
Class Variables
07:50
Class Methods and Class Variables
1 question
Coding Exercise Solution: Class Methods and Class Variables
10:13
Building a Class Over Time
06:30
Monkey Patching
10:03
Monkey Patching
1 question
Coding Exercise Solution: Monkey Patching
05:06
Section Review [SLIDES]
08:13
Classes II
6 questions

Keyword Arguments

9 lectures
Hash as initialize Argument
13:06
Required Keyword Arguments
09:55
Optional Keyword Arguments
03:59
Positional Arguments and Keyword Arguments
05:11
New Version of Candidate Class with Keyword Arguments
05:25
Keyword Arguments
1 question
Coding Exercise Solution: Keyword Arguments
05:31
Section Review [SLIDES]
04:04
Keyword Arguments
5 questions

Classes III: Inheritance

14 lectures
Intro to Inheritance [SLIDES]
06:02
Create Subclasses
09:17
The superclass and ancestors Class Methods
10:01
Check Inheritance Hierarchy of our Subclasses
08:09
The is_a? and instance_of? Methods
05:07
The methods Method
07:34
Exclusive Instance Methods in Subclasses
04:48
Override Methods in a Subclass
08:45
The super Keyword I
13:17
The super Keyword II
10:54
Defining Equality
07:40
Duck Typing
13:11
Section Review [SLIDES]
10:16
Inheritance
9 questions

Input and Output

8 lectures
Read from a Text File
07:17
Write to a Text File
09:43
Rename and Delete a File
04:56
Command Line Arguments (ARGV)
06:49
Load A Ruby File with load Method
09:32
The require and require_relative Methods
10:32
Section Review [SLIDES]
08:20
Input and Output
6 questions

Modules and Mixins

17 lectures
Intro to Modules
10:40
Modules with Identical Methods
05:18
Import Modules into the Current File
04:55
The Math Module
05:50
The uri and net/http Modules
11:16
The Enumerable Mixin
24:50
The Comparable Mixin
16:17
Mixing in Our Own Module
08:01
The ancestors Method in Depth
07:11
The prepend Keyword
03:30
The extend Keyword
04:43
Mixing in Multiple Modules
03:49
Multiple Declarations for the Same Module
07:02
Modules within Modules
08:30
Section Review [SLIDES]
09:35
Modules and Mixins
4 questions
Modules and Mixins
8 questions

Sets

7 lectures
Intro to Sets
06:20
Add and Delete Items from Set
03:01
Explore set.rb on GitHub
03:41
Sets
1 question
Coding Exercise Solution: Sets
06:44
Section Review [SLIDES]
02:43
Sets
5 questions

Datetimes

10 lectures
The Date Object
05:49
The Time Object
08:02
Add or Subtract Time
04:41
The Comparable Methods on a Time Object
05:27
Convert Time Object to Formatted String
06:36
The parse and strptime Methods
11:28
Datetimes
1 question
Coding Exercise Solution: Datetimes
08:06
Section Review [SLIDES]
06:29
Datetimes
5 questions

Regular Expressions

12 lectures
Intro to Regular Expressions
08:46
The scan Method
04:45
The Digit Symbol
09:21
The Wildcard Symbol
09:10
Anchors
05:27
Exclude Characters
05:15
The sub and gsub Methods with Regular Expressions
07:58
Rubular.com
02:30
Regular Expressions
1 question
Coding Exercise Solution: Regular Expressions
06:50
Section Review [SLIDES]
05:11
Regular Expressions
6 questions

Exceptions

11 lectures
The begin and rescue Keywords
10:37
Catching Error Object
09:26
The retry Keyword
07:25
The ensure Keyword
04:17
Using begin and rescue at Top Level
09:24
The raise Keyword
08:32
Custom Exceptions
11:15
Exceptions
1 question
Coding Exercise Solution: Exceptions
07:59
Section Review [SLIDES]
09:39
Exceptions
8 questions

Testing with Minitest

8 lectures
Intro to Testing
16:36
Testing a Class
10:21
The setup and teardown Methods
12:00
Assert Inclusion
06:42
Assert Error was Raised
09:12
Final Argument to Assertion Methods
05:52
Section Review [SLIDES]
10:01
Minitest
7 questions

Reading and Writing Documentation

4 lectures
Reading Documentation
08:52
Install rdoc
00:07
Use RDoc to Generate Documentation
10:24
Reading and Writing Documentation
3 questions

Gems

5 lectures
Intro to Ruby Gems
17:55
Updating Gem Program
03:01
Installing Faker Gem
16:02
Use Faker Gem
08:25
Gems
3 questions

Conclusion

2 lectures
Conclusion
02:03
Bonus!
00:21

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.