Git Product home page Git Product logo

jh-developer-challenges's Introduction

JH Developer Challenge

Setup

  1. Install composer on your machine if it isn't already installed [https://getcomposer.org/doc/00-intro.md]
  2. Install GIT on your local machine if it isn't already installed [https://git-scm.com/book/en/v2/Getting-Started-Installing-Git]
  3. Fork the repo to your account
  4. Pull down the project onto your local machine
  5. Change directory to the project root
  6. run git checkout -b YOURNAME
  7. Run composer update
  8. Run ./vendor/bin/phpunit to display the failing tests, you can do this at any point to test your code.

Challenge 1

The challenge is to write the logic for a delivery date calculation within the ShippingDates class.

Requirements

  1. The class must conform to the requirements of the defined interface implementing the calculateDeliveryDate method.
  2. All deliveries are on a 3 day service, there is no time calculation for simplicity.
  3. No parcel can be dispatched on a Saturday or Sunday.
  4. No parcel can be delivered on a Saturday or Sunday.
  5. The code must pass all tests
  6. Only work in ./src/ShippingDates.php
  7. Code must conform to PSR-1 and PSR-2 standards
    1. https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
    2. https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
  8. Methods should be commented with Docblock for parameters and return types

Submission

Once you have complete your work add your changes to the stage and commit. Once you have successfully commit git push origin YOURNAME. Submit the link to your repo to JH.

jh-developer-challenges's People

Contributors

aydinhassan avatar knowj avatar

Watchers

James Cloos avatar Peter Jones 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.