Image for post
Image for post

Doing Great Work in Android Development

John Li
John Li
Aug 14 · 6 min read

What gets in the way of doing great work?

Core Values

Values are the things that you believe are important in the way you work. Here are some things we value when we are collaborating and coding.

Android-first Mindset

Image for post
Image for post

Readability

Image for post
Image for post

Maintainability

The code we write will always have a reach greater than we initially imagine. The codebase changes over time and we need to be mindful about how we write code to make it easier for other people now or later to interact with it.

Feedback is a gift

Image for post
Image for post

Principles

With our values established, we can talk about the details around how we can align with contributing better software.

Rooted in SOLID

  • Single Responsibility Principle
  • Open-closed Principle
  • Liskov Substitution Principle
  • Interface Segregation Principle
  • Dependency Inversion Principle

Use Nullability Wisely

Promote Immutability

Use Meaningful Names

Avoid Duplication

Image for post
Image for post

Fight Software Rot

Master Inheritance vs Composition

Use inheritance when objects share from a common set of data and behaviors. Too much inheritance will make a set of classes hard to understand.

Write Unit Tests

Image for post
Image for post

Coding by Convenience is a Pitfall

Image for post
Image for post

Conclusion

This is the framework for how the Design Services Android team achieve great work. If you are on a team where you’re not sure how to do the same, work together to define your own standards and guidelines.

The Startup

Medium's largest active publication, followed by +733K people. Follow to join our community.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store