A Focused Interface for Data Exchange
A small public interface can define what import or export means while several private steps handle formats, conversions, and storage.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a file import
An import command can accept one stream and return typed rows with diagnostics. Internal methods can decode text and check fields without exposing parsing stages to every caller. Typed reader results show the information that can be carried.
Keep at least one external example
An independent fixture verifies the overall interface while internal changes are made. The example and function contract should both state character encoding and error handling.[1]