Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add docs to describe the idea of the concepts #4

Open
rethab opened this issue May 27, 2020 · 3 comments
Open

Please add docs to describe the idea of the concepts #4

rethab opened this issue May 27, 2020 · 3 comments
Assignees

Comments

@rethab
Copy link

rethab commented May 27, 2020

Hi @FabioPinheiro :) Could you please add some docs about what eg. MoneyTree is used for? Or what the idea of having money in a tree is? Also, I see there are some MoneyK and MoneyX things. What do these suffixes stand for?

Thanks and Congrats to making the Money library happen 👍

@FabioPinheiro
Copy link
Owner

Hey, Reto :D Thanks for your comment!
I will add more documentation about the goals.

The initial idea was for the MoneyTree to be able to handle multiple instances of Money (in different currencies). Each instance of Money has one currency and one value.
The suffixes on MoneyX, MoneyY and MoneyK does not stand for anything in specific. Those have different properties and implementations. I wanted to have only one at the end.

I wanted to be easy and simple to use as a Double with some imports. But everything must be type-safe, with the exception of one method. The method that allowed converting MoneyTree to Money when you have only a subset of conversion rates.
Traceability is one of the things that I wanted to be easy to have on top of MoneyTree.

I think I will have a lot of free time next month and I will get back to my ped projects.
It would be awesome if this ends up being useful for other people.

@FabioPinheiro FabioPinheiro self-assigned this May 27, 2020
@FabioPinheiro
Copy link
Owner

It's a WIP (like everything here). But it now has a documentation website.
https://fabiopinheiro.github.io/cats-money

@rethab
Copy link
Author

rethab commented Jun 4, 2020

Looks nice! And also nice logo 😄 I'm still a bit puzzled as to what the use-case for MoneyTree is though. Could you please give me an example use case where you'd use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants