Friday, April 18, 2014

Anti-pattern for April , Golden Hammer


The anti-pattern for April Golden Hammer:  http://deviq.com/golden-hammer

 
The elaboration for the anti-pattern is: Stand back! I have just the tool to solve this.

The description for the anti-pattern is: A language, tool or platform with which the developer is comfortable and productive, so they are tempted to use it for any problem that presents itself.


The further elaboration from the web site is read as the following:
 

The Golden Hammer refers to a language, tool, or platform with which the developer is comfortable and productive, so they are tempted to use it for any problem that presents itself.  As the saying goes, "If all you have is a hammer, everything looks like a nail." (Maslow's Instrument)  Sometimes the Golden Hammer is the database, and logic that would be better of in the application ends up in the database because someone is more comfortable with SQL than with the application language.  Sometimes the reverse is true, and database-centric logic ends up in the application.  Other times, the tool in question can be the choice of application platform, with an application being built as a web or desktop application because that's where the developer feel comfortable, rather than because it's the best solution to the needs of the client.  Many developers love new things, so sometimes they fall victim to the Shiny Toy antipattern, and in such cases it's not uncommon for them to treat their new Shiny Toy like a Golden Hammer, too. For example, when XML first became popular, developers tried to use it for everything, even many things for which it wasn't necessarily well-suited

 

The quote on the calendar is:

 

I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it is a nail.

 --Abraham Maslow

 In about 2 years ago, I wrote a blog page in my blog titled “when you have a hammer in your hand, everything looks like nail to you”

 

http://peterluzc.blogspot.com/2012/07/when-you-have-hummer-in-your-hand.html for these did not get a chance to read it and have some interest in reading it, I put the link here.

 
The solution for this anti-pattern is enriching your tool box, enhancing your skillset. Use the right tool for the task, and use the tools in the way it is designed to use.
 

To do that, it requires lots of learning and practicing… if you are as passionately as I am or even more, you will find learning is fun and rewarding

As some of you know, I recently picked up iOS app development. I spent many late nights and weekends on X Code and Objective C, I find lots of fun in doing so. ..  if I would insist to write iOS, objective C program in the way I write C# code, I am sure  I were be heading to no way….

 Hopefully, I will be able to publish an app in iOS in the near future…

1 comment: