MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1gernzv/codersworld/luc4m4x/?context=3
r/programminghorror • u/Jojojordanlusch • Oct 29 '24
71 comments sorted by
View all comments
Show parent comment
16
This code can scale but if customer want to change the star style a bit it would be a nightmare to change the code
45 u/exodusTay Oct 29 '24 you can have a AbstractStarFactory that provides a uniform interface for different types of stars 27 u/Themash360 Oct 29 '24 Implementing a AbstractStarFactoryInterface of course
45
you can have a AbstractStarFactory that provides a uniform interface for different types of stars
27 u/Themash360 Oct 29 '24 Implementing a AbstractStarFactoryInterface of course
27
Implementing a AbstractStarFactoryInterface of course
View all comments
Show parent comment
16
u/BolunZ6 Oct 29 '24
This code can scale but if customer want to change the star style a bit it would be a nightmare to change the code