Data Iteration with Ruby 2
Ruby is powerful language with syntax that is simple, easy to read and similar to English language. This makes it an excellent language for beginners. This course will teach you how to write clean and flexible code in Ruby.
What you'll learn
Coding in any language requires an understanding of fundamental programming constructs like Blocks, modules and behavior overriding. Ruby is an interpreted, high-level, general-purpose programming language and supports procedural, functional and object-oriented programming paradigms. In this course, Data Iteration with Ruby, you’ll gain the ability to write clear, concise code that is also adaptable to change. First, you’ll explore how to call and write blocks. Next, you’ll discover how to reduce code duplication with Procs and Lambdas. Finally, you’ll learn how to use and write your own modules. When you’re finished with this course, you’ll have the skills and knowledge of Data Iteration in Ruby needed to write correct, concise, yet easily understandable code that would be a vital part of your programming toolbox.
Table of contents
- Version Check 0m
- Course Outline and Environment Setup 3m
- Introducing Blocks 2m
- Writing a Block 3m
- Writing a Block Method 2m
- Block with Arguments 1m
- Calling a Block with the Call Method 1m
- Demo: Using the Yield Keyword 3m
- Using Blocks with Built-in Types 5m
- Demo: Implementing a Coin Flip with Blocks 3m
- Module Summary 1m