Skip to content
public-library›Rules›Code design›Organize code by feature

Organize code by feature

Group files by the feature they belong to, and keep code as close as possible to where it is used. Move code to a shared location only when a second feature uses it.

In the full rule