4 ms·
I feel like this is akin to putting your sick mother outside in the snow to avoid the problem of her having a fever. If you have a model with hundreds of lines
by the_gastropod 7y ago
I feel like this is akin to putting your sick mother outside in the snow to avoid the problem of her having a fever.
If you have a model with hundreds of lines, there may be a larger design problem that could be addressed. By extracting lines into other files to arbitrarily keep line counts low, you just increase the effort it takes future developers to understand the code.
- jp_sc 7y agoYou need the code somewhere. "Extracting lines into other files" is organizing it. And you do it to keep concerns separated and thus decreasing the effort for future developers to understand it.