Giter VIP home page Giter VIP logo

revoo_challenge's Introduction

Challenge

So you want to be a Revolver, can you beat our challenge? Build us an awesome ruby program to vet all our reviews.

We have provided you with a simple Review interface class and a number of tests that you'll need to keep/get passing. You may not edit the Review interface!

Note: We have provided you with some high level tests, feel free to write more if you want.

Product Manager Requirements

When I get a Review, I want it to be vetted based on the following rules.

  • Offensive words
    • We don't want any offensive words so avoid the following:
      • Elderberry,
      • Hamster,
      • PHP,
      • Brainfuck
    • Note: The list might change if we discover any other offensive words!
  • Repetition
    • Repetition is often an indication of a fake review, if words are repeated three or more times in a row it is a fake review.
  • Prices
    • We do not want anyone mentioning prices in their reviews, it causes problems between different retailers.

Setup

The code we have supplied should work on Ruby 1.9.3 and/or 2. In order to run the specs you will need rspec, if you have bundler installed bundle install should do this for you, you may run the specs by running rspec.

You may use whichever version of ruby you prefer, and you are welcome to use any gems if you wish.

If you want to use some specific features of ruby 2.0 or 2.1 please check in your .ruby_version file. And if you use some other libraries in your solution please list them in your Gemfile so we can run your code.

revoo_challenge's People

Contributors

hemalvarambhia avatar

Watchers

James Cloos 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.