- JavaScript:Moving to ES2015
- Ved Antani Simon Timms Narayan Prusty
- 243字
- 2021-07-09 19:07:46
Summary
Design patterns have a rich and interesting history. From their origin as tools for helping to describe how to build the structures to allow people to live together, they have grown to be applicable to a number of domains.
It has now been a decade since the seminal work on applying design patterns to programming. Since then, a vast number of new patterns have been developed. Some of these patterns are general-purpose patterns such as those outlined in the GoF book, but a larger number are very specific patterns which are designed for use in a narrow domain.
JavaScript also has an interesting history and is really coming of age. With server-side JavaScript taking off and large JavaScript applications becoming common, there is a need for more diligence in building JavaScript applications. It is rare to see patterns being properly exploited in most modern JavaScript code.
Leaning on the teachings provided by design patterns to build modern JavaScript patterns gives one the best of both worlds. As Isaac Newton famously wrote:
"If I have seen further it is by standing on ye shoulders of Giants."
Patterns give us easily-accessible shoulders on which to stand.
In the next chapter we will look at some techniques for building structure into JavaScript. The inheritance system in JavaScript is unlike that of most other object-oriented languages and that provides us both opportunities and limits. We'll see how to build classes and modules in the JavaScript world.
- C++ Primer習(xí)題集(第5版)
- iOS面試一戰(zhàn)到底
- Mobile Application Development:JavaScript Frameworks
- JavaScript:Functional Programming for JavaScript Developers
- Learning ArcGIS Pro 2
- R語言游戲數(shù)據(jù)分析與挖掘
- Learning ArcGIS Pro
- Hands-On Enterprise Automation with Python.
- 青少年P(guān)ython編程入門
- 跟戴銘學(xué)iOS編程:理順核心知識點
- Android移動應(yīng)用項目化教程
- 深入淺出Python數(shù)據(jù)分析
- 精通Spring:Java Web開發(fā)與Spring Boot高級功能
- Java高級程序設(shè)計
- Professional JavaScript