anwarghammam / grocery

An example of a grocery store system with academic purpose
0 stars 0 forks source link

improve the flexibility #123

Open anwarghammam opened 2 years ago

anwarghammam commented 2 years ago

the flexibilty in the code is so low

anwarghammam commented 2 years ago

My pull request description

anwarghammam commented 2 years ago

My pull request description

anwarghammam commented 2 years ago

can you explain more

anwarghammam commented 2 years ago

for example for class ProductController.java it seems hard to add changes, also the number of private attributes is very high and the class is very coupled with class Myclass.java

anwarghammam commented 2 years ago

so what do you suggest

anwarghammam commented 2 years ago

let refactor !

anwarghammam commented 2 years ago

it seems like the topic of your issue is so related to metric: 'flexibility', here are some suggestions of refactorings: [MoveField(org.iselab.grocery.util.SystemUtils;org.iselab.grocery.repository.ProductRepository;[input];[]), MoveField(org.iselab.grocery.repository.ProductRepository;org.iselab.grocery.MainClass;[products];[]),