Core · Module 7 · Lesson 10 of 11
Filesystem, Time and Formatting
Use standard-library types for paths, durations and formatted output instead of fragile strings and ad-hoc clocks.
Pro — members onlyAbout 11 minutes
By the end you can
- Build and inspect filesystem paths without manual separator logic
- Distinguish a duration, time point and calendar representation
- Format output while handling filesystem and clock errors explicitly
Builds on Modern Standard-Library Tools: optional, variant, span and ranges.
01 · A question first
A file path built with string concatenation breaks on another operating system, and a timeout based on wall-clock time jumps backward. Which standard types represent the intent instead?
Make a guess before you read on.
02 · The idea
Members only
Unlock the full lesson
This lesson is part of the membership. Join to read it in full, along with every other premium deep dive.
What's inside
- Start with the problem
- How the idea works
- Why it is correct
- What it costs
- Pitfalls and variations
- Production guidance
Something wrong with this lesson? Report a problem