DEV Community

Discussion on: Coding Best Practices, Chapter One: Functions.

Collapse
 
imbolc profile image
Imbolc • Edited

Do you separate scope of function definition somehow, e.g. defining sub-functions in the main function closure or moving them into separate module?

Pythons catch is except btw :)

Collapse
 
levivm profile image
Levi Velázquez

this depends on what framework, structure, etc, you are using. If I need to implement a concept with multiples features and it is quite complex, I create a module for him.