Object Oriented Tricks
Submitted by Arun Sasidharan (@arunsasi) on Monday, 5 June 2017
There are many ways to write bad code, but just a few principles for writing good ones. In this talk, we’ll go through some of the tricks that can be used to design Object Oriented code that is maintainable and easy to read. These are principles that have helped me write, maintain and evolve a multi-module project with around 150,000 lines of code over a period of 3 years at a 99.8% crash-free rate (tracked via Crashlytics).
Your takeaway from this talk will be a better understanding of what good code is and some nifty tips to add to your arsenal while writing code every day.
These principles have been taken from the works of Venkat Subramaniam and Robert C Martin.
- Command-Query Separation
- Law of Demeter
- Function structure
- Single Level of Abstraction
- Dealing with entropy
Arun is a Senior Android Engineer at Fueled and was previously the Lead Android Engineer at 1mg. He is an avid reader and passionate about software design and architecture. He is on an endless journey to learning the craft of writing clean code.