Giter Site home page Giter Site logo

go-daddy-test's Introduction

GoDaddy Take Home Assignment

Functional Requirements

Create a node project that does the following:

[X] Takes a CSV file destination as an input. The input can be a URL or file on machine. [X] Allows the consumer to pass a transformer function that will run for each row of the CSV.

Optional Goals:

[X] Add ability to run a hook before the file is read. [X] Add ability to run a hook after the file is processed. [X] Capture the time it takes for the file to get processed.

How to run the project?

npm start or npm run start:file to read the example CSV named numbers.csv

Additional Notes:

Pros and Cons (if any) of the chosen approach.

Pros

  • Flexible approach to passing transformer function
  • Complete control of the transformer function's return value
  • Memory aware by not dumping the entire file into memory (reading line by line)
  • Hooks before/after file read

Cons

  • This approach doesn't not take into account headers in the CSV format (TODO)
  • Approach only work on file:// paths not URLs (TODO)

TODO

[] Implement tests to make sure the transform function keeps its core behavior [] Implement URL support

go-daddy-test's People

Contributors

alburivan 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.