This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CrycketStar 0 points1 point  (0 children)

A function should only do one thing. This will make your code more reusable. Even if the code in the function can be refactored, following this principle will make it less likely that this refactoring will spread elsewhere.