Introducing Functional Programming in C++

Introducing Functional Programming in C++
Introducing Functional Programming in C++

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 15m | 178 MB
eLearning | Skill level: Intermediate

Functional programming allows you to write more concise code that’s easier to read, debug, and maintain. It revolves around powerful, mathematical functions that tell the computer what to do—not how to do it. The developer doesn’t have to worry about order of execution, loops, or conditions. You simply define the desired outcome; the computer takes care of the rest. This course introduces the benefits and features of functional programming, and shows how to use different techniques and libraries in C++ to make code more functional. Instructor Troy Miles reviews built-in functions such as transform, copyif, accumulate, and bind and shows how to convert statements into more functional expressions using C++ Lambda functions. Plus, explore template metaprogramming with C++ templates and the STL and Boost.Hana libraries, and functional reactive programming with the RxCpp Reactive Extensions library for C++.

Topics include:

  • Unit testing and functional programming
  • Binding
  • Function and Lambda functions
  • C++ templates
  • Working with the Standard Template Library and Boost.Hana
  • Functional reactive programming
+ Table of Contents

1 Unleash the power functional programming in C++
2 What you should know
3 Benefits of functional programming
4 Unit testing functional programming
5 Enabling C++ 17
6 transform instead of map
7 copy if instead of filter
8 accumulate instead of reduce
9 bind
10 Functions
11 Lambda functions Curry
12 Lambda functions Closures
13 Challenge Factorial continuous add
14 Solution Factorial continuous add
15 C++ templates
16 Factorial
17 The Standard Template Library
18 Functional programming libraries
19 Boost.Hana
20 Challenge Fibonacci generator
21 Solution Fibonacci generator
22 Intro to Reactive Extensions
23 RxCpp library
24 Challenge Word frequency counter
25 Solution Word frequency counter
26 Next steps