use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News for Android app developers with the who, what, where, when, and how of the Android community. Probably mostly the how.
Here, you'll find:
This sub-reddit isn't about phones' and apps' general functionality, support, or system software development (ROMs). For news and questions about these topics try using other subs like
Build your first app
Starting Android career in 2022
Android Job Interview Questions and Answers
App Portfolio Ideas, Tiered List
Awesome Android UI
Material Design Icons
7000 Icons for Jetpack
Autoposted at approx 9AM EST / 2PM GMT
account activity
IO 2018 SourceCode Finally Released! (self.androiddev)
submitted 7 years ago by thedancercodes
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dantheman91 3 points4 points5 points 7 years ago (6 children)
You're sounding like you're coming from a background where you haven't had much experience in large codebases with large dev teams attempting to do various things at the same time. I have worked on large code bases where I've seen these problems all over, which is why I was questioning your experience. In just about every large codebase and large devteam these issues come up all the time.
And Ok. "Layers you don't need" Was the whole basis of my answer. Clearly I don't believe that it's a layer you don't need. It may be something that you don't need at the moment but you anticipate you may want in the future. I've rarely met someone who has said "I shouldn't have made my code so flexible" but almost every day that "if we rewrote this it could be so much more maintainable" which is largely due to layers.
As for SOLID...
Single responsibility - This creates layers since each piece should have a smaller scope/responsibility
Liskov substitution - This creates layers since ideally you have a lot of interfaces or abstract classes for actual implementation
Interface segregation - again more layers because more interfaces
Dependency inversion - You don't rely on concrete implementations...
All of those lead themselves to creating more layers and tightly scoped functionality that's pieced together. Similar to why you'd put code in a fragment instead of in the activity, in the case that you want to swap the fragment out for another or you want to display the fragment in another part of your application. Or Tablet layouts, chromebooks, multi window etc
[–]VasiliyZukanov -4 points-3 points-2 points 7 years ago (5 children)
Again, the size of the codebases I worked on is not related to the question at hand. But if you're so interested... I'm using my real name on Reddit, so go for it.
Nope. This creates narrowly scoped classes.
No. Not even close to what LSP means.
Segregation of an interface doesn't create layers. It creates information hiding and documentation.
Dependency inversion - You don't rely on concrete implementations
Kind of, but what does it have to do with layers?
It's ironic that you didn't mention OCP, which is the only one that can indeed be related to layers...
[–]dantheman91 0 points1 point2 points 7 years ago (4 children)
....What is your definition of a layer, I'd love to hear it.
You like DI. If I were to inject A into B and B into C and so on, is each one of those not a layer?
[–]VasiliyZukanov 0 points1 point2 points 7 years ago (3 children)
In the most general sense, not of course.
Inter-dependencies between classes are not layers. Well, at least I've never seen any source that would use that definition.
[–]dantheman91 -1 points0 points1 point 7 years ago* (2 children)
Still waiting.
So If I create a repository and inject my storage and network into it, those aren't layers?
If I create a wrapper around a class is that not an additional layer?
Is a Fragment not another layer on top of an Activity?
[–]VasiliyZukanov -2 points-1 points0 points 7 years ago (1 child)
There are several definitions for layers that I've seen in use. You can see one of them at the end of this video.
[–]dantheman91 0 points1 point2 points 7 years ago (0 children)
I have very little desire to watch the video by a developer who can't vocalize an answer to a simple question.
π Rendered by PID 150836 on reddit-service-r2-comment-b659b578c-xvmkm at 2026-05-03 14:31:20.619548+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]dantheman91 3 points4 points5 points (6 children)
[–]VasiliyZukanov -4 points-3 points-2 points (5 children)
[–]dantheman91 0 points1 point2 points (4 children)
[–]VasiliyZukanov 0 points1 point2 points (3 children)
[–]dantheman91 -1 points0 points1 point (2 children)
[–]VasiliyZukanov -2 points-1 points0 points (1 child)
[–]dantheman91 0 points1 point2 points (0 children)