课程: JavaScript: Patterns

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

What is a pattern?

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…

内容