Link Details

Link 1066023 thumbnail
User 912299 avatar

By woutergr
Published: Nov 15 2013 / 12:28

For years, I’ve been using the builder pattern to quickly create new objects to be inserted into the database or to inject our domain objects with the required data. We started with so called “Object Mothers”, static methods which simply create and fill up an object, passing in a huge amount of parameters. That quickly became very cumbersome to work with. We'll look into the classic implementation and how this can be further improved upon using closures in different languages (javascript, C#, Groovy)
  • 9
  • 0
  • 734
  • 1383

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java