Colocation boils down to a simple concept: place code as close to where it's relevant as possible. Alternatively, things that change together, should be placed together [[20200307101703-easy-to-change]]
This simply makes things easier to maintain. It's easier to map where your dependencies are, it's easier to find related code, it's easier to delete things all at once.
Some examples of co-location:
Keywords: co-location