8 Replies - 2286 Views - Last Post: 02 December 2012 - 08:04 PM

#1 rnty  Icon User is offline

  • D.I.C Head

Reputation: 20
  • View blog
  • Posts: 158
  • Joined: 14-August 12

Design Patterns

Posted 12 November 2012 - 04:28 AM

Just read an article on MVC.I was using it(partially) all the time but never knew about.Not sure I fully grasped it.How many more such design patterns are there?GOOGLE gives me various answers,so I thought I would ask you guys.Please give me a good book to read.
(if possible 1.not boring 2.for beginner's 3.simple english).

Thanks and Regards
Rnty
Is This A Good Question/Topic? 0
  • +

Replies To: Design Patterns

#2 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • View blog
  • Posts: 1,693
  • Joined: 13-March 10

Re: Design Patterns

Posted 12 November 2012 - 05:07 AM

What possible different answer can we give you that you wont be able to google.
Was This Post Helpful? -2
  • +
  • -

#3 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7962
  • View blog
  • Posts: 13,581
  • Joined: 19-March 11

Re: Design Patterns

Posted 12 November 2012 - 08:23 AM

View Postrnty, on 12 November 2012 - 06:28 AM, said:

Just read an article on MVC.I was using it(partially) all the time but never knew about.Not sure I fully grasped it.How many more such design patterns are there?GOOGLE gives me various answers,so I thought I would ask you guys.Please give me a good book to read.
(if possible 1.not boring 2.for beginner's 3.simple english).

Thanks and Regards
Rnty



It's pretty useless to read books about design patterns - the books don't make sense until you've already learned the patterns, and then it's just ratifying what you know. However, there is a book called "refactoring to patterns" which is more about refactoring than it is about patterns. That one's worth reading through.
Was This Post Helpful? 1
  • +
  • -

#4 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2538
  • View blog
  • Posts: 4,641
  • Joined: 24-September 10

Re: Design Patterns

Posted 12 November 2012 - 08:40 AM

Here is a website full of them...

http://sourcemaking....design_patterns

But keep in mind what jon.kiparsky said... it's hard to make sense of them until you've made sense of them. But if you keep reading them, and trying to use them, you may start to understand them.
Was This Post Helpful? 3
  • +
  • -

#5 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3652
  • View blog
  • Posts: 11,421
  • Joined: 05-May 12

Re: Design Patterns

Posted 12 November 2012 - 03:18 PM

Books that are setup as a survey of patterns are generally as jon.kiparsky has described. I do have to say that I've had some success introducing a friend to design patterns with the book: Design Patterns Explained. It was a mind opener for him as put it. (Others have said the same about "Head First Design Patterns" but I can't comment since I've not actually read the book.) Since I've read both the first and second editions of the Shalloway book, I can say that his approach to teaching patterns is very good for people who are new to the concepts.
Was This Post Helpful? 1
  • +
  • -

#6 rnty  Icon User is offline

  • D.I.C Head

Reputation: 20
  • View blog
  • Posts: 158
  • Joined: 14-August 12

Re: Design Patterns

Posted 13 November 2012 - 11:48 PM

Thank you fellows.Kind of you to guide me
Was This Post Helpful? 0
  • +
  • -

#7 heinbau  Icon User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 22
  • Joined: 08-November 12

Re: Design Patterns

Posted 16 November 2012 - 11:31 AM

Head fist design patterns was really good.

You need to be patient though (in my experience) to go through the "Head First" Series. They tend to be a little tedious, but I learned quite a bit..... But I still don't get it.

I may be too 'n00b' to get it, but we shall see!
Was This Post Helpful? 1
  • +
  • -

#8 rnty  Icon User is offline

  • D.I.C Head

Reputation: 20
  • View blog
  • Posts: 158
  • Joined: 14-August 12

Re: Design Patterns

Posted 26 November 2012 - 10:19 PM

Thumbs up to "Head First".Thank you again everyone.
Was This Post Helpful? 0
  • +
  • -

#9 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: Design Patterns

Posted 02 December 2012 - 08:04 PM

A couple of points about patterns. They are generally a product of trial and error, which implies that they are counterintuitive, because they aren't typically an early solution to whatever problem that they solve. Also, they are in a state of evolution; new patters show up fairly often. The seminal book on patterns is the "Gang of Four's" book, simply called "Design Patterns". This is a very tough book to get the hang of, but it is still the go-to book on patterns.

I would suggest that you have a look at UML class diagrams first, to understand the main way that patterns are diagrammed. Then have a look at something like this. Study the Singleton pattern first, since it's the most basic, and then move on to the Composite and Observer patterns since you will be familiar with their application. (Composite is the pattern by which, say, a form contains a frame which contains a set of controls; Observer is the pattern that event handlers use.)
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1