Skip to content

8_refactor_modules #1

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

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open

8_refactor_modules #1

wants to merge 38 commits into from

Conversation

devpark
Copy link
Owner

@devpark devpark commented Jan 17, 2022

No description provided.

version with factory inside of the refactored class
version with factory inside of the refactored class

force usage of interface
version with factory extracted level up
Also we use separated interface and order adapter to separate shitty library coupling
New calculations will be added (bad way)
 adding discount based on client discount for shipping
adding premium box cost into delivery
adding special days discounts (free delivery)
adding special days discounts (free delivery)
stuck in a problem of injected elements in interfaces/classes
extract methods - DRY
create abstract decorator and remove repeated code - DRY
create abstract decorator and remove repeated code - DRY
move CountryCalc factory into ShippingCostCalculator.php
rename country calc into OrderTotal calc
DRY - simplify PremiumBox decorators
create specified country calculator builders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants