Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Jim Janney Newsgroups: comp.lang.java.programmer Subject: Re: simple StringBuilder proposal Date: Wed, 27 Feb 2013 09:34:41 -0700 Organization: Exit, pursued by a bear Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="c75a2e3068ccf6c98395286f3e40b97d"; logging-data="22524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Pe9p2c05YbIS/RfkOu1qj" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:D9ZNrJqdy1Ziw3jhDdTAQfiBTHk= sha1:oekTkGAdCiBG8WD7C2KIjgYFLIU= Xref: csiph.com comp.lang.java.programmer:22576 Daniel Pitts writes: > On 2/26/13 3:09 PM, Jan Burse wrote: >> >> Do you mean the google builder pattern? It makes also use of it: >> >> http://www.javacodegeeks.com/2012/07/builder-design-pattern-in-java.html > > The pattern of a "Builder" is older than Google. So is chaining. Both > are useful techniques if applied appropriately. As with any pattern, > don't create a problem that is solved by your pattern, but know lots > of patterns and apply the right pattern to solve your specific > problem. The general approach is sometimes called a fluent interface. http://www.martinfowler.com/bliki/FluentInterface.html -- Jim Janney