Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Wrapping Up

Mixing Design Patterns for better development?

I'm just learning about design patterns, and I'm wondering if it is good programming practice to combine patterns where appropriate?

For example, in the Observer Pattern workshop, the observer pattern is used for the table and any clients that are interested in its changes. The table is an object, so It wouldn't make sense to use an observer pattern.

However, the tablet, used by the workers, is a machine. My question then is whether or not to construct a state-machine pattern for the tablet? Its states and behaviors would be effected by the changes observed by the observable tables' clients?