Giter Site home page Giter Site logo

find_favourite_language's Introduction

Requirement

We recommend candidates limit the time spent on this exercise to around 3 hours, but you will not be penalised for spending longer if you need to do so. You are also not obliged to complete the full exercise.

The exercise is as follows:

To complete in the candidate's own time. We would like the candidate to build a simple web or command line application, which should allow users to enter an arbitrary GitHub username, and be presented with a best guess of the GitHub user's favourite programming language.

This can be computed by using the GitHub API to fetch all of the user's public GitHub repos, each of which includes the name of the dominant language for the repository.

Documentation for the GitHub API can be found at http://developer.github.com.

Any programming language and technology (within reason) can be used to complete the test.

Once completed, share a copy of the code with me (either as a GitHub repo or via their preferred means) and we will review it then all being well, arrange a suitable time for an initial phone interview. If he wants to share it with me directly, save you playing piggy in the middle that is equally fine.

Setup

gem install bundler
bundle install

test

rspec

Run

Command line :

./bin/find_favourite_language

Web App

rackup

or

ruby app.rb

Heroku

This is currently also running on heroku here : http://young-garden-9865.herokuapp.com/

Going forward

Ideas to extend

  • get percentage breakdown of langs
  • graph percentage breakdown
  • get more detailed breakdown via kb of code in repo for each lang (repos/:user/:repo/languages)
  • add links to gh (in web app)
  • style webapp!

find_favourite_language's People

Watchers

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