Giter Club home page Giter Club logo

si-challenge's Introduction

SI Challenge

With this I have made a few caveats, I opted (likely to my own demise) to not use a database in favor of keeping it hardcoded, when it comes to mapping values, there would likely be a database involved where these figures could be stored dynamically and updated at a moments notice, most of the logic would remain the same regardless and adding in a db server, creating the tables, etc would have taken up valuable time

This also half locks us in to this design which, may not be the best, but given the scope of this challenge (and that after this, its not being touched again, where as normal workday would be back and forth through the code making changes)

For things like LINE_PROFILE there is relative ease migrating from 1 value to 2 values (ie. change to UPSTREAM and DOWNSTREAM) as individual characteristics, however it's another difficulty going from 2 characteristics to 1, and preventing that characteristic in the output proved to be too much of a challenge for the timeframe given.

Tests were defined as basic as humanly possible, validating the output is exactly as wanted (manually typed), it only tests the single expectation of how it runs

To do gateway mapping, you will see I opted for sometimes the underlying functions can take an array of characteristics, where as most only take a single characteristic. I opted for this due to time constraints

I also opted to not run any express server, api endpoints, attempt to make it a lambda, instead opting for just my unit tests, this was so I could spend time on the problem rather then the things around the problem

Running the code

npm i
npm test

si-challenge's People

Watchers

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