The Artima Developer Community
Sponsored Link

Java Buzz Forum
Head First Design Patterns - free pdf Decorator chapter

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ben Hosking

Posts: 208
Nickname: hoskinator
Registered: Apr, 2006

Ben Hosking is Java Developer with about 5 years experience and interest in OO
Head First Design Patterns - free pdf Decorator chapter Posted: May 23, 2006 8:34 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Ben Hosking.
Original Post: Head First Design Patterns - free pdf Decorator chapter
Feed Title: A Funny Java Flavoured Look at the World
Feed URL: http://businesslogs.com/WebLog/RSS.xml
Feed Description: The blog looks at using Java and programming in general as it pops up in life as a Java programmer. It will have links to interesting Java articles and resources. It will also have a lot of SCJP Java 1.5 information and links as I am currently studying
Latest Java Buzz Posts
Latest Java Buzz Posts by Ben Hosking
Latest Posts From A Funny Java Flavoured Look at the World

Advertisement

I noticed that the Head First Design Patterns book has a free chapter on the Decorator pattern. I actually own the Head First Design patterns book but because this chapter was free I read it again.

The decorator pattern is quite a peculiar pattern to look at, it almost works as if by magic, it has a kind of beauty that tends to come from simple idea which is incredible effective .

The decorator pattern should in theory be quite simple to understand e.g. it decorates an object with some functionality, it does what it says on the tin. In reality the code didn't seem that simple to me and I had to read it and the examples about three times. This chapter helped a lot because the examples were fantastic and they were worked was amazing but then reading the explanation and reasoning took me a while to understand how the code work.

so if like me you half understood the decorator pattern then read this chapter I think it will help you a lot. Of course it's a free pdf on the Decorator pattern so it's well worth downloading for later use.

The chapter is always very good because it shows how some initial code worked and then how they refactored it to use the Decorator pattern. This is a very good application of the decorator pattern and in a similar scenario to many of the people reading the chapter.

I almost forgot to actually past the link so here it is

http://www.oreilly.com/catalog/hfdesignpat/chapter/ch03.pdf

Once again if you don't own this book its well worth the investment and really helped explain the tricky world of design patterns using easy to follow and amusing examples.

Read: Head First Design Patterns - free pdf Decorator chapter

Topic: Open Source Java: So What Now? Previous Topic   Next Topic Topic: [May 16, 2006 13:36 PDT] 9 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use