Join Jungwoo Ryoo for an in-depth discussion in this video Interpreter, part of Python: Advanced Design Patterns.
- [Narrator] Experts in a particular field…often develop their own language called…a domain-specific language.…They use special terms to refer to certain concepts.…This jargon allows them to quickly convey…what needs to be communicated…without needing to explain the details every time.…The interpreter pattern makes it possible to use…this kind of a domain-specific language…to perform a task on your computer.…
To make this happen,…your computer needs an interpreter program…that translates an expression…into something it can understand.…The interpreter pattern provides clever design guidance…on how to go about doing this.…Here the focus is not too much on building…a comprehensive and huge computer language like Python.…The pattern is more about a small, custom language…you need to create to avoid writing different code…repeatedly to conduct similar tasks.…
A good example is a problem of searching…particular patterns in a text.…We already have a well-developed language…for conducting these specialized tasks.…It's called regular expression.…
- Architectural vs. design patterns
- Why use design patterns?
- Design best practices
- Domain-specific patterns and security patterns
- Gang of Four design patterns
- Command, Mediator, and State
- Template method
Skill Level Advanced
Learning Python and Django (2015)with Caleb Smith1h 11m Intermediate
Programming Foundations: Design Patternswith Elisabeth Robson2h 19m Intermediate
1. Understanding Design Patterns: Review
2. Design Best Practices
3. Gang of Four (GoF) Patterns, Part 1
4. Gang of Four (GoF) Patterns, Part 2
Next steps1m 26s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.