Design Patterns: Command/Memento

preview_player
Показать описание
This is the first of an eight part series where Robert is joined by Phil Japikse to discuss design patterns. A design pattern is a best practice you can use in your code to solve a common problem. In this episode, Phil demonstrates the Command and Memento patterns.

Episodes in this series:

- Command/Memento patterns
- Strategy pattern
- Template Method pattern
- Observer/Publish-Subscribe patterns
- Singleton pattern
- Factory patterns
- Adapter/Façade patterns
- Decorator pattern

Resources:

Рекомендации по теме
Комментарии
Автор

I love this series...so important. Please keep them coming

draqula
Автор

I wish I had this guy as mi CS professor or as my programming logic instructor. I love the way he teaches the subject matter. I know this stuff already but just don’t articulate it clearly sometimes.

Indyy
Автор

Just a heads up MemberwiseClone will produced a shallow copy of an object. This means that any references(non value types) from one object will also be cloned and point to the same data. Changing a property on a reference will also change on the cloned object. This does not included strings because they are immutable.

SpderFingers
Автор

I think even Robert Greene did not understand it well, because he can't formulate a clear sentence about what he understood : watch - 12:45 - 13:50 . Otherwise - txs for organizing this course with explanation.

viteok
Автор

Great series so far, looking forward to the rest. Keep it up 👍

stevenvolckaert
Автор

excellent lectures, hope you guys do more patterns like bridge, flyweight and so on..

bvbiszr
Автор

I am knew to programming and probably below content is not at your level of thinking, but I like to see things explained simply and clear so :

I would like to see a more practical example of what a Command pattern is, you are too abstract Japikse.
Your are creating 2 commands : addNumbers and addText - but provide string values for both of them for "testing" purposes.

You should then provide a modification of your example so it test also with numbers.

Why smart guys like you can't explain VERY CLEAR those simple things ?

viteok
Автор

What could be application of saving the history of objects to use later in time?

Ammarbashir
Автор

Could someone explain the story with strategy pattern?<3

filippasek