# Maintainability through code-comment colocation

DevFeed: [Maintainability through code-comment colocation](<https://devfeed.tech/articles/colocation-51745.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/colocation>)

Published: 2019-06-17T00:00:00Z

Content type: opinion

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Maintainability](<https://devfeed.tech/topics/maintainability.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>), [context](<https://devfeed.tech/topics/context.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [context](<https://devfeed.tech/tags/context.md>), [maintainability](<https://devfeed.tech/tags/maintainability.md>), [technical-debt](<https://devfeed.tech/tags/technical-debt.md>)

## AI overview

The article argues that colocating code comments with the code they explain improves maintainability. Separate comment files or directories can become outdated, be overlooked, and create unnecessary context switching for maintainers.

## Source excerpt

Maintainability through colocation