Skip to content

silvabox/makersacademy-oop-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Makers Academy Week 1 OOP workshop

Introduction

The purpose of this workshop is to introduce you to the benefits of OOD by giving you the opportunity to refactor some procedural code into an OO design.

The program takes a list of student data and produces an output of student names and ratings, ordered by rating. Rating is an arbitrary calculation with no specific significance other than it's numeric.

Instructions

Work in groups of 4-5 people. You should each work on your own local version of the code, but collaborate as a group on the solution, sharing code and screens etc. as you go.

  1. Fork this repo.
  2. Clone your version onto your machine.
  3. Open lib/students.rb and familiarize yourself with what it does.
  4. Run the file - $ ruby ./lib/students.rb to check the output.
  5. Refactor the code to use an object-oriented design.

Tips

Take an iterative approach. It's tempting to dive in and start changing everything, but try to stick to one refactor at a time.

If you are confident with RSpec, use TDD to drive your new design. If not, simply test that the file runs correctly after each iteration.

Commit your code after each iteration, with a message that explains what you did. This will help you understand your approach later on and enable you to rollback simply if you need to.

About

Makers Academy Week 1 OOP Workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages