Clean code is crucial to software engineering of any kind. Without it it makes maintenance a nightmare.
Don't get me wrong, I'm all for encapsulation in part BECAUSE of that reason, but using mixins to keep code in a different file sounds like a better compromise. The trade off is that mixins are like traits, but (AFAIK) they don't have the ability to rename their methods on import. So, they pollute the class with the extra methods instead of using their own class.
Unless VueJS 3 provides considerable value, or they deprecate VueJS 2 far too early, then people aren't going to migrate, even for new projects.
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.
Clean code is crucial to software engineering of any kind. Without it it makes maintenance a nightmare.
Don't get me wrong, I'm all for encapsulation in part BECAUSE of that reason, but using mixins to keep code in a different file sounds like a better compromise. The trade off is that mixins are like traits, but (AFAIK) they don't have the ability to rename their methods on import. So, they pollute the class with the extra methods instead of using their own class.
Unless VueJS 3 provides considerable value, or they deprecate VueJS 2 far too early, then people aren't going to migrate, even for new projects.