Live Session: Beginning Ruby Part 2

Note: This article was originally published on the Launch School blog on 2016–02–26

This is part 2 of our live session series on “Beginning Ruby”. This series is not an introduction to Ruby or programming. Instead, it’s a focused discussion on topics that many people new to programming get tripped up on. To get the most out of this series, you should already have some familarity with basic programming concepts and have been dabbling a bit in Ruby. Those completely new to programming are welcome to watch, but just be aware that you’ll need a little bit of hands on experience first to fully appreciate the discussion.

In this video, we’ll talk about:

  • Pass by reference vs pass by value
  • Variables as pointers
  • Method return value vs side effects

See the entire Beginning Ruby Series

  • Part 1 (syntactical sugar, where code comes from, and variable scope)
  • Part 2 (pass by reference/value, variables as pointers, method side-effects vs return value)
  • Part 3 (Arrays and Hashes, common mistakes when using select and map, and the Enumerable module)

The below video is Part 2 and lasts about an hour.

Erratum We imply that the object referenced by the str variable is mutated with the shovel operator (<<) around the 40:06 mark in the video below. It's actually the string literal "Mr. " that is mutated instead.




The slow path for studious beginners to a career in software development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Training a Support Vector Machine in R with mlr by Hefin I. Rhys

Threading with Web Workers

Abusing the SharePoint REST API for fun and profit

How to Choose between Drupal and WordPress for Your Website Development?

Build An Alexa Voice App With A Few Clicks

What Is a Microservices Architecture?

Dealing with Imposter Syndrome & Self Doubt While Learning to Code

Agile Means?— What I learnt it truly means

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Launch School

Launch School

The slow path for studious beginners to a career in software development.

More from Medium

GPS Riding CFO attends VivaTech 2022 in Paris

Our Sonder World

5 Things I Learned During COVID

500 Words — Day Twenty-Four: Up Your Grindset