Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Patterns Introduction

 
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if anyone could suggest a good intro book into patterns or data structures. I think I should study them before I embark on any interviews. I'd welcome any suggestions.
Thanks,
Sean
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Craig Larmans, Applying UML and Patterns. The GoF book is the best for just patterns, but It only covers design patterns and it's fairly complex without an intro book. I'd recommend every programmer in this industry read Larman's book as an intro to OOAD.
------------------
David Roberts - SCJP2,MCP
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. I was looking for a book that covers singleton's and factories etc.. Does this book include that?
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sean,
A couple of design pattern books that talk about singleton's and factories are:
Patterns in Java by Mark Grand
Design Patterns by Eric Gamma et la. aka GoF book.
Below is my reply to a similar question posted in the intermediate forum that you may find helpful.
http://www.javaranch.com/ubb/Forum1/HTML/001349.html
When reading a design pattern book, the thing to keep in mind is that you are learning about design, and you want to know the pros and cons about each of the patterns, and when a particular pattern might be best suited to solve your problem.
I have read both the books by Mark Grand and Eric Gamma et la. The Eric Gamma did a better better job in explaining the pros and cons to me. If you have to buy just one design pattern book, I would get the book by Eric Gamma et la. Also go to amazon and read the reviews of what other people have said about these two books.
Note that the GoF book has sample code in smalltalk and c++, but that should not discourage you from buying that book if you only know java since it does a better job in explaining the concepts. If you want to see sample code in java, there are lots of resources on the internet, or pick up the Mark Grand book for the java code.
This site has class diagram and example java code (good if reading GoF book and want some java examples) http://www.eli.sdsu.edu/courses/spring98/cs635/notes/index.html
"The Design Patterns Java Companion" by James Cooper: http://www.patterndepot.com/put/8/JavaPatterns.htm
PDF book, and also java sample code
Bruce Eckel of Thinking in Java fame is also working on a Thinking in Patterns book. I haven't read his books, but there is a work in progress copy of the book at his website. http://www.mindview.net/Books/TIPatterns/
Eddy
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eddy,
Thanks for all your help. I'm going to give the GoF book a try.
- Sean
 
We don't have time to be charming! Quick, read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic