Главная
Study mode:
on
1
Intro
2
When people think of FP...
3
Misconceptions?
4
Why FP?
5
A gentle introduction
6
Say what, not how
7
Immutable functions
8
Pure function vs side-effect
9
Idempotence
10
First-class / higher-order functions
11
Recursion vs Tail Recursion
12
Up Next... Closures
13
Currying Function with 1 parameter, returning Closure
14
Practical use-case: Reduce function params
15
Server Options Example
16
Defining Options
17
Constructor
18
Default Options
19
Declarative Programming?
20
Hasgo
21
Generating functions
22
Generated Code
23
Code Generation Example
24
Add your own!
25
Some drawbacks..
Description:
Explore functional programming concepts and their application in Go during this GopherCon 2020 talk. Discover the benefits of functional programming and learn how to implement closures, currying, tail-recursion, and other techniques to solve real-world problems. Compare functional approaches to traditional methods, and gain insights into useful libraries that streamline functional Go programming. Delve into topics such as immutable functions, pure functions, side effects, idempotence, first-class and higher-order functions, and recursion. Examine practical use cases, including reducing function parameters and implementing server options. Investigate declarative programming, code generation, and potential drawbacks of functional programming in Go.

Functional Programming with Go

Gopher Academy
Add to list
0:00 / 0:00