Skip to main content
added 191 characters in body
Source Link
o11c
  • 1.1k
  • 5
  • 6

There is a necessary minimum, but it is not strictly related to length.

Rather, the minimum related to whether there is enough context to know whether or not the code is good. For a longer code sample, the related bits give enough context for each other.

As a rough rule of thumb, code should have at least three function calls or control flow statements. A single call is almost never sufficient to know what it's for, and I can't think of any two-call cases either.

The code in this question satisfies that minimum.

There is a necessary minimum, but it is not strictly related to length.

Rather, the minimum related to whether there is enough context to know whether or not the code is good.

As a rough rule of thumb, code should have at least three function calls or control flow statements.

The code in this question satisfies that minimum.

There is a necessary minimum, but it is not strictly related to length.

Rather, the minimum related to whether there is enough context to know whether or not the code is good. For a longer code sample, the related bits give enough context for each other.

As a rough rule of thumb, code should have at least three function calls or control flow statements. A single call is almost never sufficient to know what it's for, and I can't think of any two-call cases either.

The code in this question satisfies that minimum.

Source Link
o11c
  • 1.1k
  • 5
  • 6

There is a necessary minimum, but it is not strictly related to length.

Rather, the minimum related to whether there is enough context to know whether or not the code is good.

As a rough rule of thumb, code should have at least three function calls or control flow statements.

The code in this question satisfies that minimum.