formicary / my-bank Goto Github PK
View Code? Open in Web Editor NEWExample bank application
Example bank application
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
The class Bank
The class Customer
I hope that I can help you with this, thanks!
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.