Giter Club home page Giter Club logo

ride-app-demo's Introduction

InterNACHI “Ride App” Exercise

This is a sample Laravel application that is meant to be used for a coding exercise. There are two steps to this exercise:

  1. Implement a small refactor
  2. Implement a slightly larger refactor

Be prepared to discuss the decision-making that went into each step, and why you chose to implement both in the same way or in two different ways (your choice).

Completing this Exercise

Please clone this repository and implement step one (below). Generate a patch file of your changes (using git diff) and save that patch as step-1.patch. Then implement step two (below) and create a second patch file (step-2.patch). Send these two files to us as your completed exercise.

Notes on Code Style/Preferences

Each team has its own code style and preferences that inform how best to approach a given task. For example, some Laravel applications rely heavily on events and listeners, or others favor action objects.

In general, InterNACHI sticks to standard Laravel and RESTful conventions as much as possible. We avoid events/observers, and rely on controllers and form requests where appropriate. We use types to our advantage, but not when they make code worse to work with. You won’t find a private or final keyword anywhere in our code.

The Tasks

Step One

First, please update the code to support rides by taxi, at a rate of $18.25 per passenger. Start with RidesController and make any adjustments as needed. Don’t worry about functionality that does not already exist, but ensure that the new code works in the same way as the existing code does.

Step Two

Next, update the code to support rides by:

  • Bus: $3.25/passenger
  • Taxi: $18.25/passenger
  • Ride Share: $19.00/passenger
  • Limo: $30.00/passenger
  • Shuttle: $10.00/passenger
  • Boat: $50.00/passenger
  • Helicopter: $500.00/passenger

Again, add as many files as you see fit, and change the RideCalculator API in any way you like.

ride-app-demo's People

Contributors

inxilpro avatar

Stargazers

Thee Freelancer avatar Amit Erandole avatar

Watchers

 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.