Questions
Answer the following questions to test your knowledge of this chapter:
- What is a programming idiom and how are they different from patterns?
- What are some popular programming idioms besides
Hello, World
? - What is the downside to relying on the simple factory idiom?
- Is the Singleton a pattern or an antipattern? Why?
- What pattern should you use when you are dealing with creating a family of related objects?
- What pattern should you use for objects that have a complex build process?
- Which class in the Builder pattern is responsible for controlling the execution of the build steps in the proper order?