CSC/ECE 517 Fall 2009/wiki3 1 co: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
=== The Blob ''or'' God Class === | === The Blob ''or'' God Class === | ||
==== Anti-Pattern Problem ==== | |||
text | |||
==== Refactored Solution ==== | |||
text | |||
==== Example ==== | |||
text | text | ||
=== Lava Flow === | === Lava Flow === | ||
==== Anti-Pattern Problem ==== | |||
text | |||
==== Refactored Solution ==== | |||
text | |||
==== Example ==== | |||
text | text | ||
=== Poltergeists === | === Poltergeists === | ||
==== Anti-Pattern Problem ==== | |||
text | |||
==== Refactored Solution ==== | |||
text | |||
==== Example ==== | |||
text | text | ||
=== Golden Hammer === | === Golden Hammer === | ||
==== Anti-Pattern Problem ==== | |||
text | |||
==== Refactored Solution ==== | |||
text | |||
==== Example ==== | |||
text | text | ||
=== Spaghetti Code === | === Spaghetti Code === | ||
==== Anti-Pattern Problem ==== | |||
text | |||
==== Refactored Solution ==== | |||
text | |||
==== Example ==== | |||
text | text | ||
=== Cut-and-Paste Programming === | === Cut-and-Paste Programming === | ||
==== Anti-Pattern Problem ==== | |||
text | |||
==== Refactored Solution ==== | |||
text | |||
==== Example ==== | |||
text | text | ||
Revision as of 22:06, 15 November 2009
Software Design Anti-Patterns
Not all patterns are good. Anti-patterns are patterns that initially seem effective, but over time you learn that they lead you into traps. - Scott Klement, Anti-Patterns: Avoid the Programming Dark Side
In this article, we will describe several software design patterns which have been categorized as "anti patterns": Programming approaches which are not uncommon and which can lead to poor program design and performance.
What are Anti-Patterns?
text
Considerations When Writing Anti-Patterns
text
Anti-Pattern Examples
text
The Blob or God Class
Anti-Pattern Problem
text
Refactored Solution
text
Example
text
Lava Flow
Anti-Pattern Problem
text
Refactored Solution
text
Example
text
Poltergeists
Anti-Pattern Problem
text
Refactored Solution
text
Example
text
Golden Hammer
Anti-Pattern Problem
text
Refactored Solution
text
Example
text
Spaghetti Code
Anti-Pattern Problem
text
Refactored Solution
text
Example
text
Cut-and-Paste Programming
Anti-Pattern Problem
text
Refactored Solution
text
Example
text
Conclusion
text
References
text