Code Monkey home page Code Monkey logo

my-bank's People

Contributors

reyesm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

my-bank's Issues

Refactoring of the Program

Hi! I'm doing a work about refactoring of some projects and I noticed that your projects have some issues about the system design, so I'll give you some suggestions to improve the project with the use of design patterns and diagrams.
First, the class Account can be refactorized like this
FactoryMethodBankRepositorio1
The class Bank
Iterator1Repositorio1
The class Customer
Iterator2Repositorio1

I hope that I can help you with this, thanks!

Refactoring of the Program (Yes, again...) because of Code Smells

Hello, I'm doing a work about Code Smells and I see your repository again for it.
In addition to the previously reported, I see that your code in some parts isn't easy to maintain.
So how the previous report, I'll give you some advises to solve it.
First, I identified the following code smells: Switch Statement, Feature Envy, Comments.
Each smell can be refactorized with this techniques:
Switch Statement: You use Type Code in Account class and don't use polimorfism. I suggest use Replace Type Code with Subclass and Replace Conditional with Polymorphism.
Feature Envy: Customer class have a method that only use fields from Account class. Move method to Account class.
Comments: You use in some parts of the program comments. It isn't bad, but I suggested that don't use it for explain a part of the code. You can use Rename Method techniques, it'll be better for the performance of the program.
I hope to help with it. Thanks!

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.