Skip to main content
12 events
when toggle format what by license comment
Sep 5, 2017 at 5:28 comment added Stack Exchange Broke The Law Depends how much the three separate functions are intertwined. It may be easier to follow a block of code that is all in one place than three blocks of code that repeatedly rely on each other.
S Sep 4, 2017 at 16:55 history suggested Albert Scholtz CC BY-SA 3.0
typo fixes.
Sep 4, 2017 at 16:09 review Suggested edits
S Sep 4, 2017 at 16:55
Apr 12, 2017 at 7:31 history edited CommunityBot
replaced http://programmers.stackexchange.com/ with https://softwareengineering.stackexchange.com/
Feb 4, 2015 at 18:25 comment added Jalayn You're absolutely right!
Feb 4, 2015 at 18:16 comment added wakjah I might be paraphrasing here, but a phrase from that book that echoes in my head almost every day is "each function should do one thing only, and do it well". Seems particularly relevant here since the OP said "my main function does three things"
Feb 4, 2015 at 16:43 history edited Robert Harvey CC BY-SA 3.0
deleted 10 characters in body
Jun 21, 2014 at 12:12 comment added Fabio Marcolini +1 just for referencing a book that, for my modest opinion, should be in the shelves of any software company.
Sep 23, 2013 at 14:18 comment added Doc Brown Actually, Bob Martin has shown several times that he prefers 7 functions with 2 to 3 lines over one function with 15 lines (see here sites.google.com/site/unclebobconsultingllc/…). And that's where lots of even experienced devs are going resist. Personally, I think that lots of those "experienced devs" just have trouble to accept that they could still improve on such a basic thing like building abstractions with functions after >10 years of coding.
Oct 1, 2012 at 9:31 vote accept dhblah
Oct 1, 2012 at 8:22 history edited Jalayn CC BY-SA 3.0
added 424 characters in body
Oct 1, 2012 at 8:10 history answered Jalayn CC BY-SA 3.0