Mastering JavaScript Design Patterns - Second Edition

Simon Timms

  • 出版商: Packt Publishing
  • 出版日期: 2016-06-30
  • 售價: $1,810
  • 貴賓價: 9.5$1,720
  • 語言: 英文
  • 頁數: 290
  • 裝訂: Paperback
  • ISBN: 1785882163
  • ISBN-13: 9781785882166
  • 相關分類: JavaScriptDesign Pattern
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Key Features

  • Learn how to use tried and true software design methodologies to enhance your JavaScript code
  • Discover robust JavaScript implementations of classic and advanced design patterns
  • Packed with easy-to-follow examples that can be used to create reusable code and extensible designs

Book Description

With the recent release of ES-2015, there are several new object-oriented features and functions introduced in JavaScript. These new features enhance the capabilities of JavaScript to utilize design patterns and software design methodologies to write powerful code.

Through this book, you will explore how design patterns can help you improve and organize your JavaScript code. You'll get to grips with creational, structural and behavioral patterns as you discover how to put them to work in different scenarios. Then, you'll get a deeper look at patterns used in functional programming, as well as model view patterns and patterns to build web applications.

This updated edition will also delve into reactive design patterns and microservices as they are a growing phenomenon in the world of web development. You will also find patterns to improve the testability of your code using mock objects, mocking frameworks, and monkey patching. We'll also show you some advanced patterns including dependency injection and live post processing.

By the end of the book, you'll be saved of a lot of trial and error and developmental headaches, and you will be on the road to becoming a JavaScript expert.

What you will learn

  • Harness the power of patterns for tasks ranging from application building to code testing
  • Rethink and revitalize your code with the use of functional patterns
  • Improve the way you organize your code
  • Build large-scale apps seamlessly with the help of reactive patterns
  • Identify the best use cases for microservices
  • Get to grips with creational, behavioral, and structural design patterns
  • Explore advanced design patterns including dependency injection

About the Author

Simon Timms is a developer who loves writing code. He writes in a variety of languages and using a number of tools. Mostly, he develops web applications with .NET backends. Simon is very interested in visualizations and cloud computing. A background in builds and system administration keeps him on the straight and narrow when it comes to DevOps.

He is the author of Social Data Visualization with HTML5 and JavaScript, Packt Publishing. He blogs on blog.simontimms.com, and he is also a frequent contributor to the Western Devs (http://westerndevs.com), which is a loose collaboration of developers mostly located in Canada. Twice a week, he participates in a videocast called The ASP.NET Monsters about the future of ASP.NET, which is one of the most popular series on Microsoft's Channel 9 video service (https://channel9.msdn.com/Series/aspnetmonsters).

Simon is the president of the Calgary .Net user group and a member of half a dozen other groups. He speaks on a variety of topics from DevOps to how the telephone system works. He works as a principal software developer for Clear-Measure located in Austin, Texas. He is currently working on a new title about ASP.NET Core.

Table of Contents

  1. Designing for Fun and Profit
  2. Organizing Code
  3. Creational Patterns
  4. Structural Patterns
  5. Behavioral Patterns
  6. Functional Programming
  7. Reactive Programming
  8. Application Patterns
  9. Web Patterns
  10. Messaging Patterns
  11. Microservices
  12. Patterns for Testing
  13. Advanced Patterns
  14. ECMAScript-2015/2016 Solutions Today

商品描述(中文翻譯)

主要特點



  • 學習如何使用經過驗證的軟體設計方法來增強您的JavaScript代碼

  • 發現經典和高級設計模式的堅固JavaScript實現

  • 充滿易於跟隨的示例,可用於創建可重用代碼和可擴展設計

書籍描述


隨著ES-2015的最新發布,JavaScript引入了幾個新的面向對象的功能和函數。這些新功能增強了JavaScript利用設計模式和軟體設計方法來編寫強大代碼的能力。


通過本書,您將探索設計模式如何幫助您改進和組織JavaScript代碼。您將瞭解創建、結構和行為模式,並發現如何在不同場景中應用它們。然後,您將更深入地研究在函數式編程中使用的模式,以及用於構建Web應用程序的模型視圖模式和模式。


本更新版還將深入探討反應式設計模式和微服務,因為它們在Web開發領域中越來越普遍。您還將找到一些模式,以改善代碼的可測試性,包括使用模擬對象、模擬框架和猴子補丁。我們還將向您展示一些高級模式,包括依賴注入和實時後處理。


通過本書,您將節省大量的試錯和開發頭痛,並踏上成為JavaScript專家的道路。

您將學到什麼



  • 利用模式的力量,從應用程序構建到代碼測試的任務

  • 通過使用函數式模式重新思考和振興您的代碼

  • 改善代碼組織方式

  • 借助反應式模式無縫構建大型應用程序

  • 識別微服務的最佳使用案例

  • 深入研究創建、行為和結構設計模式

  • 探索包括依賴注入在內的高級設計模式

關於作者


Simon Timms是一位熱愛編寫代碼的開發者。他使用多種語言和工具進行編程,主要開發帶有.NET後端的Web應用程序。Simon對可視化和雲計算非常感興趣。他在構建和系統管理方面的背景使他在DevOps方面保持著正確的方向。


他是Packt Publishing的《Social Data Visualization with HTML5 and JavaScript》一書的作者。他在blog.simontimms.com上撰寫博客,並經常為Western Devs(http://westerndevs.com)做出貢獻,這是一個位於加拿大的開發者鬆散合作的團體。他每週兩次參與名為The ASP.NET Monsters的視頻播客,該播客討論ASP.NET的未來,是Microsoft Channel 9視頻服務(https://channel9.msdn.com/Series/aspnetmonsters)上最受歡迎的系列之一。


Simon是卡爾加里.NET用戶組的主席,也是其他半打團體的成員。他在各種主題上發表演講,從DevOps到電話系統的運作方式。他目前在位於德克薩斯州奧斯汀的Clear-Measure擔任首席軟體開發人員。他目前正在撰寫一本關於ASP.NET Core的新書。

目錄



  1. 為樂趣和利益而設計

  2. 組織代碼

  3. 創建模式

  4. 結構模式

  5. 行為模式

  6. 函數式編程

  7. 反應式編程

  8. 應用程序模式

  9. Web模式

  10. 消息模式

  11. 微服務

  12. 測試模式

  13. 高級模式

  14. ECMAScript-2015/2016的解決方案