# Simplifying a Proposed File-List Composable Through Architecture Review

DevFeed: [Simplifying a Proposed File-List Composable Through Architecture Review](<https://devfeed.tech/articles/celebrate-the-code-you-didn-t-write-30609.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2025/06/celebrate-the-code-you-didnt-write/>)

Published: 2025-06-06T03:47:36Z

Content type: opinion

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [interfaces](<https://devfeed.tech/topics/interfaces.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [code](<https://devfeed.tech/tags/code.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [simplify](<https://devfeed.tech/tags/simplify.md>)

## AI overview

An architecture and tech-spec review of a proposed file-list Composable revealed that its dependency-injection machinery and added interfaces created unnecessary complexity. By examining use cases, letting callers construct data sources, and removing interfaces that added no value, the team simplified the design until the proposed code was eliminated.

## Source excerpt

Over the past few years I've been driving an architecture and tech spec review process at work. This has been helpful in breaking down certain silos, distributing knowledge across the organization, and building skills and experience in more junior engineers. A recent tech spec caught my eye, and resulted in a really valuable learning opportunity. The specifics of the spec aren't terribly important, but at a high level the proposal was to introduce a single Composable to represent lists of files anywhere in the app. Due to the multitude of sources that can provide lists of files this was accomplished with a relatively complex set of generic data source factories that were registered via our dependency injection system to later be looked up and constructed.