Git Product home page Git Product logo

oo-relationships-practice-dumbo-web-102918's Introduction

Installation

Clone this repo from Github. CD into the main directory using your console and run bundle install to install all Gem dependencies.

Exercises

This repo contains domains for practicing building Object-Oriented Relationships. The descriptions for these exercises are located in the exercises directory. At the top of each file is a level indicating whether it is an easy, medium or hard domain. Harder levels include more models or more complex relationships. The harder models also include less explicit instructions about what methods to write. You should work to derive the methods that need to be defined from the relationship information given.

Easy

Medium

Hard

Writing Code

You should write all your code for these domains in files in the app/models directory. You can create models for all of the challenges in there. If you name the models as specified, none of the exercises should conflict with each other.

Testing Your Code

We've provided you with a console that you can use to test your code. Write all your code in the app folder so that it is loaded into the environment. To enter a console session, run ruby tools/console.rb. You'll be able to test out the methods that you write here.

Creating Relationships

The complex relationships are not simple has_many_through or join relationships, so take the time to plan them out and draw them. If you see multiple ways to build those relationships, try both of them and see if you can identify benefits and weaknesses to each of those domain models. During project mode (and as a working developer) you will be responsible for building out domain models to represent real world situations. A poorly thought out domain can lead to brittle code that requires a lot of maintenance and rewriting in the future.

oo-relationships-practice-dumbo-web-102918's People

Contributors

realandrewcohn avatar crutell331 avatar

Watchers

 avatar James Cloos avatar Kevin McAlear avatar  avatar Victoria Thevenot avatar Belinda Black avatar  avatar Joe Cardarelli avatar Sam Birk avatar Sara Tibbetts avatar The Learn Team avatar Sophie DeBenedetto avatar  avatar Matt Townley avatar Jaichitra (JC) Balakrishnan avatar Antoin avatar Alex Griffith avatar  avatar Amanda D'Avria avatar  avatar Nicole Kroese  avatar  avatar Lore Dirick avatar Nicolas Marcora avatar Lisa Jiang avatar  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.