In this video Emmanuel Henri goes over the basics of what a pattern is and how it applies to JavaScript.
- [Instructor] Before we get started on our designs pattern journey, what is it exactly? The academic definition is a general, reusable solution to a commonly-occurring problem within a given context in software design. In simple words, it's a way that has been defined as a proper approach to resolve common problems in code. But if that still doesn't make sense, think of how you've learned how to divide two numbers in math. You need to follow a specific pattern to be able to properly get the solution. And the way I divide numbers, or learn it when I was young, might even be different to how you learned it, based on where you learned it from, or when.
This is exactly what a pattern is. A way to resolve a problem. In this course, we'll focus on patterns that relate to JavaScript. We'll look into many different patterns, and they are split into three categories. Creational, where these patterns create new things. Structural, where we use these patterns to structure our code. And finally, behavioral, where these patterns are used for behavior purposes.
Released
11/14/2018- What's a pattern?
- What's the role of callbacks?
- Functions as first-class citizens in JavaScript
- Creational patterns, including Singleton and Factory
- Structural patterns, including model-view-controller
- Behavioral patterns, including Memento and Mediator
Share this video
Embed this video
Video: What is a pattern?