## Lesson — Relying on filename patterns to distinguish

**Tags:** patterns, architecture, maintenance

Relying on filename patterns to distinguish between different item types is fragile as storage structures evolve. Implementing explicit metadata fields within the objects themselves makes filtering logic more robust and easier to maintain during storage migrations.
