3 ms·
It's a way to avoid the "fat models" problem (models files with too many lines on them).
by jp_sc 7y ago
It's a way to avoid the "fat models" problem (models files with too many lines on them).
- the_gastropod 7y agoI 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.