
Download source files here
Explore IRB, the Ruby interactive console, across macOS and Windows. Learn basic operations like strings, numbers, floats, variables, puts, concatenation, and arrays.
Discover Ruby gems, the extensions for Ruby and Rails, and learn to search RubyGems.org, install with gem install amazon_s3 or Rails, and configure them in Rails projects.
Explore Ruby data types, including variables, constants, and hashes—like dictionaries—to store data effectively, with a capstone project and a provided solution.
Explore variables and constants in Ruby, including snake_case naming, uppercase constants, and print versus puts with newline handling and mixing strings and numbers.
In Ruby programming fundamentals, learn arrays by declaring string arrays, accessing elements by index (including negatives), mutating with push and delete, and joining, combining, or subtracting arrays.
Explore ruby hashes, similar to dictionaries in other languages, by creating them with hash new or as literal key-value pairs. Access by key, retrieve values, and use the hash rocket.
Capture user input in Ruby by prompting with puts, reading with gets, and trimming newline with chomp; convert to an integer or float when performing calculations and echo the result.
Guiding Ruby learners, this module project prompts for a name and street address, splits the input, and maps the street letter to a block meaning via a hash.
Recap essential Ruby data types by revisiting variables, constants, hashes, and arrays; explain capturing user input, writing comments, and the module project.
Explore loops and conditionals in Ruby to control flow and choose code paths based on conditions, then learn ternary conditionals, predicates, and maps, with a module project and solution guidance.
Explore Ruby conditionals using if, else if, and else with == checks and end statements. The lecture demonstrates color-based car decisions, multiple variables, and truthiness rules.
Explore ternary conditionals in Ruby, a shorthand for if else that lets you write one-line tests with a question mark and colon, using puts for output.
Learn to replace chained if-else statements with a Ruby case statement, using reverse, upper case, and both configurations, then handle multiple grades in a single when clause.
Explore Ruby predicates and predicate methods, using question mark, with between and start with examples, and test a dictionary, arrays, keys, emptiness, nil, and numeric types.
Master Ruby looping with while, until, and unless by building counters, arrays, and outputs; apply push, increment, and loop modifiers to count up and down, and explore conditionals.
Explore collect, an alias for map, to transform array elements with a block and return a new array. Compare with each to see collect's manipulations versus each's display-only iteration.
Discover ruby symbols as immutable, memory-efficient hash keys that are reused instead of recreated. See how to use symbols in hashes, inspect object IDs, and apply symbol methods.
Build a tax table using conditionals, case statements, user input, and constants. Prompt for status and salary to output the corresponding tax rate.
Build a ruby module project solution that uses constants and gets.chomp to capture salary and status, validates input, and uses a case and while loop for tax computation.
Explore loops, including while and each loops, and conditionals like case statements, then work with maps and symbols, concluding with the module project.
Create Ruby classes, define methods, and instantiate objects to structure data and control flow. Explore predicates, lambdas, modules, and file I/O as you build the course project.
Create a Ruby class as a template for object instances, create a customer class with getters and setters, and instantiate multiple customers with unique ids.
demonstrates class inheritance by defining a vehicle parent and car and motorcycle subclasses, sharing methods like accelerate and brake while adding subclass-specific features and initializing with make and model.
Define and call Ruby methods to modify a balance—add to balance, subtract from balance, print results, and return the total, with default parameters and variable-length inputs via rest and sum.
Create predicate methods in Ruby to evaluate truthiness, distinguishing true, false, and nil; build a light switch class with flips and a flip state, printing on or off.
Explore Ruby variable scope in depth, from global and instance variables to local scope inside loops and methods, and see how assignments persist beyond loops and across the class.
Learn how to attach methods to an existing object instance in Ruby, and see methods that start and stop a car on the instance, not the class.
Master blocks and yield in Ruby, using braces or do-end, and define custom my_each to iterate arrays. Sort arrays with blocks to determine order, handling numeric and string comparisons.
Explore how yield injects blocks into methods, showing single and multiple parameters, block scope, and how variables inside and outside the block behave.
Learn how to use lambda functions as shorthand anonymous methods in Ruby, create procs, and pass lambdas to methods to perform computations like squaring numbers with arrow syntax.
Seamlessly perform file I/O in Ruby by reading and writing text files: open files, read lines in a loop, overwrite versus append, and use blocks and arrays to manage data.
Read data from a text file, instantiate a car class for each line, and store six cars in an array, then apply color changes like two-door cars turning red.
Create a car class with doors, cylinders, and color attributes, read and parse a data file into car objects, then apply conditionals to assign colors and produce processed results.
Recaps Ruby fundamentals by reviewing classes, methods, and attaching a method to an inaccessible class, and covers predicates and lambdas for data manipulation and file I/O in the module project.
The "Ruby Programming Fundamentals" course is designed for beginners who want to learn the basics of programming using the Ruby language. Whether you're new to coding or looking to expand your skills, this course offers a solid foundation to help you start your journey as a Ruby developer.
Unlike other programming languages that require lengthy code or complex syntax, Ruby stands out for its simplicity and productivity. It offers all the performance of more complex languages without the steep learning curve. Ruby is easy to read, write, and learn, making it the perfect choice for beginners. Additionally, Ruby is widely used by companies like Twitter and Kickstarter, making it a valuable skill in today’s tech world.
Ruby is an object-oriented, general-purpose programming language created by Yukihiro Matsumoto in the 1990s. Its focus on simplicity, readability, and developer enjoyment makes it an ideal starting point for those new to programming. Ruby is particularly popular in web development, especially when paired with the Rails framework, and is in high demand across many industries.
This course requires no prior programming experience. Basic computer skills and familiarity with concepts like variables and conditionals will be helpful but are not mandatory. By the end of this course, you’ll have the knowledge and skills to write simple Ruby programs and begin exploring more advanced topics with confidence.