官术网_书友最值得收藏!

Preface

At times, JavaScript can be a frustrating programming language to work with. Just when you think you have it entirely figured out, performance or cross-browser issues reveal themselves in the worst possible way. Lo-Dash is just one of many libraries that aim to help JavaScript programmers write code that's elegant, efficient, and portable. Underscore.js introduced a better way to perform functional programming with JavaScript. Lo-Dash is a continuation of this effort, and throughout this book, we'll see what sets Lo-Dash apart from other libraries out there, including Underscore.

At its heart, JavaScript is a functional language, but not necessarily a pure functional language—you can modify variables and introduce side effects. However, functions are first-class citizens and you can do a lot with them. Lo-Dash embraces this idea and gives programmers all the tools they need to write functional code that's readable and maintainable. All the cool things you can do with higher-order functions in other languages are possible with Lo-Dash as well.

It's not just the low-level utilities and performance gains that Lo-Dash delivers, though these are always welcome; it's also the enhanced programming model and the ideas that Lo-Dash borrows from other languages such as functional and applicative programming. These are imparted to JavaScript applications as a coherent API. Underscore got the ball rolling, and Lo-Dash further enhances these ideas, albeit using different design and implementation strategies.

主站蜘蛛池模板: 靖宇县| 城步| 吴忠市| 栾川县| 息烽县| 博野县| 深州市| 汉沽区| 阿克| 宜兰县| 从江县| 北流市| 京山县| 东明县| 莱西市| 茌平县| 桐城市| 乌兰浩特市| 广德县| 繁峙县| 贵德县| 永德县| 蓬安县| 淮北市| 古蔺县| 高尔夫| 临泉县| 宽甸| 安阳县| 郸城县| 增城市| 贵德县| 玛沁县| 庆城县| 大名县| 伊通| 凌海市| 十堰市| 庐江县| 宜兴市| 沭阳县|