Skip to content

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