Uberto Barbini, a long-running software developer who shifted from object-oriented programming to functional programming roughly ten years ago, discusses how the principles of functional programming - immutability, pure functions, and explicit side effects - make code easier to compose, test, and maintain. He argues that the main benefit of functional programming is efficiency in delivering value to the customer, and that the explicit nature of pure functions makes it straightforward to compose small functions into larger functionality while understanding their impact.
The conversation explores how functional programming principles become even more relevant in the age of AI coding agents. Barbini notes that agents work more efficiently and produce more consistent results on well-modularized, clearly defined codebases than on tangled ones, because agents rely on context and struggle with accidental complexity, complicated inheritance, and implicit conventions. He describes a multi-layered quality assurance approach inspired by the Swiss cheese security model, combining linters, mutation tests, agent-checking-agent reviews, and human oversight of pull requests.
Barbini also addresses the human and educational challenges of AI-assisted development. He warns that many developers fail to engage critically with AI output, and that junior developers risk missing the step-by-step learning process if they rely on AI without understanding the generated code. He advocates for using AI as a learning tool rather than a shortcut, and emphasizes that experienced developers who understand system design can multiply their productivity dramatically with agents, while those without that foundation often get sidetracked.