COMP 305: Object-Oriented Software Design

University of San Diego, Fall 2025

Functional Programming

Functional programming treats computation as the evaluation of mathematical functions, emphasizing immutability and avoiding state changes.

🔒 Immutability

Data doesn't change after creation.

✨ Pure Functions

Functions with no side effects that always return the same output for the same input.

🔗 Function Composition

Building complex operations by combining simpler functions.

📦 Higher-Order Functions

Functions that take or return other functions.

Examples