A functional core handles domain transformations with pure, composable functions. It accepts inputs, returns outputs, avoids mutation and external state, and remains predictable and testable. section 3.2
Separate transformation logic from stateful integration work:
- Place API calls, database queries, file operations, and external-system writes in an object-oriented shell or adapter. section 3.2
- Compose transformations with pipe() or compose() to create a modular, declarative data flow. section 3.2
Interview-ready pipeline
A DataSource fetches raw records, the core filters valid items, doubles their values, and summarizes count and sum, then a DataSink saves the result. This separation supports isolated testing and easier extension.


