The Anti Patterns Misconception

I kicked off this Software Patterns category with A Brief Introduction to Software Patterns. The following is a short quote from that post which sums up, in a nutshell, what that post had to say:

A pattern is basically a capturing of a problem (in context) together with a solution to that problem

Another pattern related term that is in common use in software development is “anti-pattern”. The concept of the anti-pattern is something of a misconception, so here I’d like to take a look at why it’s a misconception.

It is very convenient to talk about “good” and “bad” practices, but this is problematic in itself because it oversimplifies the world far too much! Please take the following points into account:

  • One of the important things a pattern captures is the context in which a problem is occurring, and hence the context in which the solution is applied
  • In addition, a pattern also captures the tradeoffs accepted in applying the solution

What constitutes “good” and “bad” practice depends largely on what one is trying to do in the first place, and on the surrounding circumstances. Further, a solution which is a good one subject to certain context/tradeoffs might be a bad one subject to different context/tradeoffs.

The anti-pattern misconception starts with another misconception - that a pattern captures a best practice solution to a problem in context, which is not correct. Certainly many known patterns do capture best practice solutions, but the best practice part of it is not part of the definition of what a pattern is. It just so happens that what people are usually interested in is the best way to do things, and hence enthusiasts have documented many patterns capturing best practice solutions.

Just suppose for a minute that the commonly believed myth about patterns capturing best practice was true. That leaves a reason - a need in fact - to capture wrong/bad/worst practices, to help developers recognise them and understand why they are wrong/bad. This is where the term anti-pattern comes in. In reality anti-patterns are just patterns - that is, patterns in which the solution captured is a bad one. In fact, the anti-pattern captures a solution that does not satisfy the acceptable tradeoffs, does not work in the context, or both. A pattern captures a solution to a problem - be it a good, bad, or indifferent one, hence the anti-pattern concept is actually meaningless. Unfortunately, in my experience, write-ups and discussions of anti-patterns either do not take into account that the world is not so clear cut, just choose to ignore it, or both.

Leave a comment

?>ungloryhole tug jobs rubs a huge cock public invasion mouth with cock NEXTDOORMALE TOMMYDXXX Ice La Fox Medical Femdom Bareblacking Confession Of Married Man publicinvasion tugjobs Charmane Star outinpublic.com hazehim Charmane Star publicnude publicinvasion Monsters Of Cock Brooke Banner VISCONTITRIPLETS tranny land magical feet haze him collegerules Summer Bailey shaved pussy hammered itsgonnahurt itsgonnahurt Blonde round ass submityourbitch BIGGEST ASS CRAVING collegerules.com out in public Gyno Orgasm Videos submityourbitch tight ass drilled Bang Bros haze him submit your bitch outinpublic.com Stephanie Cane hazehim.com NEXTDOORPASS Big tit fucked publicinvasion lucky stud in a hot threesome Big Mouthfuls SpecialExercises sexy blonde petite public invasion college rules pussy pounded Roxy Love publicinvasion outinpublic.com GAy Cumshots Extrem trannyland VINTAGEGAYLOOPS public invasion ungloryhole Nude sport videos Lacey lounging facialfest Hot tight pussy facial fest submityourbitch.com Licking Dick And Ass tugjobs public invasion milf lessons camel toe Aiden Aspen huge tits ungloryhole publicinvasion Aiden Aspen lesbian dildo drilling college rules outinpublic outinpublic lesbian lover licks Sexy big tits pornstar Beautiful hand job outinpublic.com Special Exercises hazehim collegerules.com submit your bitch Milf cravers trannyland publicinvasion hottest white girls fat juicy ass. outinpublic summer time milf Courtney Simpson public invasion bang pas hazehim milfsoup natural beautiful tits SpecialExamination submityourbitch Gia Malone Lesbiansportvideos smacked those asses ungloryhole Redhead BBW bait Bus NEXTDOORPASS Nudesportvideos CODYCUMMINGS Latina pornstar pussy publicinvasion its gonna hurt Blonde gets fucked hard collegerules Special Examination NEXTDOORHOOKUPS Vince Ferelli MALEDIGITAL CIndia Summers un glory hole submityourbitch.com public invasion busty adventures college rules Amy Reid milfsoup bang bus college rules evanrivers its gonna hurt collegerules fuck team five trannyland.com great ass public invasion MedicalFemdom out in public Lesbian sport videos itsgonnahurt NEXTDOORBUDDIES fat mature redhead GynoOrgasmVideos Big Mouthfuls assparade publicinvasion two beautiful asses 3DS Max 8 OEM3Q 3GP Video Converterdownload acdsee manager 2009 oemred eye remover pro 1.2cheapest windows vistacheapest windows vista ultimatecheap AutoCAD 2009Vision Backup Enterprisecheap Macromedia ColdFusionnero photoshow 5 downloadadobe photoshop cs oemcoldfusion mx 7 downloadkamagra sildenafil citratekamagra generic viagraorder caverta onlinecaverta 100buy cavertatadaliscasodex 50 mg tablet