Learning Functional Programming in Go
eBook - ePub

Learning Functional Programming in Go

Lex Sheehan

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

Learning Functional Programming in Go

Lex Sheehan

Book details
Table of contents
Citations

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.

]]>

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
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 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
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 here.
Is Learning Functional Programming in Go an online PDF/ePUB?
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 Ciencia de la computación & Programación de código abierto. We have over one million books available in our catalogue for you to explore.

Information

Table of contents