GopherCon 2017: Aaron Schlesinger - Functional Programming in Go

preview_player
Показать описание
Viewed as a set of design patterns, we can apply functional programming concepts to Go code to get simpler, more modular code. I'll eschew most of the FP theory and show some of these concepts and patterns in real code. I'll also show how small, local bits of "functionalization" can lead to large improvements over time.
Рекомендации по теме
Комментарии
Автор

Excellent talk. I wish all gophers see this.

llorllale
Автор

27:35 "By convention, left = success, right = failure"
No; in both Haskell and Scala, the convention is: left = failure, right = success.

jubbs
Автор

You can't do useful Funtors without generics.... So it's always predef types such OptionalInt and so on.

TE
Автор

what kind of developers conference is this, where you ask *programmers* - "have you ever heard of FP/HO funcs"?

maxbashyrov