Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

4
Reducing code duplication across projects?
Post Body

I've written 2 good apps now (one on the playstore) and i feel like i'm reusing the same code. In fact, I copy and pasted code from the first app into the second and it worked without me editing anything. I'm still generally new to android development so i'm looking for better ways to do things since I sort of just hack together everything in my apps.

How would you guys suggest reducing code duplication across projects? I was thinking about creating a library that makes it so that you can hook up custom adapters and in 1 line or a cli that generates components for you (just like the Laravel framework cli if you're familiar with that)

Author
Account Strength
90%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,374
Link Karma
576
Comment Karma
1,755
Profile updated: 1 day ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago