Apply Today to our Software Engineering Program & check out our scholarships!

Pop Up: Spooky Ruby OOP

Skeleton costumed child, holding a pumpkin-shaped bowl of candy

Thinking of trink-or-treating and big bowls of halloween candy may make you nostalgic. But these days, they are covered in germs. In this live, instructor-led workshop, you will build and customize your very own computer program that will generate Valentines, while learning the fundamentals of Object-Oriented Programming!

This will be best experienced on a desktop or laptop computer.

Welcome!

We are so glad you are here! To get set up…

  1. Open up repl.it in a browser (preferably Chrome) and log in to your account
  2. Please change your zoom name to first, last initial, pronouns (ex: Amy H. (she/her))
  3. Introduce yourself in the zoom chat - where are you calling in from?

Goals

  • Explain the core concepts of Object-Oriented Programming
  • Gain exposure and familiarity with the Ruby syntax for classes and instances
  • Build a Valentine Generator!
  • Determine if coding is something you enjoy doing and want to pursue further

Disclaimer: We won’t become experts in Ruby or Object-Oriented Programming today. And you may leave with more questions than answers!

Programming Concepts We Will Use

Back-End Engineering is concerned with the management of data for an application. There are different ways we can structure the data itself as well as the systems that manage it. Object-Oriented Programming (OOP) is one way to design a program to manage the data in a Back-End.

While OOP is not exclusive to Ruby, the Ruby programming languages usually follows the patterns of OOP.

Ruby

Ruby is the programming lanugage we will write in today, to give instructions to the computer. It's known to be a beginner friendly language because of it's syntax and similarities to the English language!

OOP

Object-Oriented Programming (OOP) is a programming paradigm that we can use with many lanuages, including Ruby and Python. It focuses on writing re-usable code.



Brief Ruby + repl.it Intro

To gain some familiarity with repl.it, the interface we will use to write code in today, and start looking at some Ruby code, click this link.

  • Change the text NAME on line 2 to your name
  • Click the green run/play button at the top center of the page

Write some Code!

Now that we've seen what variables can do and how to run our code, let's add on to what is existing. Write at least 2 more variables under line 2. Print all variables out, and re-run the code to make sure they are working as expected!

Now, it gets even more fun: