
- Forum
- Testing
- Software Patterns
- anti pattern
anti pattern
This is a discussion on anti pattern within the Software Patterns forums, part of the Testing category; Hello, Witch off the following patterns are anti patterns? singleton factory abstract factory builder prototype adapter composite proxy flyweight facade ...
-
12-06-2005, 02:03 PM #1ledouxsteven@hotmail.com Guest
anti pattern
Hello,
Witch off the following patterns are anti patterns?
singleton
factory
abstract factory
builder
prototype
adapter
composite
proxy
flyweight
facade
bridge
observer
mediator
chain off responsibility
template
interpreter
strategie
visitor
state
command
iterator
Thx
-
12-07-2005, 05:24 AM #2Lorenzo Bettini Guest
Re: anti pattern
ledouxsteven@hotmail.com wrote:
> Hello,
>
> Witch off the following patterns are anti patterns?
>
> singleton
> factory
> abstract factory
> builder
> prototype
> adapter
> composite
> proxy
> flyweight
> facade
> bridge
> observer
> mediator
> chain off responsibility
> template
> interpreter
> strategie
> visitor
> state
> command
> iterator
>
> Thx
>
as far as I know, none of them... spaghetti-code is an antipattern
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD in Computer Science |
| Dip. Sistemi e Informatica, Univ. di Firenze |
| Tel +39 055 4237460, Fax +39 055 4237437 |
| Florence - Italy (GNU/Linux User # 158233) |
| Home Page : http://www.lorenzobettini.it |
| http://music.dsi.unifi.it XKlaim language |
| http://www.purplesucker.com Deep Purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
| http://www.lorenzobettini.it/software/gengen |
| http://www.lorenzobettini.it/software/doublecpp |
+-----------------------------------------------------+
-
12-11-2005, 12:25 PM #3iscy Guest
Re: anti pattern
Yes. Lorenzo is right. All those patterns are coming from the book
GoF95 and all of them are real design patterns.
Anti-patterns are things that can happen in software done by beginner
and that are really easy to see. For instance, the God class (also
known as code bloat), or the spaghetti code. Anti-pattern puts name of
bad pratices and show you how to fix those things in your code. The fix
is done by refactoring the bad pieces, but they explain which pattern
can be used in order to not get into another anti-pattern.
There is tons of list of anti-pattern on the Internet. Just take a
look... it won't be hard to find a few.
-
12-29-2005, 09:46 PM #4Nick Malik [Microsoft] Guest
Re: anti pattern
Looks like a term paper question.
Some folks have made the case that 'singleton' is a pattern when used well,
and an anti-pattern as commonly used. That's the only one of the GOF
patterns that I know of that can be seen as both, but I suppose any pattern
used poorly can be considered 'bad'.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<ledouxsteven@hotmail.com> wrote in message
news:1133894996.692787.182490@g44g2000cwa.googlegroups.com...
> Hello,
>
> Witch off the following patterns are anti patterns?
>
> singleton
> factory
> abstract factory
> builder
> prototype
> adapter
> composite
> proxy
> flyweight
> facade
> bridge
> observer
> mediator
> chain off responsibility
> template
> interpreter
> strategie
> visitor
> state
> command
> iterator
>
> Thx
>
-
Sponsored Ads

Reply With Quote





