Make sense of that long function. SLAP it! (Single Level of Abstraction Principle)
Leave the code cleaner than you found it.
Use the Starter Pattern to simplify Activity launches
Use this simple trick to make your functions easy to comprehend!
The are no real laws in programming, and that’s sort of the only law. Law of Demeter(LoD) is more of a guideline than a principle to help reduce coupling between components.
OO Tricks is a mini series on writing maintainable Object Oriented code. Now let’s talk about functions!
This post, like Kent Beck says in his book Implementation Patterns**, is based on a rather fragile premise that good code matters”. But we all know that good code matters as we’ve had to deal for so long with its lack.