Go Design Patterns

Mario Castro Contreras

  • 出版商: Packt Publishing
  • 出版日期: 2017-02-24
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 402
  • 裝訂: Paperback
  • ISBN: 1786466201
  • ISBN-13: 9781786466204
  • 相關分類: Go 程式語言Design Pattern
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

Learn idiomatic, efficient, clean, and extensible Go design and concurrency patterns by using TDD

About This Book

  • A highly practical guide filled with numerous examples unleashing the power of design patterns with Go.
  • Discover an introduction of the CSP concurrency model by explaining GoRoutines and channels.
  • Get a full explanation, including comprehensive text and examples, of all known GoF design patterns in Go.

Who This Book Is For

The target audience is both beginner- and advanced-level developers in the Go programming language. No knowledge of design patterns is expected.

What You Will Learn

  • All basic syntax and tools needed to start coding in Go
  • Encapsulate the creation of complex objects in an idiomatic way in Go
  • Create unique instances that cannot be duplicated within a program
  • Understand the importance of object encapsulation to provide clarity and maintainability
  • Prepare cost-effective actions so that different parts of the program aren t affected by expensive tasks
  • Deal with channels and GoRoutines within the Go context to build concurrent application in Go in an idiomatic way

In Detail

Go is a multi-paradigm programming language that has built-in facilities to create concurrent applications. Design patterns allow developers to efficiently address common problems faced during developing applications.

Go Design Patterns will provide readers with a reference point to software design patterns and CSP concurrency design patterns to help them build applications in a more idiomatic, robust, and convenient way in Go.

The book starts with a brief introduction to Go programming essentials and quickly moves on to explain the idea behind the creation of design patterns and how they appeared in the 90 s as a common "language" between developers to solve common tasks in object-oriented programming languages. You will then learn how to apply the 23 Gang of Four (GoF) design patterns in Go and also learn about CSP concurrency patterns, the "killer feature" in Go that has helped Google develop software to maintain thousands of servers.

With all of this the book will enable you to understand and apply design patterns in an idiomatic way that will produce concise, readable, and maintainable software.

Style and approach

This book will teach widely used design patterns and best practices with Go in a step-by-step manner. The code will have detailed examples, to allow programmers to apply design patterns in their day-to-day coding.

商品描述(中文翻譯)

學習 Go 設計和並發模式的慣用、高效、乾淨和可擴展方法,並使用 TDD

關於本書
這本高度實用的指南充滿了許多例子,展示了如何使用 Go 的設計模式的力量。
通過解釋 GoRoutines 和通道,介紹了CSP並發模型。
全面解釋了 Go 中所有已知的 GoF 設計模式,包括詳細的文本和示例。

本書的讀者
本書的目標讀者是 Go 程式語言的初學者和高級開發人員。不需要對設計模式有任何了解。

你將學到什麼
掌握在 Go 中開始編碼所需的所有基本語法和工具。
以慣用的方式封裝複雜對象的創建。
創建在程序中無法複製的唯一實例。
了解對象封裝的重要性,以提供清晰性和可維護性。
準備成本效益的操作,以使程序的不同部分不受昂貴任務的影響。
在 Go 上下文中處理通道和 GoRoutines,以慣用的方式構建並發應用程序。

詳細內容
Go 是一種多範式編程語言,具有內置的功能來創建並發應用程序。設計模式使開發人員能夠有效地解決開發應用程序時遇到的常見問題。

《Go 設計模式》將為讀者提供一個參考點,以了解軟件設計模式和CSP並發設計模式,以幫助他們以更慣用、強大和便捷的方式在 Go 中構建應用程序。

本書首先簡要介紹了 Go 編程的基本要素,然後快速介紹了設計模式的創建思想,以及它們如何在90年代作為開發人員之間解決常見任務的共同“語言”出現在面向對象的編程語言中。然後,您將學習如何在 Go 中應用23種四人幫(GoF)設計模式,並了解CSP並發模式,這是 Go 中的“殺手功能”,幫助 Google 開發軟件以維護數千台服務器。

通過這一切,本書將使您能夠以慣用的方式理解和應用設計模式,從而產生簡潔、可讀和可維護的軟件。

風格和方法
本書將以逐步的方式教授使用 Go 的廣泛使用的設計模式和最佳實踐。代碼將有詳細的示例,讓程序員能夠在日常編碼中應用設計模式。