Git Product home page Git Product logo

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

Object Relations Practice

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 the difficulty level of the 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.

Average

Challenging

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-062419's People

Contributors

paulnicholsen27 avatar thuyanduong-flatiron avatar maxwellbenton avatar realandrewcohn avatar aspenjames avatar bamsarker avatar crutell331 avatar notnotdrew avatar yoshinator avatar

Watchers

 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.