Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #2612
| From | David Lamb <dalamb@cs.queensu.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Refactoring discovery |
| References | <kbgoo6dfrkh58r3ogel9nb6rekrs258it2@4ax.com> <imi0cq$ah4$1@dont-email.me> <imjjus$2cj$1@lust.ihug.co.nz> <e7Mkp.1468$0s5.314@newsfe17.iad> |
| Message-ID | <MkMkp.1924$zn.895@newsfe19.iad> (permalink) |
| Date | 2011-03-30 16:25 -0400 |
On 30/03/2011 4:10 PM, David Lamb wrote: > first = longComplexOperation(lots of arguments) > second = anotherLongComplexOperation(same set of arguments) > it's going to take a very sophisticated compiler to synthesize > (first, second) = combinedLongOperation(same set of arguments) > and it's going to have to solve the Halting Problem, too. I forgot to mention, the two sets of arguments might each be overlapping subsets of a larger set of arguments, making the commonality even harder to detect automatically. The designer really has to write combinedLongOperation(LikelyOneObjectWithFields) that returns AllTheResults object.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Refactoring discovery David Lamb <dalamb@cs.queensu.ca> - 2011-03-30 16:10 -0400
Re: Refactoring discovery David Lamb <dalamb@cs.queensu.ca> - 2011-03-30 16:25 -0400
Re: Refactoring discovery Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-03-30 17:31 -0400
Re: Refactoring discovery markspace <-@.> - 2011-03-30 15:52 -0700
Re: Refactoring discovery Lew <noone@lewscanon.com> - 2011-03-30 23:58 -0400
csiph-web