The Artima Developer Community
Sponsored Link

Weblogs Forum
Using Groovy Builders to Simplify Complex Object Hierarchy Creation

17 replies on 2 pages. Most recent reply: Jun 26, 2010 8:18 AM by Jeremy Meyer

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 17 replies on 2 pages [ « | 1 2 ]
Jeremy Meyer

Posts: 40
Nickname: jeremy1
Registered: Jan, 2008

Re: Using Groovy Builders to Simplify Complex Object Hierarchy Creation Posted: Jun 30, 2010 4:59 AM
Reply to this message Reply
Advertisement
> FYI If you use 'java' tags, Artima retains your
> whitespace. I've never understood why the 'code' tags do
> not.

We would have to ask Bill. I think it is a small subset of HTML designed to be just enough for comments..

Jiri Goddard

Posts: 54
Nickname: goddard
Registered: May, 2007

Re: Using Groovy Builders to Simplify Complex Object Hierarchy Creation Posted: Jun 30, 2010 6:57 AM
Reply to this message Reply
I agree with John. If you have some spare time, it's be great to see implementation in Scala.

Morgan Conrad

Posts: 307
Nickname: miata71
Registered: Mar, 2006

Re: Using Groovy Builders to Simplify Complex Object Hierarchy Creation Posted: Jun 30, 2010 7:02 AM
Reply to this message Reply
While I symphathize with Chris Dams that this technigue may not always be ideal for creating super-complex "real-user" objects, it's a wonderful "sugar" for creating objects for unit tests.

Flat View: This topic has 17 replies on 2 pages [ « | 1  2 ]
Topic: plac, the easiest command line arguments parser in the Python world Previous Topic   Next Topic Topic: Do Career Plans for Developers Actually Damage an Organisation?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use