Fight Complexity with Functional Programming
summary
Claims a metric-driven method reduces cognitive complexity for REST API bulk-request-validation and shows a reusable framework called Vader used at Salesforce, implemented in Kotlin and Arrow and measured with SonarQube where cognitive complexity drops to single digits. Demonstrates validators-as-values, lifting child validators into parent context, configurable fail-fast and error-accumulation orchestration, parallel traversal, and use of the either monad to hold partial failures. Demo code, slides and a production case study back the claim.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 0:35Functional Programming
- 1:03IDE vs Dark Theme
- 4:37Declarative
- 6:09Code Example
- 9:28Imperative vs declarative
- 10:38Parallel vs declarative
- 12:28Monads
- 24:16Validation
- 24:36Imperative
- 31:06Chaos
- 31:46Chain of Responsibility
- 32:43Validations are Functions
- 34:09Make Everything Immutable
- 36:29Heterogeneous Data Types
- 38:29Type Alias
- 40:24Order of Validations
- 44:34Orchestration
- 48:59Operators
- 49:34Partial Failures
related talks
45mConquering complexity: refactoring JavaScript projects
58mFrom Zero to Live with Functional JavaScript Applications (Part 2)
40mConquering Complexity: Refactoring JavaScript Projects
45mFrom Zero to Live with Functional JavaScript Applications (Part 1)
34m[Eng Sub]Is it Okay to Pursue Functional Programming on Frontend?
01h 02mFractal Architecture
31mWriting backend APIs in a functional programming style
52mEmbracing Complexity Entropy in Software Design
