Ruby (Part 2 of 6): Variables and Data Structures

Ruby (Part 2 of 6): Variables and Data Structures

Biz Library
Updated Feb 04, 2020

In this course, Ruby expert Jordan Hudgens examines the basic building blocks of the program and dives deep on its various data structures such as arrays. He will also discuss how Ruby uses dynamic typecasting and teach you how to use the struct class to encapsulate data with methods and behaviors. With a better understanding of data structures in place, Hudgens will then walk you through how to automate tasks in Ruby such as calculating sums.

Lesson 1:

  • Dynamic Data Types
  • Demo: Declaring Variables
  • Variable Type Casting
  • Demo: Type Casting
  • Variable Scope
  • Demo: Variable Scope.

Lesson 2:

  • Arrays
  • Demo: Arrays
  • Structs
  • Demo: Structs.

Lesson 3:

  • Hashes
  • Demo: Create a Hash
  • Hash Methods
  • Demo: Hash Methods.

Lesson 4:

  • While Loop
  • Demo: While Loop
  • Each Loop
  • Demo: Each Loop
  • Generic Loop
  • Demo: Generic Loop.

Lesson 5:

  • Map and Collect
  • Demo: Map
  • Inject and Reduce
  • Demo: Inject
  • Permutation
  • Demo: Permutation.