GithubHelp home page GithubHelp logo

hadichloun / ruby-oo-practice-relationships-silicon-valley-exercise Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-curriculum/ruby-oo-practice-relationships-silicon-valley-exercise

0.0 0.0 0.0 11 KB

License: Other

Ruby 100.00%

ruby-oo-practice-relationships-silicon-valley-exercise's Introduction

Object Relations Code Challenge

Welcome to Silicon Valley! For this assignment, our domain is the startup world! We have three models - Startup, VentureCapitalist, and FundingRound. A Startup has many VentureCapitalists through FundingRounds.

If you are not sketching out your domain, and thinking about single source of truth, you are doing it wrong :(

Topics

  • Classes vs Instances
  • Variable Scope ( Class, Instance, Local )
  • Object Relationships
  • Arrays and Array Methods
  • Class Methods

Notes

Your goal is to build out all of the methods listed in the deliverables. Do your best to follow Ruby best practices. For example, use higher-level array methods such as map, select, and find when appropriate in place of each

We've provided you with a console that you can use to test your code. To enter a console session, run ruby tools/console.rb from the command line. You'll be able to test out the methods that you write here. Take a look at that file to see how you can pre-define variables and create object instances, rather than manually doing it in every single console session.

Remember! This is a code challenge without tests. You cannot run rspec you cannot run learn. You'll need to create your own sample instances for testing purposes. Make sure your associations and methods work in the console before submitting.

Deliverables

Basic Class Methods and Properties

Build the following methods on the Startup class


Build out the following methods on the VentureCapitalist class


Build out the following methods on the FundingRound class


Associations and Aggregate Methods

Startup

VentureCapitalist

  • VentureCapitalist#invested
    • given a domain string, returns the total amount invested in that domain

ruby-oo-practice-relationships-silicon-valley-exercise's People

Contributors

hysan avatar maxwellbenton avatar hwangjf avatar notnotdrew avatar hadichloun 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.