Git Product home page Git Product logo

recruitment-task's Introduction

Recruitment task :: Documentation

  • Karan Jhaveri

This project was done twice using 2 different programming languages:

  • Python
  • PHP

This application examines data stored in xml, yml or csv format files to produce a sum of the 'value' attribute.

Example Parameters for Script:
(Python)

  • python script.py --input data/file.yml
  • python script.py --input data/file.xml --output results/results.txt
    (PHP)
  • php script.php --input data/file.csv
  • php script.php --input=data/file.yml --output=results/results.txt

2 inputs are taken:
--input is Mandatory and --output is Optional

If no output argument supplied, the output prints to stdout .

Functional Test:
(Python)

  • python test.py
    (PHP)
  • php test.php

Results:

  • 'recorded results' folder shows all the results from each run
  • The sub-folders are segmented by input file-type

Steps Performed (Log):-

(Python)

  1. Install Python v.3
  2. Open Command-line
  3. Run Commands: a. Navigate to the script's directory: 'cd /d D:..\Github\recruitment-task\Python'
    b. Install the necessary packages for this project using pip
  • csv
  • xmltodict
  • argparse
  • yaml
  1. Completed script.py
  2. Functional tests conducted using test.py
    (PHP)
  3. Install Xampp
  4. Add PHP binary to Path (https://www.youtube.com/watch?v=neBVQBL_2P0)
  5. Installed Composer: https://getcomposer.org/download/
  6. Install Symfony: a. Navigate to script's directory via Command-line
    b. 'composer require symfony/symfony' (or alternatively 'compser require symfony/yaml')
  7. Completed script.php
  8. Functional tests conducted using test.php

Development Strategy:

  • Create code stub and roughly flesh out the idea
  • Break each functionality of the application into smaller modules.
  • Test each module independently and after including in the script
  • Once script was complete, made a test script that validates the output of the main script

recruitment-task's People

Contributors

fdg-cogno avatar kwn 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.