Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Functional Programming in Go
  • Toc
  • feedback
Learning Functional Programming in Go

Learning Functional Programming in Go

By : Sheehan
4.1 (8)
close
Learning Functional Programming in Go

Learning Functional Programming in Go

4.1 (8)
By: Sheehan

Overview of this book

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.
Table of Contents (13 chapters)
close

Who this book is for

A lot of the information in this book requires only a high school education.

For the programming sections in this book, you should have at least one year programming experience. Proficiency with Go or Haskell is ideal, but experience with other languages such as C/C++, Python, Javascript, Java, Scala or Ruby is also sufficient. You should have some familiarity using the command line.

This book should appeal to two groups:

  1. Non-programmers (read Chapter 11, Category Theory That Applies) If you are one of these:
  • K-12 math teacher and want to see why what you are teaching matters
  • Math teacher and want to see how what you are teaching relates to other branches of mathematics
  • Student in law school and want to understand what you will be doing when you plead your client’s case
  • Soccer enthusiast and like math
  • Person interested in learning category theory
  • Lover of the Lambda Calculus and want to see it illustrated with diagrams, pictures, and Go code
  • Manager of software projects and want to see a better correspondence between requirement gathering, implementation, and testing
  • C-level executive and want to understand what motivates and excites your IT staff
  1. Programmers: If you are one of these:
  • Software enthusiast and want to learn Functional Programming
  • Software tester and want to see a better correspondence between requirement gathering, implementation, and testing
  • Software architect and want to understand how to use FP
  • Go developer and like soccer
  • Go developer and want to implement your business use case programming tasks with more expressive code
  • Go developer and want to understand Generics
  • Java developer and would like to understand why we say, less is more
  • Your_language_here developer who knows FP and wants to transfer your skills to Go
  • Go developer looking for a better way to build data transformation pipelines
  • Go developer and would like to see a viable way to write less code, that is, fewer if err != nil blocks
  • Experienced Go developer and want to learn FP or add some tools to your toolbox
  • Person involved in software development and want to understand any of the terms below.

If you are a Go developer looking for working code, with line-by-line explanations for any of the following, this book is for you:

  • Benchmark testing
  • Concurrency (Goroutines/Channels)
  • Currying
  • Data transformation pipeline
  • Decorator Pattern
  • Dependency Injection
  • Duck typing
  • Embedding Interfaces
  • Error handler
  • Function composition
  • Funcitonal parameters
  • Functors
  • Generics via code generation
  • Hollywood Principle
  • Interface-driven development
  • I18N (language translation)
  • IoC
  • Lambda expressions in Go
  • Layered application framework
  • Log handler
  • Monads
  • Monoids
  • Observer Pattern
  • Partial application
  • Pipeline to process credit card payments
  • Recursion
  • Reduce function to sum invoice totals
  • Solve circular dependency errors
  • Table-driven http API test framework
  • Type Class
  • Upload/download files to/from Google Cloud Buckets
  • Y-Combinator
If I decide to change the format or update this info, I'll put it here: http://lexsheehan .blogspot.com/2017/11/who-this-book-is-for.html.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete