Skip to main content

5 docs tagged with "functional-programming"

View all tags

Chapter 10 — Streams

Complete guide to Java Stream pipelines: creating streams, intermediate vs terminal operations, Optional, Collectors (groupingBy, partitioningBy, joining, teeing), primitive streams, flatMap, lazy evaluation, and parallel streams with thread-safety warnings.

Chapter 3: Paradigm Overview

The three programming paradigms — structured, object-oriented, and functional — each impose discipline by removing capabilities from the programmer. Martin shows how each paradigm maps directly to a fundamental concern of software architecture.

Chapter 6: Functional Programming

Functional programming's core discipline — immutability — eliminates entire classes of concurrency bugs. Learn how immutability, segregation of mutability, and event sourcing shape modern system design.

Java Functional Interfaces & Functional Factory Pattern

In-depth architectural analysis of Java's core functional interfaces (Supplier, Consumer, Function, Predicate), JVM invokedynamic mechanics, LambdaMetafactory linkage, capturing closures vs singleton caching, and replacing GoF Factory patterns with modern functional registries.