• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

What is an Anti pattern?

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is an Anti pattern as compared to say design patterns in general and are they unique only to Rails?
 
Ranch Hand
Posts: 81
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In software engineering, an anti-pattern (or antipattern) is a pattern that may be commonly used but is ineffective and/or counterproductive in practice.

Cheers,
Greg Funston SCJP
 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congrats on what looks like a fine book for users of the Ruby framework. I look forward to reading it sometime.

Cheers,
Greg Funston SCJP
 
Ranch Hand
Posts: 974
11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Praful Gupta wrote:are they unique only to Rails?



Well design patterns are generally mostly language independant, so anti patterns probably are simular I think, right?

 
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, loosely speaking, anti-pattern is something that is routinely done in a wrong manner. For example beginners learning struts or php coders coming into Rails frequently write scriptlets because they seem more powerful/easy for their tasks.

Thus, anti-patterns are opposite of design patterns when it comes to applicability. DPs provide a guidemap for development/learning whereas anti-DPs educate us on common pitfalls in development.
As rails packs with itself a lot of stuff under the hood, like MVC, ORM & RESTful architecture, we frequently find ourselves having a poor or non-eloquent design. Here's when books like these help you out.
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic