Oct 29 2009

Decorator/Wrapper Pattern

Category: English posts,TechnicalIuliana @ 1:07

This week I went to another java interview. Yes, another one, because I still have no job. Don’t ask me how that happened because I don’t know. Maybe I just did not find a company that I would love to work at, enough to keep my mouth shut and not piss off the guys at HR. Besides all the simple questions, that I usually fuck up because I do not pay enough attention, at this interview, I was asked to describe “The Decorator Design Pattern”(which is actually a structural pattern by some authors). And of course I did not write one word, because even if lately I read a book about design patterns I did not remember which one was “The Decorator Pattern” and what was it about. Usually when I program I design my own classes, interfaces hierarchy and database, because except the two titan projects I worked at while being part of a medium team, my applications are small, simple and useful only to me and a few of my friends. So like I said, I design and implement everything and I don’t care that some big hot-shot developers have bagged and tagged some programming techniques and wrote books about it.

But sometimes when you are asked about these programming techniques at interviews you feel frustrated that you did not learn your programming theory part.This is how I felt Monday morning. So on my way home I decided to start a series of posts on this blog about all “bagged and tagged” programming techniques also called “Design Patterns”. Maybe writing about them will make me remember them and not feel frustrated at an interview ever again.

Continue reading “Decorator/Wrapper Pattern”

Tags: , ,