Functional Programming in Go: Apply functional techniques in Golang to improve the testability, readability, and security of your code (Paperback)
暫譯: 在 Go 中的函數式程式設計:應用函數式技術於 Golang 以提升程式碼的可測試性、可讀性和安全性 (平裝本)

Meeus, Dylan

  • 出版商: Packt Publishing
  • 出版日期: 2023-03-10
  • 售價: $1,520
  • 貴賓價: 9.5$1,444
  • 語言: 英文
  • 頁數: 248
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801811164
  • ISBN-13: 9781801811163
  • 相關分類: 資訊安全
  • 立即出貨 (庫存=1)

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

相關主題

商品描述

Learn how to leverage core functional programming (FP) concepts to write more maintainable and testable code in Go.

Key Features

• Learn functional programming techniques at the architectural level, and use the lessons learned to solve real-world problems.
• Get a deeper understanding of how to think functionally about code.
• Go is a multi-paradigm language, learn about the tradeoffs of FP and OOP.

Book Description

In “Functional Programming with Go”, you will learn the essential concepts of functional programming. Go is a multi-paradigm language that gives us the option to choose whichever paradigm works best for the particular problem we aim to solve. In this book, you will learn concepts central to the functional programming paradigm and how to leverage them to improve your Go codebases.

The book starts by explaining common concepts of functional programming and how to apply these to your codebase, even if you don’t fully buy into the functional mindset. The subsequent chapters of the book will build out a more comprehensive view of techniques and methods used in functional languages, such as Function Currying and Partial Application. We will develop this further into functional design patterns. Examples will be given throughout the book to show each concept “in action”.

By the end of this book, not only will you know how to apply these techniques in Go, but you will also know when to apply them.

What you will learn

• Learn how to think functionally about your code
• Learn about core FP concepts and how they apply to Go code
• Understand how FP can improve the testability of your codebase
• Learn functional design patterns
• Understand when to choose and not choose FP concepts
• Get a deeper understanding of functional programming

Who This Book Is For

If you are a Go engineer with a background in traditionally object-oriented languages such as Java or C++ and you want to broaden your knowledge of functional programming, this book is for you.

商品描述(中文翻譯)

學習如何利用核心的函數式程式設計(FP)概念來撰寫更具可維護性和可測試性的 Go 代碼。

主要特點

・在架構層面學習函數式程式設計技術,並利用所學解決現實世界的問題。
・深入了解如何以函數式思維看待代碼。
・Go 是一種多範式語言,了解 FP 和 OOP 的取捨。

書籍描述

在《使用 Go 的函數式程式設計》中,您將學習函數式程式設計的基本概念。Go 是一種多範式語言,讓我們可以選擇最適合特定問題的範式。在本書中,您將學習函數式程式設計範式的核心概念,以及如何利用這些概念來改善您的 Go 代碼庫。

本書首先解釋函數式程式設計的常見概念,以及如何將這些概念應用於您的代碼庫,即使您並不完全認同函數式思維。本書的後續章節將建立對函數式語言中使用的技術和方法的更全面的理解,例如函數柯里化(Function Currying)和部分應用(Partial Application)。我們將進一步發展這些概念為函數式設計模式。全書將提供示例,以展示每個概念的「實際應用」。

在本書結束時,您不僅會知道如何在 Go 中應用這些技術,還會知道何時應用它們。

您將學習的內容

・學習如何以函數式思維看待您的代碼
・了解核心 FP 概念及其如何應用於 Go 代碼
・理解 FP 如何改善您的代碼庫的可測試性
・學習函數式設計模式
・了解何時選擇和不選擇 FP 概念
・深入了解函數式程式設計

本書適合誰

如果您是一位具有傳統物件導向語言(如 Java 或 C++)背景的 Go 工程師,並且希望擴展您對函數式程式設計的知識,那麼這本書適合您。

目錄大綱

1. Introducing Functional Programming
2. Treating Functions as First-Class Citizens
3. Higher -Order Functions
4. Write testable code with pure functions
5. Improve code maintainability with immutable states
6. Three must-have functions to write functional code
7. Solving problems recursively or iteratively
8. Readable function composition through fluent programming
9. Apply Functional Design Patterns to solve common problems
10. Thinking functionally to solve problems
11. FP Libraries in Go

目錄大綱(中文翻譯)

1. Introducing Functional Programming

2. Treating Functions as First-Class Citizens

3. Higher -Order Functions

4. Write testable code with pure functions

5. Improve code maintainability with immutable states

6. Three must-have functions to write functional code

7. Solving problems recursively or iteratively

8. Readable function composition through fluent programming

9. Apply Functional Design Patterns to solve common problems

10. Thinking functionally to solve problems

11. FP Libraries in Go