Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Pattern ?

 
Arbnor Qeku
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain me what is actually Design Pattern with an example ???

I have read some article but i didn't understand it very well

If i read a book Design Pattern (head first pattern) what i will learn ?

What does it mean pattern in programming ???

Which book should i go for ( i completed Head First Java ) ?

Head First Software Development , Head First Pattern , Head First Object-Oriented Analysis and Design

Thank YOu
 
Winston Gutkowski
Bartender
Pie
Posts: 10417
63
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arbnor Qeku wrote:Can someone explain me what is actually Design Pattern with an example ???

Well, according to Wikipedia, it's a
"general reusable solution to a commonly occurring problem"
which seems like pretty good description to me.

As for examples, I suggest you take a look at the Wikipedia pages on some of the more common ones, like this one.

If i read a book Design Pattern (head first pattern) what i will learn ?

How not to write different code to solve the same problem; and also how to spot "the same problem" when it crops up in different guises.

What does it mean pattern in programming ???

Sounds to me like your just machine-gunning now. That's the same question as you asked above in different words, and already answered.

Which book should i go for ( i completed Head First Java ) ?

Well, this one is the grandaddy of them all, and it's the one I read; but others may have different suggestions.

Winston
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A design pattern is a technique that comes up repeatedly in software. It's a reusable solution to the same problem. For example, it is common to want just one instance of a class in your application. Maybe it has a counter in it so you want everybody to go through that class. The solution is the Singleton pattern.

Head First Design Patterns is a good first book on the topic. The table of contents is online so you can see what you will learn.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic