Pop Up: Object-Oriented Programming
In this live, instructor-led workshop, you will build and customize your very own computer program while learning the fundamentals of Object-Oriented Programming!
This will be best experienced on a desktop or laptop computer.
We are so glad you are here! To get set up…
- Open up repl.it in a browser (preferably Chrome) and log in to your account
- Please change your zoom name to first, last initial, pronouns – like this: Kaitlyn V. (she/her). To do this, hover over your image on zoom, click the three dots and select “Rename” from the menu.
- Heads up! We will ask you to briefly introduce yourself in a few minutes.
- Explain the core concepts of Object-Oriented Programming
- Gain exposure and familiarity with the Ruby syntax for classes and instances
- 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!
Zoom Tools and Introductions
- Reactions - Raise your hand if a friend or family member recommended Turing to you!
- Chat - Are you an early bird or a night owl?
- Intros - name, pronouns, location, why you are here!
Want to get my attention during the workshop? Raise your hand, type your question in the chat, or just come off mute and ask!
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.
OOP is not exclusive to Ruby! In fact, many of the most widely used programming languages follow the patterns of OOP, including Java, C#, and Python.
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!
Object-Oriented Programming (OOP) is a programming paradigm that we can use with many lanuages, including Ruby and Python. It focuses on writing reusable 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. To start, you’ll first need to click the blue “Fork” button.
- Change the text
NAMEon 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!