ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Member-only story

The technical choices I make to build great Android apps. Part 2 — Code quality

This 3-part mini-series talks a little bit about the technical choices I make when building an app, specifically an A-Z app, to go at least some of the way to describe some aspects of what makes a (technically) great app.

  1. UI
  2. Code quality
  3. Architecture

Code quality

The quality of the code is more than just how you go about structuring your classes but extends into how you spot potential issues from null pointer exceptions to memory leaks.

Static analysis

There are some excellent static analysis tools out there such as Facebook’s Infer and Uber’s NullAway if your code base is still heavily Java, however, as my apps are now 100% Kotlin they no longer offer me much help.

With Java projects I would have used checkstyle, now I use detekt for Kotlin to spot little code smells that could be better, along with the built-in Lint checks too of course.

detekt

If you have converted your build scripts to use the Gradle Kotlin DSL then detekt can…

Published in ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Written by Matthew Dolan

Matt Dolan has been eating doughnuts and developing with Android since the dark days of v1.6.

Responses (1)

Write a response