Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: blmblm@myrealbox.com Newsgroups: comp.lang.java.programmer Subject: Re: generics puzzle Date: 21 Oct 2011 16:28:45 GMT Organization: None Lines: 37 Message-ID: <9gdkttFn51U5@mid.individual.net> References: <9g2f24Fi0vU1@mid.individual.net> <9g5nnhFahuU1@mid.individual.net> <9g5salFh1jU2@mid.individual.net> X-Trace: individual.net Qp81bGE8DFNYA6LNtDMeHQU7zT6Sa8i7pqItWd7BSsQYutVugy X-Orig-Path: not-for-mail Cancel-Lock: sha1:+9wqo8eB9orbTFPntUkltwWgALk= X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9074 In article , Arved Sandstrom wrote: > On 11-10-18 02:45 PM, blmblm@myrealbox.com wrote: > > In article <9g5nnhFahuU1@mid.individual.net>, > > Robert Klemme wrote: > [ SNIP ] > > >> > >> That's called "refactoring" - and is quite frequent with "real" code in > >> my experience. :-) Certainly not something to be afraid of - with > >> proper tools it can even be fun. :-) > > > > Well, I obviously think it's fun, or I wouldn't do so much of > > it? I do know the term "refactoring", but to me it suggests an > > activity somehow more purposeful than what I feel like I'm doing. > > Good to know, by the way, that it does happen with real code -- > > I've been away from professional programming for a long time and > > don't keep up as well as I might with current practices. > [ SNIP ] > > "Refactoring", simply put, does not change the functionality of the > code. Leastways it's not supposed to. > > Refactoring is done to achieve more clarity and simplicity and > maintainability (and perhaps testability). It could be as simple as > renaming a variable actually. That's purposeful refactoring. Yes, yes .... I guess my point is that I'm often not convinced that the changes I've made are actually an improvement, even with regard to internal aspects such as clarity and maintainability -- they're *meant* to be, but whether they succeed I'm sometimes not so sure. Sometimes it does feel like I'm just rearranging the furniture. -- B. L. Massingill ObDisclaimer: I don't speak for my employers; they return the favor.