Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: simple StringBuilder proposal Date: Wed, 27 Feb 2013 19:18:50 +0100 Organization: albasani.net Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net LaokmbVdwDOB2lABuUS0YkhV+Ks7ioOrAH38E9z2Wzr3+AZAHIKec73aN2lBxp4xWOsY0B3XJ0jW4ppLsl9Gaa7LECx1YcXTW6qXy1j76HQQXiTzGmRTjDIrAot5IgLy NNTP-Posting-Date: Wed, 27 Feb 2013 18:18:53 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="FIptt3V9NtS3Z4jEgL3Cxu6QHcLRmBuDbNv3VoDZqAEl19mphj9MqL4taeYOcdaxIQyTxdfZisWnvBcsT0sAQWip0x7QqKfkZZx7R8Fyg8MdroyoOG7zAO9mmrRkPJgm"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0 SeaMonkey/2.16 In-Reply-To: Cancel-Lock: sha1:mNqp9PYS9Ig6p2wwqrejraCm7Zs= Xref: csiph.com comp.lang.java.programmer:22580 Jim Janney schrieb: > 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 > So its not in the GoF book? But the "pattern" rather feels to me like a micro pattern, and not a full fledged pattern. Since it doesn't realy solve a problem, its just cosmetics. Bye