Skip to main content
14 events
when toggle format what by license comment
Jul 8, 2014 at 18:08 vote accept Asics
Jul 8, 2014 at 9:11 history closed gnat
CommunityBot
Dynamic
mattnz
Duplicate of Is it a good idea to provide different function signatures that do the same thing?
Jul 4, 2014 at 7:40 comment added mouviciel With two functions, the user has two opportunities to ask himself what happens if they are called multiple times. (plus the opportunity to ask himself what happens if they are called one after the other, possibly several times).
Jul 4, 2014 at 4:58 review Close votes
Jul 8, 2014 at 9:11
Jul 3, 2014 at 20:48 answer added Karl Bielefeldt timeline score: 0
Jul 3, 2014 at 20:36 answer added Telastyn timeline score: 6
Jul 3, 2014 at 20:31 review First posts
Jul 3, 2014 at 22:21
Jul 3, 2014 at 20:28 vote accept Asics
Jul 8, 2014 at 18:08
Jul 3, 2014 at 20:19 comment added Asics @gnat I read those questions and they don't fully address my problem. The first link is explicitly about functions called once while it's not the case with mine. The second link concerns splitting large functions into smaller functions which is not what I'm doing.
Jul 3, 2014 at 20:18 comment added Matthew "Now, my user would naturally ask himself what happens if this function is called multiple times." - what does it actually do?
Jul 3, 2014 at 20:17 answer added Robert Harvey timeline score: 1
Jul 3, 2014 at 20:16 comment added Doval "Which do you prefer? Richer API vs simpler API that requires a peak at the doc / tests / source code?" An API always requires a peek at the docs if you want to be sure your program does what you think it does.
Jul 3, 2014 at 20:13 comment added gnat possible duplicate of One-line functions that are called only once. See also: Should I extract specific functionality into a function and why?
Jul 3, 2014 at 20:11 history asked Asics CC BY-SA 3.0