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


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

Re: How is this "pattern" called?

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: How is this "pattern" called?
Date 2012-05-18 10:35 -0700
Organization A noiseless patient Spider
Message-ID <jp619l$5ms$1@dont-email.me> (permalink)
References <pattern-20120518104439@ram.dialup.fu-berlin.de> <jp5ptm$jp9$1@dont-email.me> <MVC-20120518183901@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 5/18/2012 9:59 AM, Stefan Ram wrote:

>    I do not see a real problem with this style, assuming that
>    the assignment at hand was just to write such a simple dot
>    paint program.


Right, though the style doesn't particularly teach best practice either.

I think I'd call this the "monolithic example" pattern.  It's similar to 
a lot of example code I see in books and the Java tutorial.  It's 
monolithic because it crams everything into a single class, or at least 
into the minimum page space.

And it's an example because that's what it is.  A short program that 
isn't written by more than one person, and will not be maintained.  It's 
fine for what it is, but it's not an example of good production style 
coding either.

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


Thread

Re: How is this "pattern" called? markspace <-@.> - 2012-05-18 08:29 -0700
  Re: How is this "pattern" called? markspace <-@.> - 2012-05-18 08:37 -0700
  Re: How is this "pattern" called? markspace <-@.> - 2012-05-18 10:35 -0700
    Re: How is this "pattern" called? Wanja Gayk <brixomatic@yahoo.com> - 2012-05-30 14:32 +0200
  Re: How is this "pattern" called? "John B. Matthews" <nospam@nospam.invalid> - 2012-05-18 15:35 -0400
  Re: How is this "pattern" called? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-19 22:29 -0400

csiph-web