From the course: JavaScript: Patterns

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

What is a pattern?

What is a pattern? - JavaScript Tutorial

From the course: JavaScript: Patterns

Start my 1-month free trial

What is a pattern?

- Before we get started on our design patterns 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. Oof, in simple words, it's a way that has been defined as a proper approach to resolve common problems in code. If that still doesn't make sense, think of you 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, right? And the way I divide numbers or learn it when I was young might even be different to how you learned 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 relates to JavaScript. We'll look at many different patterns and they are split into three categories. Creational, where these patterns create new things. Structural, where we…

Contents