
Ruby Programming Language
Learn Programming Basics with Ruby
What you'll learn
- Understand the idea of programming with Ruby
- Learn the rules of writing code in Ruby
- Use loop statements
- Use statements that control the program flow
- Create and use functions
- Understand object-oriented programming
- Handle program errors
About this course
This course teaches the basics of programming with Ruby, a programming language used in software and website development. It starts with highlights from the course and an introduction that explains the idea of programming with Ruby, then the rules of Ruby programming. Next you learn loop statements and statements that control the flow of the program, then functions across several lessons. You move on to object-oriented programming, then program errors and how to handle them, and you finish with a lesson on learning the principles of Ruby step by step, with add-ons to download. The course suits every beginner who wants to enter the world of programming with an easy language, and it needs no previous experience, because all you need is a computer and enthusiasm to learn. Afterward you will be able to write simple Ruby programs that use loops, control, functions and objects, and handle the errors that appear while running, and you will be ready to keep learning web development. The lessons are divided into short, simple parts, and each part explains one idea clearly and then applies it, so you learn the language gradually without boredom or complexity, and you can return to any lesson whenever you like to review what you forgot.
Expected outcomes
- Develop programming skills in Ruby
- Create dynamic web applications
- Utilize multiple libraries and frameworks
- Understand object-oriented programming basics
- Improve code writing efficiency
- Apply programming concepts practically
Learner reviews
Course content
1Introduction to the World of Ruby
5 lectures
- Course HighlightsExplains classes in Ruby: grouping related functions inside a class, creating an object from it with new, calling the class methods through the object, and creating several objects from the same class.5:07
- Introduction (1)Presents the contents and structure of the course: an introduction to Ruby and tool setup, then variables, loops and conditions, functions, object-oriented programming with classes, and finally program errors.5:30
- Introduction (2)Introduces the Kotlin language: it is Google's official language for Android apps, open source and easy, then the tools needed to run its programs and how to download and install the JDK.13:19
- Introduction (3)Explains the tools for writing Ruby: the Ruby library and an IDE, then the alternative of writing and running programs directly on online compiler websites without installing anything.7:22
- Programming Concept Using RubyIntroduces the first steps of programming in Ruby: creating a new file, the puts print command, writing comments, repeating a command several times, and the idea of a variable that stores and prints text.8:23
2Ruby Programming Rules
2 lectures
- Programming Rules in Ruby (1)Explains basic Ruby rules: a variable as a name holding a value, declaring it with the equals sign and printing it inside text, its scope at class or global level, and numeric data types.21:28
- Programming Rules in Ruby (2)Explains taking values from the user instead of hard-coding them, and converting the input to an integer or a float before using it in equations, with examples such as addition, subtraction, averages and net salary.8:28
3Loops and Control Statements
3 lectures
- Loop Statements (1)Explains the for loop in Ruby: repeating a command several times, iterating over a range from one number to another, and examples such as a counter, summing and multiplying numbers.15:13
- Loop Statements (2)Continues loops in Ruby: the while loop driven by a condition rather than a count, how it differs from a loop that tests after executing, using until, and stopping the loop on a negative value.13:45
- Control Statements in Program FlowExplains control flow statements in Ruby: the if, else and elsif conditions, applied to a student grade example to decide pass or fail and assign a rating with multiple conditions.19:10
4Functions
3 lectures
- Functions (1)Explains functions in Ruby: splitting a program into functions written once and called many times, creating a function with def, then adding parameters and default values.15:11
- Functions (2)Continues functions in Ruby: functions with several parameters such as computing an average, default parameter values, returning a value with return instead of printing it, and examples such as grading a score.13:48
- Functions (3)Continues functions in Ruby: a function taking an unlimited number of parameters collected into an array and looped over, then a review of simple functions, parameters and return values.11:51
5Goal-Oriented Programming
1 lectures
- Objective-Oriented ProgrammingIntroduces object-oriented programming: the difference between a class and an object, class properties and functions through a car example, and the constructor that gives an object its initial values.23:37
6Program Errors and Debugging
1 lectures
- Program Errors and HandlingExplains program errors and handling them: syntax errors, logic errors, and runtime errors such as division by zero, and why a programmer should anticipate and handle them.9:41
7Books
1 attachments
- Learning Ruby Basics Step by Step
8Extensions
1 attachments
- Download Attachments from Here
Instructor

Eng. Azab Mohamed Azab



