From Objects to Functions: Build Your Software Faster and Safer with Functional Programming and Kotlin
暫譯: 從物件導向到函數式編程:使用函數式編程和 Kotlin 更快速且安全地構建軟體
Barbini, Uberto
- 出版商: Pragmatic Bookshelf
- 出版日期: 2023-10-17
- 售價: $1,900
- 貴賓價: 9.5 折 $1,805
- 語言: 英文
- 頁數: 325
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1680508458
- ISBN-13: 9781680508451
-
相關分類:
JVM 語言
立即出貨 (庫存=1)
相關主題
商品描述
Build applications quicker and with less effort using functional programming and Kotlin. Learn by building a complete application, from gathering requirements to delivering a microservice architecture following functional programming principles. Learn how to implement CQRS and EventSourcing in a functional way to map the domain into code better and to keep the cost of change low for the whole application life cycle.
If you're curious about functional programming or you are struggling with how to put it into practice, this guide will help you increase your productivity composing small functions together instead of creating fat objects.
Switching to the functional paradigm isn't easy when you're used to object-oriented programming. You need more than just lambdas and mapping over collections to get a declarative style and disentangle the state from the computations. Use transformations and compositions to help you write less code with better results. Boost your productivity and harness the power of functional programming by creating real-world applications rather than focusing on theoretical concepts.
Work through a series of short exercises to find and compose pure functions, and create data structures that work like algebra. Get rid of mutable state in your software to eliminate the main source of bugs. Apply CQRS and EventSourcing patterns to translate stakeholder requirements into functional design and then into code. See how Kotlin's easy-to-learn syntax and functional-friendly approach make it a great option for a pragmatic language that integrates well with existing Java code and libraries.
Leverage functional programming to build and deliver robust applications in less time and with fewer defects.
What You Need:
The code in this book is designed to allow you to build your application from scratch on Windows, Mac and Linux. You will need a recent IDE, we recommend IntelliJ Community Edition, and Kotlin 1.3.x or later.
商品描述(中文翻譯)
建立應用程式的速度更快且所需努力更少,使用函數式編程和 Kotlin。透過構建一個完整的應用程式來學習,從收集需求到交付遵循函數式編程原則的微服務架構。學習如何以函數式的方式實現 CQRS 和 EventSourcing,以更好地將領域映射到代碼中,並在整個應用程式生命週期中保持低變更成本。
如果你對函數式編程感到好奇,或在如何將其付諸實踐方面遇到困難,這本指南將幫助你提高生產力,將小函數組合在一起,而不是創建臃腫的物件。
當你習慣於物件導向編程時,轉向函數式範式並不容易。你需要的不僅僅是 lambda 和對集合的映射,還需要獲得聲明式風格,並將狀態與計算解耦。使用轉換和組合來幫助你編寫更少的代碼,並獲得更好的結果。通過創建現實世界的應用程式來提升你的生產力,並利用函數式編程的力量,而不是專注於理論概念。
通過一系列簡短的練習來尋找和組合純函數,並創建像代數一樣運作的數據結構。消除軟體中的可變狀態,以消除主要的錯誤來源。應用 CQRS 和 EventSourcing 模式,將利益相關者的需求轉化為函數式設計,然後轉化為代碼。看看 Kotlin 易於學習的語法和對函數友好的方法,如何使其成為一種實用的語言,能夠與現有的 Java 代碼和庫良好整合。
利用函數式編程在更短的時間內構建和交付穩健的應用程式,並減少缺陷。
你需要的:
本書中的代碼旨在讓你在 Windows、Mac 和 Linux 上從零開始構建應用程式。你需要一個最近的 IDE,我們推薦 IntelliJ Community Edition,以及 Kotlin 1.3.x 或更高版本。
作者簡介
Uberto Barbini is a very passionate programmer, starting when he created his first video game on the ZxSpectrum many years ago. He worked in all kinds of organizations, from the very big to the very small, coaching and helping teams build software in an efficient and sustainable way to create value for the company. He has used a range of functional languages (Haskell, Clojure, Scala), and he is currently in love with the simplicity of Kotlin and its productivity. He is a regular speaker at conferences around the world on Kotlin and Java, and he enjoys teaching courses and mentoring young programmers.
作者簡介(中文翻譯)
Uberto Barbini 是一位非常熱情的程式設計師,他在許多年前創作了他的第一款 ZxSpectrum 電子遊戲,從此開始了他的程式設計之旅。他曾在各種組織中工作,從大型企業到小型公司,指導並幫助團隊以高效且可持續的方式開發軟體,為公司創造價值。他使用過多種函數式語言(Haskell、Clojure、Scala),目前對 Kotlin 的簡單性和生產力情有獨鍾。他是全球各地關於 Kotlin 和 Java 的會議常客,並且喜歡教授課程和指導年輕程式設計師。