Coder Social home page Coder Social logo

developer-test's Introduction

Developer test

Description

This test has been created to test coding practises for programmers. The intention is that this is a quick task-based test that will reveal how a programmers (you) write code and which considerations are made when building new code as well as fixing and replacing legacy code. The test has also been designed to test your understading of code and your ability to find and fix bugs.

Here is a short list some of the things that are wrong with the code in class-product-price.php:

  • Missing code comments and DocBlocks
  • HTML validation errors
  • Wrong indentation
  • Inconsistent and bad naming of variables, class and methods
  • Deprecated function uses
  • Does not work with PHP7
  • Incorrect placement of tags
  • Fatal PHP errors

Notes: Feel free to rename the methods in the class, but don't remove any of them. The test harder than it looks. Pay attention to the details.

Tip: Change as much as possible to make it represent your own code.

Tasks:

  1. Fix as much as possible and make the code readable.
  2. VAT does not work. Fix the setting of VAT and the VAT calculation.
  3. Implement a better way of setting extra product fees based on the last part of the price name.
  4. Make the code work with php7.
  5. (Optional) Create unit tests for the class
  6. Make sure VAT works (listed twice for emphasis)

developer-test's People

Watchers

James Cloos avatar Yoshi Takashiba 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.