what to know for the exam. smalltalk will be used for questions, but there will not be questions...

9
What to know for the exam

Upload: kerry-mitchell

Post on 05-Jan-2016

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

What to know for the exam

Page 2: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

• Smalltalk will be used for questions, but there will not be questions about the grammar.

• Questions might ask – how particular patterns are different for Smalltalk– How to program a pattern in Smalltalk– How to program basic OO problem– questions that assume general knowledge of basic

classes like collections or streams

Page 3: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

Kent Beck patterns

• Composed method• Complete creation method• Conversion method• Query method• Intention revealing message• Double dispatch

Page 4: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

Core patterns

• Mediator• Façade• Proxy• Command• Template Method• Adapter• Null Object

• Composite• Strategy• Decorator• State• Iterator• Observer• Value Object

Page 5: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

Creational

• Abstract factory (peripheral)• Factory method• Prototype• Builder• Singleton• Dependency Injection

Page 6: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

Peripheral

• Memento• Chain of responsibility• Bridge• Visitor• Type Object• Extension Object• Generation Gap

Page 7: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

Compound

• Flyweight– To save space, factor out a Value Object, and

create them using a Memoizing Factory that records the flyweight pool.

• Interpreter– Represent a program with a Composite, and let

the class hierarchy match the grammar of the language. Define an “interpret” method in each class.

Page 8: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

Dangerous Patterns

• Mediator– Supposed to be used to allow colleagues to be

reusable. Is often used to allow programmers to continue to be procedural.

• Singleton– Supposed to be used to encapsulate global state

when it cannot be eliminated. Is often used as a justification of global state.

Page 9: What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular

Principles

• Single responsibility principle• Open/closed principle• Liskov substitution principle• Dependency inversion principle