Coder Social home page Coder Social logo

domain-practice-lv1's Introduction

Domain Practice lv1

In this DQ you'll practice drawing your ERD diagram to plan out your models and methods. If you are thorough in drawing this out, writing a lot of your code will be very straightforward, so try to be detailed through each piece of this DQ.

Think of this a little like a scavenger hunt. You'll start here, in the README.md. After you finish each set of "clues", they'll direct you to a different file where you can check your work before moving on to the next set.

Your Models

You will have three classes: Animal, Plant and AnimalToxin. AnimalToxin belongs to Animal and to Plant. Plant has many AnimalToxin. Animal has many AnimalToxin.

Animals will have a species (string), domesticated (boolean) and diet (string). All attributes will be readable. Only domesticated and diet can be changed.

Plant will have a common_name (string), a scientific_name (string), and a color (string). All attributes will be readable. Only common_name and color can be changed.

AnimalToxin will have a plant (Plant instance), animal (Animal instance) and a severity (integer). All attribute will be readable and can be changed.

Your Instructions

Draw the ERD Diagram... try to be as thorough as possible. You can use https://awwapp.com/, Google Drawing, or any other tool you can screenshare with your group.

Make sure that you include...

  • Arrows for associations between models
  • Instance and class variables denoted correctly
  • What arguments should be included in the initialize method?
  • What readers and writers should there be?
  • What object association methods would you need to write? Do not write them yet; just write down which you'll need.

Next Steps

Now to DiagramPlan.md. In this file you'll see one way you could have drawn this out. Check against what your group drew; where there elements in the solution you didnt cover? Anything that is unclear?

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.