-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
We should standardize our function signatures. Right now we're all over the place. Here are some rules I just made up. Feel free to add your own.
- Methods should receive a single object argument.
- e.g.
cashFlow({income: 100000, expenses: 50000})and notcashFlow(100000, 50000)
- e.g.
- Percent values should be represented as integers.
- e.g. 20% is
20and not.2
- e.g. 20% is
- Output should be as verbose as possible
- e.g.
interestreturns an object with both the interest amount, and the total amount. The user could easily add their principal to the interest to get the total themselves, but it's nice to do it for them.
- e.g.