Giter VIP home page Giter VIP logo

practice-oo-associations's Introduction

Y'kids 'n yer concerts

Okay, so you's a real concert junkie, y'know? Always seein' this band at this place and that band at the other. When does it stop? You've always been proud to rattle off the list of concerts ya seen, but you're gettin' older and the list is just gettin' longer. It's time to solve this here problem progr'mmatically, y'know? This way, when Sally Two-Shoes runs up 'n says "Hey what are all of the venues you have attended?" or "Hey where is this band from?" or "How many hometown shows have you seen?", you'll be able to get yer answer lickity split, y'know? It's gon' be great, just crush it.

Deliverables


BAND

  • Band should initialize with a name and hometown
  • Band should have a Band#name and Band#hometown and a band should be able to change it's name
  • Band should have a method Band.all that returns all the instances of Band
  • Band should have a method Band#play_in_venue that takes a venue and date as a string as arguments and associates the band to that venue
  • Band should have a method Band#concerts should return an array of all that band's concerts
  • Band should have a method Band.all_introductions that puts out a message of "Hello, we are {insert band name here} and we're from {insert hometown here}" for each band
  • Band should have a method Band#venues that returns an array of all the venues the band has concerts in

CONCERT

  • Concert should have a Concert.all method which returns all the instances of Concert
  • Concert should initialize with a date, band, and venue
  • Concert should have methods Concert#band and Concert#venue that return the band and venue associated to the Concert
  • Concent should have a method Concert#hometown_show? that returns true if the concert is in the band's hometown

VENUE

  • Venue should initialize with a title and city
  • Venue should have a method Venue.all method which returns all the instances of Venue
  • Venue should have a method Venue#concerts that lists all the concerts that have ever been performed in that venue
  • Venue should have a method Venue#bands that lists all the bands that have ever played in that venue

practice-oo-associations's People

Contributors

perpepajn25 avatar humzahchoudry avatar matt-mcalister avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.