Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14715

Re: How is this "pattern" called?

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: How is this "pattern" called?
Date 2012-05-21 00:09 -0700
Organization albasani.net
Message-ID <jpcpo1$irr$1@news.albasani.net> (permalink)
References (2 earlier) <lp2dr7da6p0jslnua32ldd4uki1036ibfs@4ax.com> <jp67dc$fe8$1@dont-email.me> <rhedr7ti7idd7ratbaludl5m14jo60p04l@4ax.com> <4fb858d8$0$295$14726298@news.sunsite.dk> <u9ejr71ed5r1jqf2eu1m2gcvjktdqca94v@4ax.com>

Show all headers | View raw


Gene Wirchenko wrote:
> Arne Vajhøj wrote:
>> Gene Wirchenko wrote:
>>> markspace wrote:
>>>> Gene Wirchenko wrote:
>>>>>         a case of KISS or maybe YAGNI.
>>>
>>>> I like these too; good thoughts.
>>>
>>>        I have tended to avoid using OOP patterns except for what I came
>>> up with myself.
>>
>> That means that either you are absolute brilliant or a fool
>> not to learn from other.
>
>       You are missing the possibility that they are not needed.  I do
> not like overcomplicating my code.  I like to keep it simple since I
> am probably the one who will have to modify it in the future.
>
>       If a pattern works for me, fine, I will use it.  If I do not need
> it, then I will not use it.
>
>       I am not against patterns; I am against their use everywhere
> regardless of circumstances.
>
> [snip]

A 'for' loop is a pattern. A 'try-catch' idiom that reliably closes an 
external resource (e.g., 'Reader' or 'Writer') in the same way each time you 
write one is a pattern. Putting your member declarations in a certain order is 
a pattern. Are you seriously suggesting that you have written non-trivial code 
that is devoid of patterns?

If so, you are lying.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: How is this "pattern" called? Jim Janney <jjanney@shell.xmission.com> - 2012-05-18 10:03 -0600
  Re: How is this "pattern" called? Gene Wirchenko <genew@ocis.net> - 2012-05-18 10:50 -0700
    Re: How is this "pattern" called? markspace <-@.> - 2012-05-18 12:20 -0700
      Re: How is this "pattern" called? Gene Wirchenko <genew@ocis.net> - 2012-05-18 14:13 -0700
        Re: How is this "pattern" called? Patricia Shanahan <pats@acm.org> - 2012-05-18 14:35 -0700
          Re: How is this "pattern" called? Gene Wirchenko <genew@ocis.net> - 2012-05-18 15:29 -0700
            Re: How is this "pattern" called? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-19 22:38 -0400
              Re: How is this "pattern" called? Lew <noone@lewscanon.com> - 2012-05-20 11:34 -0700
                Re: How is this "pattern" called? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 14:59 -0400
                Re: How is this "pattern" called? Patricia Shanahan <pats@acm.org> - 2012-05-20 12:03 -0700
                Re: How is this "pattern" called? markspace <-@.> - 2012-05-20 13:19 -0700
                Re: How is this "pattern" called? Wanja Gayk <brixomatic@yahoo.com> - 2012-05-30 14:32 +0200
                Re: How is this "pattern" called? Lew <noone@lewscanon.com> - 2012-06-02 09:25 -0700
              Re: How is this "pattern" called? Gene Wirchenko <genew@ocis.net> - 2012-05-20 20:40 -0700
                Re: How is this "pattern" called? Wanja Gayk <brixomatic@yahoo.com> - 2012-05-30 14:33 +0200
          Re: How is this "pattern" called? Wanja Gayk <brixomatic@yahoo.com> - 2012-05-30 14:32 +0200
        Re: How is this "pattern" called? markspace <-@.> - 2012-05-18 15:28 -0700
        Re: How is this "pattern" called? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-19 22:37 -0400
          Re: How is this "pattern" called? Gene Wirchenko <genew@ocis.net> - 2012-05-20 20:43 -0700
            Re: How is this "pattern" called? Lew <noone@lewscanon.com> - 2012-05-21 00:09 -0700
              Re: How is this "pattern" called? Gene Wirchenko <genew@ocis.net> - 2012-05-21 10:04 -0700
            Re: How is this "pattern" called? Wanja Gayk <brixomatic@yahoo.com> - 2012-05-30 23:58 +0200
    Re: How is this "pattern" called? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-19 22:33 -0400
      Re: How is this "pattern" called? Gene Wirchenko <genew@ocis.net> - 2012-05-20 20:44 -0700
        Re: How is this "pattern" called? Lew <noone@lewscanon.com> - 2012-05-21 00:11 -0700

csiph-web