Skip to content

Instantly share code, notes, and snippets.

@cloudshooterhuman
Created May 3, 2017 16:50
Show Gist options
  • Save cloudshooterhuman/eefabc15cc44cd82a3a4b5e140d4869c to your computer and use it in GitHub Desktop.
Save cloudshooterhuman/eefabc15cc44cd82a3a4b5e140d4869c to your computer and use it in GitHub Desktop.
# Package by features
The directory structure is the very first thing encountered by a programmer when browsing source code. Everything flows from it. Everything depends on it. It is clearly one of the most important aspects of your source code.
### Gains and Benefits
* By looking at the structure you can already tell what the app is all about (figure 1);
* Higher modularity;
* Easier code navigation;
* Higher level of abstraction;
* Separates both features and layers;
* More readable and maintainable structure;
* More cohesion;
* Much easier to scale;
* Less chance to accidentally modify unrelated classes or files;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment