technifyed

Packt via Coursera

Ruby Fundamentals and Basic Programming Concepts

4.612 ratings at Coursera

Overview

Updated in May 2025.

This course now features Coursera Coach!

A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course.

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.

-The course then dives into the core aspects of Ruby, including object-oriented programming (OOP), teaching you to create and manipulate objects and understand how Ruby’s OOP enhances code reusability and readability.

-Essential programming concepts like variables, methods, and control structures are also covered, ensuring a comprehensive understanding of writing efficient Ruby code.

-Advanced topics such as predicate methods, blocks, and conditionals are explored in the final sections, enabling you to write complex and functional Ruby programs.

-Practical examples and exercises are provided to tackle real-world programming challenges.

This course is ideal for aspiring programmers, software developers, and tech enthusiasts, including those with experience in other languages looking to add Ruby to their skill set.

Syllabus 8

  1. Introduction and Installation 2 hours

    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…

  2. Getting Started 1.5 hours

    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 h…

  3. Variables 1.5 hours

    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 con…

  4. Object Methods 1.5 hours

    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 con…

  5. Booleans and Predicate Methods 1.5 hours

    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…

  6. Methods 1.5 hours

    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 p…

  7. Blocks 50 minutes

    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…

  8. Conditionals 4 hours

    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 st…

Advantages and disadvantages

Advantages

  • Structured courses with graded quizzes, assignments and deadlines you can reset.
  • A shareable certificate from the university or company when you pay.
  • Financial aid is often approved for students in India (apply 15 days before you need it).
  • Covers niche tools that universities don't teach.
  • Self-paced: start any time.
  • A clear syllabus (8 parts) you can see before you start.

Disadvantages

  • Paid after a 7-day free trial (Coursera Plus or per course).
  • Some courses can be audited for free, but graded work and certificates need payment.
  • Many courses are produced quickly from slides and screen recordings; read the reviews first.

Some points apply to every course of this kind; see how we rank.

This course is paid. Here is how to take it for free

  • Free trials: You can start a 7-day free trial for many individual courses, Specializations, or a Coursera Plus subscription to test full course features. Cancel before the seventh day if you do not want to be charged.
  • Financial aid: If you cannot afford the fee for a certificate, you can apply for financial aid through the link on the course home page by filling out an application about your background and goals.

Taught by

  • Packt - Course Instructors

Packt is in Tier 5: mass-produced or unclear of our institution ranking (40/100). Thousands of courses turned out quickly; check reviews first.

Similar courses

Compare these

Massachusetts Institute of Technology · YouTube

MIT 6.01SC Introduction to EECS I

Instructor: Dennis Freeman, Kendra Pugh This course provides an integrated introduction to electrical engineering and computer science, including modern software engineering, linear systems analysis, electronic circuits, and decision-making. The lecture videos provide an overview of each topic, whi…

Free video27 videos, 17 hours

Harvard University · YouTube

CS50's Web Programming with Python and JavaScript (CS50W) 2020

This is CS50W, CS50's Web Programming with Python and JavaScript. Register for free at https://cs50.edx.org/web. Slides and source code at https://cs50.harvard.edu/web. This course picks up where Harvard University’s CS50 leaves off, diving more deeply into the design and implementation of web apps…

Free video10 videos, 14 hours

Harvard University · YouTube

CS50's Web Programming with Python and JavaScript

Learning objectives This course picks up where Harvard University's CS50 leaves off, diving more deeply into the design and implementation of web apps with Python, JavaScript, and SQL using frameworks like Flask, Django, and Bootstrap. Topics include database design, scalability, security, and user…

Free video13 videos, 20 hours

Harvard University · edX

CS50's Introduction to Computer Science

An introduction to the intellectual enterprises of computer science and the art of programming.

Free to audit12 weeks, 5 - 14 hours per week

Harvard University · YouTube

CS50's Mobile App Development with React Native 2018

Learning objectives This course picks up where Harvard University's CS50 leaves off, transitioning from web development to mobile app development with React Native, a popular open-source framework maintained by Facebook that enables cross-platform native apps using JavaScript without Java or Swift.…

Free video14 videos, 22 hours

Harvard University · edX

CS50's Introduction to Programming with Python

An introduction to programming using Python, a popular language for general-purpose programming, data science, web programming, and more.

Free to audit10 weeks, 3 - 6 hours per week