GithubHelp home page GithubHelp logo

jvanderz22 / level_up_exercises Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmmastey/level_up_exercises

0.0 2.0 0.0 2.1 MB

A long series of code-related assignments to challenge starting engineers

License: MIT License

Ruby 90.29% CSS 8.19% JavaScript 1.15% CoffeeScript 0.37%

level_up_exercises's Introduction

<<<<<<< HEAD

Dinosaur Catalog

It may not be immediately evident, but I am a huge fan of dinosaurs. They're huge and dangerous and have cool names like Giganotosaurus (not to be confused with Gigantosaurus).

...

Anyway. I need to catalog some dinosaurs for my newest project, DinoDex. I've got a CSV file for the dinosaur facts, and I need the code to read all the dinosaur facts and do some basic manipulations with the data.

Requirements

Go check out the CSVs and come back. Done? Cool, I've just got a few features I need:

  1. I loaded my favorite dinosaurs into a CSV file you'll need to parse. I don't know a lot about African Dinosaurs though, so I downloaded one from The Pirate Bay. It isn't formatted as well as mine, but please try to parse it anyway.
  2. I have friends who ask me a lot of questions about dinosaurs (I'm kind of a big deal). Please make sure the dinodex is able to answer these things for me:
    • Grab all the dinosaurs that were bipeds.
    • Grab all the dinosaurs that were carnivores (fish and insects count).
    • Grab dinosaurs for specific periods (no need to differentiate between Early and Late Cretaceous, btw).
    • Grab only big (> 2 tons) dinosaurs, or only small (< 2 tons) dinosaurs.
    • Just to be sure, I'd love to be able to combine criteria at will, even better if I can chain filter calls together.
  3. For a given dino, I'd like to be able to print all the known facts about that dinosaur. If there are facts missing, please don't print empty values, just skip that heading. Make sure to print Early / Late etc for the periods.
  4. Also, I'll probably want to print all the dinosaurs in a given collection (after filtering, etc).

Extra Credit

  1. I would love to have a way to do (and chain) generic search by parameters. I can pass in a hash, and I'd like to get the proper list of dinos back out.
  2. CSV isn't may favorite format in the world. Can you implement a JSON export feature?

Happy Hunting. (Giganotosaurus was the largest hunting dinosaur, at 46 feet long and up to 8 tons! Suh-weet.)

Level Up Exercises

These are the combined exercises used at http://leveluprails.herokuapp.com. You can do them out of sequence, but you'll probably be missing the point. Do the right thing, visit the site.

How to Do These Exercises

  1. Fork this repo into your own space
  2. Wait until you're asked to do one of the exercises
  3. Use your fork, develop code, push it back upward
  4. Profit!

The First Lesson

Like everything else in the world, these exercises have errors and problems and typos. We experience this problem whenever we code, and the only way to stay sane as a group is to fix problems as we find them. Be a mensch, send pull requests.

3226448529959e457b185dbb9fd7add8b28df256

level_up_exercises's People

Contributors

jmmastey avatar

Watchers

 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.