Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 5
    A function should be as short as possible I really think this is good advice when given to senior level people, but when giving this to people who are more junior this results in a ton of 1-2 line function calls and makes code even more difficult to read. Readability is an important factor for writing code and splitting literally every operation into its own function is a huge source of headache in understanding how code actually works. Commented Jun 5, 2017 at 19:55
  • 3
    For me, when working with junior programmers, functions that are too short have never been much of a problem. It is much more common to have functions that are too long. Commented Jun 5, 2017 at 20:01