• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how many design patterns are there?

 
anarkali perera
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read head first design pattern.But there are only 15 of them.is it only 15 ?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No there are 23 design patterns (GoF).
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just thought of another one - so there are at least 16 :-) But seriously, there is no fixed number of patterns. If you can think of another one, describe it, and give it a name, then there's one more. Of course, people will not necessarily know about it unless it's widely publicized. Best known are the ones described in the book "Design Patterns: Elements of Reusable Object-Oriented Software" by Gamma et al.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually when talking about patterns there are so many patterns other than design patterns like analysis patterns [Fowler], implementation patterns [Beck], architectural patterns, domain patterns [DDD], security patterns, enterprise integration patterns [Hohpe, Woolf].

Regarding design patterns, there are also domain specific design patterns like Core J2EE Patterns, SOA Design Patterns. However if mention only "design patterns" it probably means GoF's design patterns as the Design Patterns is the first book that documents software design patterns.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Except that other languages have different design patterns. There's no fixed number of design patterns.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic