Ruby Essential Training Part 1: The Basics
Offered By: LinkedIn Learning
Course Description
Overview
Learn the fundamentals of Ruby, the popular object-oriented programming language, starting with object types, control structures, code blocks, and defining custom methods.
Syllabus
Introduction
- Learn the basics of Ruby
- Get the most out of the exercise files
- Introducing Ruby
- Install Ruby on a Mac
- Install Ruby on Windows
- Using Ruby
- Interactive Ruby Shell (IRB)
- Documentation
- Objects
- Variables
- Numbers: Integers
- Numbers: Floats
- Strings
- Strings: Escaping and interpolation
- Arrays
- Array methods
- Hashes
- Symbols
- Booleans
- Ranges
- Constants
- Nil
- Challenge: Roman numerals
- Solution: Roman numerals
- About control structures
- Conditionals: if, else, elsif
- Conditionals: unless
- Conditionals: case
- Conditionals: Shorthand operators
- Loops
- Iterators
- Challenge: Blanket patterns
- Solution: Blanket patterns
- Best practices
- Exit a running script
- Input and output
- Challenge: Guessing game
- Solution: Guessing game
- Enumerables
- What is a code block?
- Find methods
- Map methods
- Inject methods
- Sort methods
- Merge methods
- Challenge: Ruby blanks
- Solution: Ruby blanks
- Define and call methods
- Variable scope
- Arguments
- Argument default values
- Return value
- Return multiple values
- Challenge: Pig Latin
- Solution: Pig Latin
- Next steps
Taught by
Kevin Skoglund
Related Courses
Initiation à la programmation (en Java)École Polytechnique Fédérale de Lausanne via Coursera Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera 計算機程式設計 (Computer Programming)
National Taiwan University via Coursera Code Yourself! An Introduction to Programming
University of Edinburgh via Coursera ¡A Programar! Una introducción a la programación
University of Edinburgh via Coursera