indritselimi / sale-taxes Goto Github PK
View Code? Open in Web Editor NEWAn exercise that I have done.
An exercise that I have done.
To run the code something like this should be sufficient: -- git clone https://github.com/indritselimi/sale-taxes.git) -- install maven (on os x or linux should already be there, maybe) -- cd .../sale-taxes -- mvn clean test Domain terms: Product Product Categories Basket Receipt Sale Tax Rules Rounding Price Rules Explanation: I have choose to create a "tax aware" product. To handle tax calculation I have choose to inject tax rules on my products. My first idea was to choose which tax rule to inject in "wiring" time (in order to move IF-s into factory...) but it seemed that a more traditional approach( all taxes are injected, the rule choose when to apply ) was simpler. For the last reason I have also controlled the tax rule engagement in base of two booleans which it is somewhat ugly; if needed in the future the concept can be elaborated more on "TaxContext" or similar. Your feedback is highly appreciated because I can improve my self. Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.