Giter VIP home page Giter VIP logo

sp_ruby_app's Introduction

Ruby Coverage

Ruby Developer Test

How to run

  1. bundle install
  2. ./parser.rb webserver.log

Run tests

  1. bundle exec rspec

Final output

Screen Shot 2020-04-05 at 3 26 33 PM

Task description

Before you start coding (and let’s be honest, we know that’s what you want to do), please read the following.

  • Firstly, the test should take you no more than 2.5 hours to complete.
  • Secondly, the test is for us to see how you code and the methodologies you use, what we will be looking for in this test are the following:
    • Functionality
    • Efficiency – We like clean, simple code.
    • Readability
    • Tests (we have 96% test coverage in our code and we aim to keep it that way).
    • Also, we would like to understand your ability to use TDD and OO, so please ensure these are part of your complete test. This is your chance to show us what you can do, so use it to show us how you design and code!
    • Feel free to submit your solution as a link to your version control repository

The test is as follows:

  1. ruby_app

Write a ruby script that:

a. Receives a log as argument (webserver.log is provided) e.g.: ./parser.rb webserver.log b. Returns the following:

list of webpages with most page views ordered from most pages views to less page views e.g.:

/home 90 visits /index 80 visits 

list of webpages with most unique page views also ordered e.g.:

/about/2 8 unique views /index 5 unique views

Finally, have some fun – Feel free to make changes or design something if you think it meets the criteria above, but would produce better outcomes and of course, the sooner you return the test, the quicker we can move the process.

sp_ruby_app's People

Contributors

dkremez 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.