DEV Community

Discussion on: Which would you prefer and why?

Collapse
 
bgadrian profile image
Adrian B.G.

Functions in functions I would say is smelly code, anyway if there are 5 options each with 7+ LOC then the main function will become too big, that is why I said to make a distinct object/module, with a size of 50+ LOC would probably required its own module. Then the functions being outside is ok, because they are encapsulated by the module.