Cleaning up your messy Android code

(This is an excerpt from the blog post which was originally published on SignEasy blog. Read the complete piece here.)

Messing up code is relatively simple — quickly add a couple of new features and skip the periodic refactoring and lo! Messy code!

A more structured code helps reduce time in adding newer functionalities and also makes it easier to add new people on to your project. I happened to come across the following tweet that sums up code quality.

Click listeners

A convenient way to react to a click event would be to add a click listener to each view and implement the interface right there.Well, that’s what most of us do in the beginning. But as the app advances and views get complicated, we end up with a lot of click implementations dispersed throughout the code. Head here to read the other tricks.

Show your support

Clapping shows how much you appreciated SignEasy’s story.