I’ve been learning the adapter and facade design patterns for an upcoming junior development role i’m applying for, as i’m expecting to be asked what i know about the pattern and times i’ve used it. While the pattern itself seems straight forward – i’m struggling to think of a practical use i could use it for in a personal project.
So can anyone suggest an idea for a use for it within a small personal project?
Also does the pattern appear anywhere within the Java API?
For uses in
Java APIof design patterns, look at this question.Quoting
Wikipedia:So you will use it quite rarely. It is just adapting two incompatible interfaces.
And remember when you don’t need a design pattern, just don’t use it. Only because it is written in the big books, it doesn’t mean it serves all your needs and you must follow it blindly.