An annotation-processing based library that helps avoiding big if/else blocks through the "Command" pattern, where every block is declared in a separate method, and this method is annotated with @Command, and this command is triggered if the key mentioned in the @Command meets the condition expected. No Reflections used.
JPatterns is a collection of annotations that should make it easier to communicate the use of Design Patterns within your code to your fellow developers and your future self.
Design Patterns are typically encoded into Java code in an ad-hoc fashion. They are either embedded into the names of the classes or written into the Javadocs. Unfortunately it is impossible to accurately determine a pattern based solely on the class structure without knowing the intent of the code author.
This repository showcases and compares different architectural patterns that can be used to build Android apps. The exact same sample app is built three times using the following approaches:
A demonstration of handling Activities and Fragments using Dagger dependency injection framework
The real benefit here is that you create an object graph only when you need it. This contributes to keeping the memory footprint of your app as low as possible.