This is what it looks like to colocate related code


This is what it looks like to colocate related code.

Long paths like this: "../../../../"

Become short paths: "./"

I like diffs like this. 👍

To be clear, the win isn't just a short import path.

Colocating related code clarifies the relationship between files, which helps me understand the code.

And it conveys what files are designed for a single feature, and thus, not currently intended for reuse.

View original on X