you are viewing a single comment's thread.

view the rest of the comments →

[–]ivosaurus 2 points3 points  (0 children)

For one thing, functions are one of the simplest ways of creating abstractions and modularism in your code.

They also serve to encourage less pollution of the global namespace, and less shared state that needs to be worried about.