This Ruby programming course starts by guiding you through the setup on different operating systems, covering macOS and Windows, to build a solid foundation. You will learn command-line navigation, tool installation, and writing your first Ruby code.
Ruby Fundamentals and Basic Programming Concepts
This course is part of Learn to Code with Ruby Specialization
Recommended experience
What you'll learn
Install and configure Ruby on various operating systems.
Apply object-oriented programming principles in Ruby.
Write and debug Ruby programs using various methods and control structures.
Utilize advanced Ruby features to develop complex applications.
Skills you'll gain
Details to know
Add to your LinkedIn profile
September 2024
4 assignments
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
There are 8 modules in this course
In this module, we will introduce you to the Ruby programming language, its historical context, and its comparison with other languages. You'll learn how to set up the development environment on macOS and Windows, including installing essential tools like XCode, Homebrew, rbenv, and VSCode. By the end, you'll write and run your first Ruby program using both the Terminal and PowerShell.
What's included
17 videos2 readings
In this module, we will delve into fundamental programming concepts using Ruby. You'll learn about different methods for outputting text, such as 'puts', 'print', and 'p', and how to use escape characters to format strings. We will also cover basic arithmetic operations, string concatenation, and handling exceptions, providing a solid foundation for further Ruby programming.
What's included
11 videos
In this module, we will focus on variables in Ruby, teaching you how to declare and use them effectively. You'll learn about variable scope, parallel assignment, and swapping values. We will also introduce constants and cover common exceptions like 'NameError', ensuring you can handle variables confidently in your programs.
What's included
8 videos1 assignment
In this module, we will explore object methods in Ruby. You'll learn how to call methods on different objects, chain methods for efficiency, and use the 'inspect' method for debugging. We'll also cover the concept of the 'nil' object, string interpolation, user input with the 'gets' method, and converting objects between types, providing a comprehensive understanding of Ruby object methods.
What's included
11 videos
In this module, we will introduce Booleans and predicate methods in Ruby. You'll learn about the equality and inequality operators, mathematical comparisons, and how to use predicate methods that return Boolean values. We will also cover methods with arguments, including handling multiple arguments and specific methods for Float objects, enhancing your ability to write logical and efficient Ruby code.
What's included
10 videos
In this module, we will focus on defining and using methods in Ruby. You'll learn how to create methods with parameters, pass arguments, and manipulate these within your methods. We'll discuss the scope of local variables, how to return values explicitly and implicitly, and how to set up optional parameters with default arguments, equipping you with essential skills for creating reusable and modular code.
What's included
9 videos1 assignment
In this module, we will introduce blocks in Ruby, focusing on their use with methods. You'll learn how to declare block variables and pass data between methods and blocks. We will also cover iteration methods such as 'upto', 'downto', and 'step', enabling you to write concise and powerful loops in your Ruby programs.
What's included
5 videos
In this module, we will explore conditionals in Ruby, teaching you how to create branching logic with if, elsif, and else statements. You'll learn to combine conditions using logical operators, set precedence with parentheses, and nest if statements for complex logic. We will also cover the case statement and the ternary operator, providing tools to write clean and efficient conditional logic in your Ruby programs.
What's included
16 videos1 reading2 assignments
Recommended if you're interested in Software Development
Packt
Coursera Project Network
Why people choose Coursera for their career
New to Software Development? Start here.
Open new doors with Coursera Plus
Unlimited access to 7,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.