Re:Poop: Performance Optimizer Observation Platform
by wiseowise on Saturday June 17, 2023 @03:55AM
(#36368219)
> I've seen worse - for example, code that takes the equivalent of that, and splits it into 100 functions across 10+ files.
This so many times. Will never understand why people are so afraid of multi thousand lines of properly structured code but will happily giggle when the same structure is split across 10-20 files. And no, it’s not for reuse sake.
Re:Poop: Performance Optimizer Observation Platform
by voakbasda on Saturday June 17, 2023 @10:44AM
(#36370618)
Many thousand lines of structured code that does not get broken into logical modules ends up an unnavigable and unmaintainable mess. I would not hesitate to split up such code.
Encapsulation and modularity are good engineering practices. Personally, I will not contribute to any project that opposes such things
Style-wise, looks fine. Code split up into functions where it makes sense, inlined where it doesn't. I've seen worse - for example, code that takes the equivalent of that, and splits it into 100 functions across 10+ files.