Learning Underscore.js
暫譯: 學習 Underscore.js
Alex Pop
- 出版商: Packt Publishing
- 出版日期: 2015-10-30
- 售價: $2,000
- 貴賓價: 9.5 折 $1,900
- 語言: 英文
- 頁數: 224
- 裝訂: Paperback
- ISBN: 1784393819
- ISBN-13: 9781784393816
海外代購書籍(需單獨結帳)
相關主題
商品描述
Explore the Underscore.js library by example using a test-driven development approach
About This Book
- Understand and learn to apply functional programming principles using the built-in functions of Underscore.js
- Leverage and reuse Underscore.js-based code to create code that targets client, server, or database contexts
- Take Underscore.js further by reusing code between client and server and by learning about other closely related libraries
Who This Book Is For
If you are a developer with fundamental JavaScript knowledge and want to use modern JavaScript libraries to extend your functional programming skills, then Underscore.js is an important library you should be familiar with.
What You Will Learn
- Reference and call Underscore.js functions using a modern JavaScript development workflow
- Apply Underscore.js to JavaScript arrays, objects, and functions
- Take advantage of object-oriented or functional programming techniques with Underscore.js
- Leverage Underscore.js to create code that targets client, server, or database contexts
- Extend Underscore.js functionality with other closely related libraries
- Reuse Underscore.js-based code between client and server applications
- Prepare for the upcoming JavaScript standard ECMAScript 6 and support older browsers
In Detail
Underscore.js is one of the most popular modern JavaScript libraries used for functional programming. It can be used as a base for building complex JavaScript applications in a sustainable manner and for building other JavaScript libraries. It embraces functional programming principles but is not opinionated and can be used with imperative, object-oriented, functional, or other programming styles.
This book explores how to use Underscore.js to power your code and understand modern JavaScript development concepts while applying a lightweight and efficient workflow to build applications.
The book starts with an incremental Underscore.js introduction by exploring key JavaScript concepts. You will then explore the basic features of Underscore.js in action and establish a lightweight development workflow that allows the provided examples to be guided by tests. The book then covers the functionality of Underscore.js with in-depth examples and explanations for understanding and applying the Underscore.js API. You'll also learn how to use Underscore.js as a base for your own modules and libraries within an object-oriented or functional programming style, and will be able to explore Underscore.js use cases in different environments.
Eventually, you'll learn about libraries that are closely related with Underscore.js, how to share code between client and server, and how to prepare for the upcoming JavaScript standard ECMAScript 6.
Style and approach
This book takes an example-driven approach to describing some of the essential JavaScript concepts and practices that are useful for building sustainable applications.
商品描述(中文翻譯)
透過範例探索 Underscore.js 函式庫,採用測試驅動開發方法
關於本書
- 理解並學習如何應用功能性程式設計原則,使用 Underscore.js 的內建函式
- 利用並重用基於 Underscore.js 的程式碼,創建針對客戶端、伺服器或資料庫的程式碼
- 透過在客戶端和伺服器之間重用程式碼,並學習其他相關函式庫,進一步發揮 Underscore.js 的潛力
本書適合誰閱讀
如果您是一位具備基本 JavaScript 知識的開發者,並希望使用現代 JavaScript 函式庫來擴展您的功能性程式設計技能,那麼 Underscore.js 是您應該熟悉的重要函式庫。
您將學到什麼
- 使用現代 JavaScript 開發工作流程來引用和調用 Underscore.js 函式
- 將 Underscore.js 應用於 JavaScript 陣列、物件和函式
- 利用物件導向或功能性程式設計技術與 Underscore.js
- 利用 Underscore.js 創建針對客戶端、伺服器或資料庫的程式碼
- 使用其他相關函式庫擴展 Underscore.js 的功能
- 在客戶端和伺服器應用程式之間重用基於 Underscore.js 的程式碼
- 為即將到來的 JavaScript 標準 ECMAScript 6 做準備,並支援舊版瀏覽器
詳細內容
Underscore.js 是最受歡迎的現代 JavaScript 函式庫之一,專門用於功能性程式設計。它可以作為構建複雜 JavaScript 應用程式的基礎,並以可持續的方式構建其他 JavaScript 函式庫。它擁抱功能性程式設計原則,但不具偏見,可以與命令式、物件導向、功能性或其他程式設計風格一起使用。
本書探討如何使用 Underscore.js 來強化您的程式碼,並理解現代 JavaScript 開發概念,同時應用輕量且高效的工作流程來構建應用程式。
本書從逐步介紹 Underscore.js 開始,探索關鍵的 JavaScript 概念。接著,您將探索 Underscore.js 的基本功能,並建立一個輕量的開發工作流程,使提供的範例能夠受到測試的指導。然後,本書深入介紹 Underscore.js 的功能,並提供範例和解釋,以便理解和應用 Underscore.js API。您還將學習如何將 Underscore.js 作為您自己模組和函式庫的基礎,無論是在物件導向或功能性程式設計風格中,並能夠探索 Underscore.js 在不同環境中的使用案例。
最終,您將了解與 Underscore.js 密切相關的函式庫,如何在客戶端和伺服器之間共享程式碼,以及如何為即將到來的 JavaScript 標準 ECMAScript 6 做準備。
風格與方法
本書採用以範例為驅動的方法,描述一些對於構建可持續應用程式有用的基本 JavaScript 概念和實踐。