Learning Functional Programming in Go
eBook - ePub

Learning Functional Programming in Go

  1. 670 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning Functional Programming in Go

About this book

Function literals, Monads, Lazy evaluation, Currying, and more

Key Features

  • [*] Write concise and maintainable code with streams and high-order functions
  • [*] Understand the benefits of currying your Golang functions
  • [*] Learn the most effective design patterns for functional programming and learn when to apply each of them
  • [*] Build distributed MapReduce solutions using Go

Book Description

Lex Sheehan begins slowly, using easy-to-understand illustrations and working Go code to teach core functional programming (FP) principles such as referential transparency, laziness, recursion, currying, and chaining continuations.This book is a tutorial for programmers looking to learn FP and apply it to write better code. Lex guides readers from basic techniques to advanced topics in a logical, concise, and clear progression.The book is divided into four modules. The first module explains the functional style of programming: pure functional programming, manipulating collections, and using higher-order functions. In the second module, you will learn design patterns that you can use to build FP-style applications. In the next module, you will learn FP techniques that you can use to improve your API signatures, increase performance, and build better cloud-native applications. The last module covers Category Theory, Functors, Monoids, Monads, Type classes and Generics.By the end of the book, you will be adept at building applications the FP way.

What you will learn

  • [*] Learn how to compose reliable applications using high-order functions
  • [*] Explore techniques to eliminate side-effects using FP techniques such as currying
  • [*] Use first-class functions to implement pure functions
  • [*] Understand how to implement a lambda expression in Go
  • [*] Compose a working application using the decorator pattern
  • [*] Create faster programs using lazy evaluation
  • [*] Use Go concurrency constructs to compose a functionality pipeline
  • [*] Understand category theory and what it has to do with FP

Who this book is for

This book is for Golang developers comfortable with OOP and interested in learning how to apply the functional paradigm to create robust and testable apps. Prior programming experience with Go would be helpful, but not mandatory.

]]>

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Table of contents

  1. Title Page
  2. Copyright
  3. Credits
  4. About the Author
  5. Acknowledgments
  6. About the Reviewer
  7. www.PacktPub.com
  8. Customer Feedback
  9. Preface
  10. Pure Functional Programming in Go
  11. Manipulating Collections
  12. Using High-Order Functions
  13. SOLID Design in Go
  14. Adding Functionality with Decoration
  15. Applying FP at the Architectural Level
  16. Functional Parameters
  17. Increasing Performance Using Pipelining
  18. Functors, Monoids, and Generics
  19. Monads, Type Classes, and Generics
  20. Category Theory That Applies
  21. Miscellaneous Information and How-Tos

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Learning Functional Programming in Go by Lex Sheehan in PDF and/or ePUB format, as well as other popular books in Computer Science & Object Oriented Programming. We have over one million books available in our catalogue for you to explore.