Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: multi-line Strings Date: Tue, 11 Dec 2012 22:26:10 +0000 (UTC) Organization: UK Free Software Network Lines: 24 Message-ID: References: <7f36342c-2331-4484-874b-4a0f8953f160@googlegroups.com> <50c61150$0$293$14726298@news.sunsite.dk> <50c6413a$0$293$14726298@news.sunsite.dk> <50c6598d$0$290$14726298@news.sunsite.dk> NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1355264770 6431 84.45.235.129 (11 Dec 2012 22:26:10 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Tue, 11 Dec 2012 22:26:10 +0000 (UTC) User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.java.programmer:20260 On Tue, 11 Dec 2012 09:46:50 -0800, markspace wrote: > On 12/11/2012 1:01 AM, Arved Sandstrom wrote: > >> I stipulate that it's not an uncommon ugly as far as Java and certain >> types of problems go. Very complex SQL so a native JPA query that needs >> to be assembled, ... >> getter and setter operations to build the list of final result objects >> to pass back to XStream for the REST call response...it's not pretty. > > > I'd love to see a smaller, non-proprietary version of that code, just to > see if we can't make some suggestions how to improve things. > My problems in that area are usually to a failure on my part to stop and think about a set of objects and how they will be used before getting stuck in. As you say, refactoring is a pain but IME its all too often due to a lack of forethought. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |