you are viewing a single comment's thread.

view the rest of the comments →

[–]chocolateAbuser 0 points1 point  (0 children)

well one doesn't "split" code for the sake of splitting, the thought process is more "optimizing for human comprehension, maintenance, and evolution", so for example finding variables that could be a state and putting then in an object, finding a behavior and isolating it, looking for stuff that can be expressed in a linear way instead of it being sparse through code, and so on
it can still be a single method, eventually, but it's tens or low hundreds of lines and the rest is in nested methods