What Are Design Patterns?
This lesson introduces design patterns, the definition, their uses, advantages, and a few drawbacks.
We'll cover the following
Definition
As developers, we want to write code that is efficient, reusable, and maintainable. Similarly, as JavaScript developers, you can end up writing code for large applications. Hence, the code structure becomes important. While developing, you may also find yourself writing similar code for separate problems. In such scenarios, it’ll be helpful to have a structure that could be used to solve various common issues. This is where design patterns come into play.
Design patterns are solutions to commonly-occurring problems in software design, such as writing JavaScript web applications. They can also be considered as templates that can be used to solve various issues in different situations.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.