Code Monkey home page Code Monkey logo

moneyeye's Introduction

                  Ricardo Filipo

Talks about perl, linux, devops, javascript, and leadership

Orlando, Florida, United States

moneyeye's People

Contributors

rfilipo avatar

Watchers

 avatar  avatar

moneyeye's Issues

Class MoneyFactory

As a software engineer I think is best to have a Factory class so the system will be more light and clean organized.

The object of the class Money must be small as possible and withouthard ties with large memory chunks, so all configurations and external resources as configurations, json files, lists, etc, must be done by a Prototype Factory Singleton class: MoneyFactory.

A money object must be instantiated like:

static MoneyFactory * fr = MoneyFactory::instance();
const Money * bill = fr->money("USD",700.00);

The Money prototype will have a pointer to the MoneyFactory instance, so all convertions and transformations with money will be made by the Factory.

Money must rewrite some arithmetic operators: = + - / * < > == and >> for exchange:

const Money invoice = bill; // clone bill

invoice = bill * 3; // clone bill and multiply value by 3

invoice >> "BRL";   // exchange to Real

Steps

  • 1. Create a test module ( 002-FactoryTest.cpp ) to verify each requirement

    • 1. Class existence and instantiation as Singleton
    • 1. Constructor parameters: config_file, signs_file, rates_file
    • 1.Class must get and set the parameters and controls to reload confs
    • 1. Methods: exchange
  • 2. Implement the class MoneyiFactory

    • 1.class constructor, Singleton
    • 1.Prototype to clone, getters and setters
    • 1.Refactoring class Money to be thinner

Class Money

user story:

  • As a developer, I want a class Money with value, currency symbol, face value and the method exchange so that we can develop the finance app using it as a data type.

acceptance criteria:

  • Properties:

    • value as integer,
      *currency symbol as String,
    • face value with currency symbol as String,
    • country as String,
  • Methods:

    • Money::exchange("currency_symbol") returning a new Money object.

definition of Done:

When all tests PASS.

Notes

Must have a class Money implementing the properties: value as integer, currency symbol, face value with currency symbol as String, country and the method Money::exchange("currency_symbol") returning a new Money object.

  • Create tests

  • Document code

  • Create class

command exchange

As a finance student, I want to have a command to exchange money values so I can begin understanding how it works.

Financial recipes

As a developer I want to have a study of financial recipes so I can create a financial framework of tools and utilities.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.