Skip to main content
6 events
when toggle format what by license comment
Dec 17, 2013 at 2:39 comment added AJMansfield A better idiom for this needs to be added to java: just let the user have both a block before and after the same while. Like this: do { doSomething(); } while (condition()) { doSomethingElse(); }
Dec 17, 2013 at 1:03 history edited James Moughan CC BY-SA 3.0
deleted 4 characters in body
Dec 15, 2013 at 15:24 comment added Erel Segal-Halevi This pattern is my favorite because: a. It doesn't require you to duplicate code - "writer.write" appears only once. b. It doesn't require you to duplicate tests inside the loop - the loop exit test is performed only once, in the middle of the loop.
Dec 13, 2013 at 19:18 history edited James Moughan CC BY-SA 3.0
added 56 characters in body
Dec 13, 2013 at 18:51 review First posts
Dec 13, 2013 at 19:18
Dec 13, 2013 at 18:34 history answered James Moughan CC BY-SA 3.0