30 likes | 179 Views
Week 10 Class 3 Patterns in Review (2). Instructor evaluations (You should have received a link via email) Design Patterns Threads Final: Monday 8:00 - 10:00 AM - S359 2014. Other Design Patterns. Brief overview of the Gang Of Four Relative Usage Frequency.
E N D
Week 10Class 3Patterns in Review (2) • Instructor evaluations • (You should have received a link via email) • Design Patterns • Threads • Final: • Monday 8:00 - 10:00 AM - S359 2014 SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder
Other Design Patterns • Brief overview of the Gang Of Four • Relative Usage Frequency SE-2811 Dr.Yoder
The Singleton “anti-pattern(s)” • Makes testing difficult • Essentially a public instance variable (global) • …but more complicated (multithreading thought needed) • Hard to reuse, if needed • Constructor arguments challenge • Can’t destruct http://stackoverflow.com/questions/11292109/why-is-singleton-considered-an-anti-pattern-in-java-world-sometimes SE-2811 Dr.Yoder