Timeline for Why should main() be short?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 21, 2011 at 0:19 | comment | added | Concrete Gannet | @DonalFellows: “Complexity below 10”? Is there a measurement unit for that?" Yes, a common measure is cyclomatic complexity (en.wikipedia.org/wiki/Cyclomatic_complexity) | |
Jun 20, 2011 at 22:00 | history | migrated | from stackoverflow.com (revisions) | ||
Jun 20, 2011 at 21:48 | comment | added | riwalk | @littleadv. Grow up. (I'm done--proceed to whine in whatever way suits your fancy) | |
Jun 20, 2011 at 21:45 | comment | added | riwalk | @littleadv, actually, if I had to put my finger on it, I'd say that the question was, "Why should main() be short?" Your answer did not help. Suck it up and take it like a man. | |
Jun 20, 2011 at 21:38 | comment | added | riwalk | I'm going to have to downvote this one bud. You're completely missing the intent of the question. | |
Jun 20, 2011 at 21:33 | comment | added | littleadv | @Donal - yes, click on the link. | |
Jun 20, 2011 at 21:33 | comment | added | littleadv |
@Stargazer712 Function length is usually regulated by the coding standards as well. It's a readability issue (and complexity, usually long functions are branched so that the complexity is way above 20), and as I said - main is no different than any other function in this regard.
|
|
Jun 20, 2011 at 21:32 | comment | added | Donal Fellows | “Complexity below 10”? Is there a measurement unit for that? | |
Jun 20, 2011 at 21:31 | comment | added | riwalk | I didn't ask whether it can be long. I asked why shouldn't it be long. | |
Jun 20, 2011 at 21:29 | history | answered | littleadv | CC BY-SA 3.0 |