This just seems like you moved the code to other files, it's not actually cleaning up the code. I guess at least it is compartmentalized for the next person.
I never talked about cleaning up code. This article refers to reduce a lot of methods in a model. It doesn't mean that we are cleaning up, as you say, we're just moving groups of methods to a specfic file, in this cases to traits to have a light or fit model that is easy to read.
Yes but not directly inside the model. That is why I refer to "reducing the number of methods within the model", this make the model itself easier to read. Extract methods into specific files is one of the principles of refactoring.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This just seems like you moved the code to other files, it's not actually cleaning up the code. I guess at least it is compartmentalized for the next person.
I never talked about cleaning up code. This article refers to reduce a lot of methods in a model. It doesn't mean that we are cleaning up, as you say, we're just moving groups of methods to a specfic file, in this cases to traits to have a light or fit model that is easy to read.
But don't you have the same amount of methods but just spread over a few files?
Yes but not directly inside the model. That is why I refer to "reducing the number of methods within the model", this make the model itself easier to read. Extract methods into specific files is one of the principles of refactoring.