Coder Social home page Coder Social logo

cmg-challenge's Introduction

CMG Engineering Audition

Lines of thought

The main idea of development was to keep it simple and effective.

The idea then was to start with a more functional concept, creating functions to fulfill the objective of extracting data from a string.

The point is that even from a functional concept, the idea was also to cherish the code pattern and an organization of folders.

The calculations core was in an isolated folder, thus, it is a little simpler to include new calculation methods for the future and other types.

We also have the advantage of typescript, which guarantees the delivery of types in the input and output values of functions, and jest, which ensures that the code respects the initial thought criteria.

Improvements

One of the main chances of improvement would be concerning the parsing of our input string.

I believe that we have a chance to improve the reading and exporting of data to make it easier to read and maintain.

How to run

development

The project can be executed running yarn start

That command will start the init function that will read the input-log.log in the root of the project and will output the value;

build

We can build the project with yarn build

That command will generate a new folder called dist in the root of the project

tests

yarn test // command that runs the tests once

yarn test:watch // command that runs the tests and watch for changes

yarn test:coverage // command that runs the test and export a coverage

Feedbacks

I would be very grateful if you can give me any kind of feedback regarding the code, it's a way to improve as a developer ๐Ÿ˜Š

cmg-challenge's People

Watchers

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