When is a function too long? [closed]
Here is a list of red-flags (in no particular order) that could indicate that a function is too long: Deeply nested control structures: e.g. for-loops 3 levels deep or even just 2 levels deep with nested if-statements that have complex conditions. Too many state-defining parameters: By state-defining parameter, I mean a function parameter that guarantees … Read more