re: A month of clean code VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks for your article. I agree with most of your refactoring except the first one. I really disagree with the idea of a method User::createFromCo...
 

as for me this static method doesn't introduce a new behaviour to the user model. design pattern wise, it basically uses static factory method (i actually like it), although i preferred to have some sort of EnrollmentRegistrationService for this.

code of conduct - report abuse