That code will be easier to understand if it has many short classes/methods/functions (as opposed to fewer, longer ones).
Not true!
Merely breaking up a problem arbitrarily doesn't make it any easier to reason about, in fact, probably the reverse.
Breaking up a problem in ways that make it easier to solve is what we really want! 🙂
This might lead to many short modules, or it might lead to some short and some long modules. It depends on the nature of the problem.
But simply trying to reduce number of lines of code, number of methods, etc. is completely missing the point!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
That code will be easier to understand if it has many short classes/methods/functions (as opposed to fewer, longer ones).
Not true!
Merely breaking up a problem arbitrarily doesn't make it any easier to reason about, in fact, probably the reverse.
Breaking up a problem in ways that make it easier to solve is what we really want! 🙂
This might lead to many short modules, or it might lead to some short and some long modules. It depends on the nature of the problem.
But simply trying to reduce number of lines of code, number of methods, etc. is completely missing the point!