vending-machine's People
Forkers
ivandimanovvending-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.
VendingMachine diagram
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.