Functional Programming For Java LiveLessons

Video description

7+ Hours of Video Instruction

Almost 8 hours teaching Java programmers how to design and create Java code using functional programming style and the new language features added with Java 8 that support that style.

Functional Programming for Java LiveLessons provides a solid foundation for designing and creating Java code using the functional programming style. Simon Roberts, best-selling author of Java Certification and programming books and video titles, has created a unique video course using live-action lectures, code demos, and whiteboard instructions to take learners on a learning journey by telling a story.

Functional Programming for Java LiveLessons is a complete resource where each new concept is introduced gradually, based on examples that start in the familiar object-oriented style. A solid foundation is created before adding on more complicated concepts. The discussion then examines how this example might be improved and introduces functional concepts in small steps, building in relevant code as you go and in a way that emphasizes understanding. Exercises are suggested throughout, allowing the viewer to stop and try solving the examples on their own before continuing. The code for this course is available as a GIT repository and viewers are encouraged to work with it to further their understanding.

Topics include:

  • From an OO design pattern to a functional foundation
  • Building more functional concepts
  • The power of combinations and modifications
  • Working with pure functions
  • Streams API
  • Advanced patterns and exception handling

Learn How To

  • Approach Java in a more functional way rather than an object-oriented approach
  • Use advanced Java syntax features: nested and inner classes, anonymous inner classes, and lambda expressions
  • Define simple generic methods, increasing the generality of your code
  • Compose and adapt functions, allowing fine-grained reuse of code and avoid duplication
  • Create software with dynamically variable rather than fixed behavior
  • Understand the benefits of, and write software using pure functions
  • Understand and use the Java 8 Streams API, including the monad concept, reduce and collect operations, and the parallel execution of Streams
  • Handle exceptions, both checked and unchecked, in Stream processing, and other situations where exceptions would break the system either compile or runtime.

Who Should Take This Course

  • Java programmers looking to leverage the new functional features of Java 8
  • Java programmers who are finding functional features being used by their teammates, and who want to understand both the syntax being used, and the design patterns that are being implemented by those features.
  • OO programmers looking to learn the functional approach, who write in languages that have sufficiently similar syntaxes, such as C#, C++, and so on.

Course Requirements

  • Learners should have a reasonable grasp of Java, or a solid grasp of another object-oriented programming language with similar syntaxes (for example, C# or C++).
  • Learners should have a basic competence in designing in the object oriented style

Lesson descriptions

The course begins with Lesson 1, “From an OO design pattern to a functional foundation.” This lesson examines solving a seemingly simple problem using regular object-oriented approaches. The discussion develops an increasingly flexible solution, which forms a bridge to a key pattern in functional programming style.

Lesson 2, “Building more functional concepts,” starts by looking at where code should be located for maximum maintainability. In the process, the discussion discovers how behavior can be passed into and out of methods. This lesson investigates the singleton and the factory; and compares those with constructors. It reviews many syntax features, including nested classes, private nested classes, and anonymous inner classes. It then introduces lambda expressions, their requirements, and syntactic variations. This lesson also looks at writing generic methods so as to create even more general code, and get the benefits of consistency checking through the compiler.

Lesson 3, “The power of combinations and modifications,” extends the idea that behavior can be passed as an argument to, and returned from, a method to show that such behavior can actually be computed, rather than fixed. This lesson shows how to build behavior out of other existing behaviors, modify existing behaviors, and combine them in new ways. As a result, you'll learn to re-use code at the level of a function, rather than at the level of a class or object.

Lesson 4, “Working with pure functions,” investigates pure functions; discovering what they are, and how to address the seeming limitations of them. It will discuss a key technique in this kind of programming. The discussions will build a simple, readily comprehensible model of one of Java's key APIs. In the process, you'll gain a solid understanding of the functional programming concept called a “monad.”

Lesson 5, “Streams API,” takes the monad concept learned in Lesson 4 and completes your understanding, so you can use the Streams API to solve potentially large-scale data processing problems.

Lesson 6, “Advanced patterns and exception handling,” looks at the problem of how to handle exceptions that might arise during stream processing. In building the story, you'll strengthen your understanding of how function composition and adaptation is used to solve real programming problems.

Download the lesson files here.

About Pearson Video Training

Pearson publishes expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. These professional and personal technology videos feature world- leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, Pearson IT Certification, Prentice Hall, Sams, and Que. Topics include: IT Certification, Network Security, Cisco Technology, Programming, Web Development, Mobile Development, and more. Learn more about Pearson Video training at http://

Table of contents

  1. Introduction
    1. Functional Programming For Java LiveLessons: Introduction 00:03:19
  2. Lesson 1: From an OO design pattern to a functional foundation
    1. Learning objectives 00:00:32
    2. 1.1 Introducing the problem 00:14:03
    3. 1.2 Deeper into the problem 00:05:45
    4. 1.3 Looking at sorting 00:08:27
    5. 1.4 Generalizing the selection mechanism 00:03:33
    6. 1.5 Coding the improved selection 00:11:14
  3. Lesson 2: Building more functional concepts
    1. Learning objectives 00:01:02
    2. 2.1 A question of ownership 00:11:02
    3. 2.2 A question of quantity 00:09:05
    4. 2.3 A question of visibility 00:08:40
    5. 2.4 Simplifying the syntax 00:06:51
    6. 2.5 Reviewing lambda syntax and rules 00:04:20
    7. 2.6 Lambda syntax variations - part 1 00:06:45
    8. 2.7 Lambda syntax variations - part 2 00:05:27
    9. 2.8 The @FunctionalInterface annotation 00:05:03
    10. 2.9 Giving type to a lambda 00:10:58
    11. 2.10 Further generalization 00:10:49
    12. 2.11 Demonstrating generalization 00:04:10
  4. Lesson 3: The power of combinations and modifications
    1. Learning objectives 00:01:16
    2. 3.1 Improving the behavior factories 00:06:37
    3. 3.2 Requirements for closure 00:07:33
    4. 3.3 Another example 00:06:17
    5. 3.4 Combining behaviors - part 1 00:03:55
    6. 3.5 Combining behaviors - part 2 00:12:29
    7. 3.6 Cleaning up the design 00:09:02
    8. 3.7 Interfaces for lambdas 00:11:13
    9. 3.8 Using Predicate in the example 00:04:21
    10. 3.9 Functions adapting functions 00:05:08
    11. 3.10 Coding adapters 00:11:16
  5. Lesson 4: Working with pure functions
    1. Learning objectives 00:01:18
    2. 4.1 Concepts of pure functions 00:09:13
    3. 4.2 Pure functions in practice 00:03:04
    4. 4.3 Planning a pipeline framework 00:02:51
    5. 4.4 Implementing a pipeline framework 00:08:13
    6. 4.5 Internal iteration 00:06:04
    7. 4.6 Making changes - part 1 00:03:27
    8. 4.7 Making changes - part 2 00:07:38
    9. 4.8 Coding immutable data types 00:09:38
    10. 4.9 One-to-many changes 00:11:28
    11. 4.10 Keeping track of boundaries 00:04:42
    12. 4.11 The formal origins of the wrapper 00:02:32
    13. 4.12 Another wrapper 00:10:53
    14. 4.13 Using Optional in the car API 00:05:32
  6. Lesson 5: Streams API
    1. Learning objectives 00:00:51
    2. 5.1 Introducing Streams 00:10:26
    3. 5.2 Streams coding principles 00:16:20
    4. 5.3 Getting a result 00:11:08
    5. 5.4 More flexible ways to a result 00:16:45
    6. 5.5 Looking at concurrency 00:04:30
    7. 5.6 More about concurrency 00:05:31
    8. 5.7 More complex results 00:05:14
    9. 5.8 Collecting to a table 00:06:33
    10. 5.9 Cleaning the results 00:05:56
    11. 5.10 More results processing 00:06:14
    12. 5.11 Designing a bigger example 00:08:08
    13. 5.12 Building a bigger example 00:10:33
    14. 5.13 More Java 8 syntax 00:05:00
    15. 5.14 Coding with method references 00:06:53
    16. Coding with method references Summary 00:01:45
  7. Lesson 6: Advanced patters and exception handling
    1. Learning objectives 00:00:32
    2. 6.1 A hidden problem 00:04:56
    3. 6.2 Two basic solutions 00:03:53
    4. 6.3 Another improvement 00:05:43
    5. 6.4 Generalizing the wrapper 00:08:48
    6. 6.5 Keeping track of the problem 00:10:29
    7. 6.6 Reviewing either 00:01:45
  8. Summary
    1. Functional Programming For Java LiveLessons: Summary 00:01:23

Product information

  • Title: Functional Programming For Java LiveLessons
  • Author(s): Simon Roberts
  • Release date: March 2018
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 0134778235