-
Notifications
You must be signed in to change notification settings - Fork 626
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
create a base bank class #14
Comments
implemented in 4d688e7 |
I was looking at your implementation. It looks great, however I've one additional suggestion. The code in master can be simplified as follows
I like the idea to define an intermediate
This would allow the Bank module to contain all the bank-focused classes/objects/code not strictly tied to base or a bank implementation. The usage of a What do you think? |
Good idea, I like it. If you have time to implement it this weekend, feel free, otherwise I'll work on it Monday morning. |
I'm working on it. Could you reopen the task? |
Done. All the changes are available in the Here's the comparison with master on FooBarWidget repo. Note that the |
The only thing I'm thinking is that we need to move |
As I wrote in For instance, I might want my SuperCool bank to store rates in Redis or MongoDb instead of in memory. Also, I might need to create a custom key generation algorithm. While I was working on the refactoring, I realized that IMHO, the only reason to add Let me show you two concretes examples. In my code I have a Test bank I use while running the application in test mode.
I've also a more powerful converter which works which interacts with a custom backend.
As you can see, they both requires a super-small set of features and I found I've also an other internal backed which, instead, gives the ability to manually configure rates. In this case, I extend That said, if you really want to move |
What you're saying makes sense. Let's leave them where they are in VariableExchange. |
OK, I pushed all the changes. You can find them in my master branch.
|
changes have been merged into trunk. |
Added ILS currency to list
We need a
Bank::Base
class that users can subclass to create their own implementations.The text was updated successfully, but these errors were encountered: