- 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.
- Python語言程序設(shè)計(jì)
- VMware vSphere 6.7虛擬化架構(gòu)實(shí)戰(zhàn)指南
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優(yōu)化計(jì)算
- 云計(jì)算通俗講義(第3版)
- Troubleshooting PostgreSQL
- 從學(xué)徒到高手:汽車電路識(shí)圖、故障檢測(cè)與維修技能全圖解
- Python圖形化編程(微課版)
- C++程序設(shè)計(jì)教程
- Python預(yù)測(cè)分析實(shí)戰(zhàn)
- Swift 2 Design Patterns
- Backbone.js Patterns and Best Practices
- Java Web入門很輕松(微課超值版)
- 深度學(xué)習(xí):基于Python語言和TensorFlow平臺(tái)(視頻講解版)
- Cocos2D Game Development Essentials
- ServiceDesk Plus 8.x Essentials