currency's People
currency's Issues
Implement: Currency concept.
Improve: Expression should contain times() method.
Reduce Money object with currency conversion.
Implement: equals() method.
Implement: Multiply values in specified currency.
Implement: Sum two different currencies and convert the result into specified currency.
$5 * 2 = $10
Rounding of values.
Make variable: amount - private
Implement: hashCode()
Improve: Dollar.equals() need to add object equality logic.
Side effects in Dollar class.
Implement: plus() method in class Sum
Duplicate code: Dollar/Franc
Implement: Compare two different currencies.
$5 + 10 CHF = $10 in case of exchange rate 2:1
Common operations: times()
Decide: is test testFrancMultiplication necessary?
Implement: 5 CHF * 2 = 10 CHF
Improve: equals() need to add check for null.
Improve: Bank.reduce() should work with any sub-type of Expression.
Common operations: equals()
Improve: plus() method returning Money object.
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.