FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
FCIS — Functional Core, Imperative Shell
How-ToTools

FCIS — Functional Core, Imperative Shell

via Dev.toRogério Rodrigues de Alcântara3w ago

OVERVIEW 💡 A pattern that splits your codebase into two hard zones: ZONE LOCATION RULE Functional Core src/core/ Pure functions only. No I/O. No side effects. Imperative Shell src/shell/ All I/O lives here. Calls core to make decisions. 💡 Shell (IMPURE) fetches data, asks the core what to do, then acts on the answer. flowchart TB subgraph SHELL[" src/shell/ - Imperative Shell "] direction TB CLI["CLI commands"] subgraph STEPS[" 5-Step Handler Pattern "] P["1. PARSE"] F["2. FETCH"] C["3. CALL CORE"] A["4. ACT"] O["5. OUTPUT"] P --> F --> C --> A --> O end DB["DB queries"] PRINTER["view.printer"] CLI --> STEPS STEPS --> DB STEPS --> PRINTER end classDef shell fill:#0d47a1,stroke:#1565c0,color:#e3f2fd classDef steps fill:#37474f,stroke:#546e7a,color:#eceff1 class SHELL,CLI,DB,PRINTER shell class P,F,C,A,O steps 💡 (Core PURE) never imports from shell. It calls core with data → gets Result back. flowchart TB subgraph CORE[" src/core/ - Functional Core "] direction TB TYPES["types.ts"] VALID

Continue reading on Dev.to

Opens in a new tab

Read Full Article
13 views

Related Articles

Android Remote Compose:讓 Android UI 不用發版也能更新
How-To

Android Remote Compose:讓 Android UI 不用發版也能更新

Medium Programming • 3d ago

How-To

Learn Something Old Every Day, Part XVIII: How Does FPU Detection Work?

Lobsters • 3d ago

“Learn to Code” Is Dead… Learn to Think Instead
How-To

“Learn to Code” Is Dead… Learn to Think Instead

Medium Programming • 3d ago

How-To

How One File Makes Claude Code Actually Follow Your Instructions

Medium Programming • 3d ago

LeetCode Solution: 121. Best Time to Buy and Sell Stock
How-To

LeetCode Solution: 121. Best Time to Buy and Sell Stock

Dev.to Tutorial • 3d ago

Discover More Articles