Giter Site home page Giter Site logo

vending-machine's People

Contributors

ivandimanovgearlaunch avatar w3apps avatar

Watchers

 avatar  avatar

Forkers

ivandimanov

vending-machine's Issues

Technologies used

  • WebPack (+plugins) - to build and bundle the application; it's one of the most advanced bundlers at the moment and it has some really cool features like: tree-shaking, code-splitting, dynamic require etc.;
  • ES6 (Babel) - the code is written in ES6 which comes with a lot of syntactic sugar to make code more readable and smaller; Babel is used to transpile the code to ES5 so that it works on all modern browsers;
  • Redux - it was the go to library because I had the most experience with using it;
  • lodash - used it for utility functions to avoid having to maintain utility code if it's already well written and well tested.

Improvements

Technical:

  • Add js & css linters;
  • Add dependency locking;
  • Improve the build system;
  • Use pure functions for the simple components;
  • Improve the way the displayMessage is handled;
  • Write unit-tests;
  • Use a server to persist the data so the application can be used by multiple people at the same time;
  • Consider alternative "dataBase" structure: "product based" vs. "vending machine based" (which is used now);

Product:

  • Show the entered code;
  • Notify the user about the received product;
  • Handle edge cases (e.g. 2 products with the same code);
  • Store the products as an object instead of an array to void looping through the array multi times when we need a certain item;
  • Give back change.

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.