hello every, Is [modern android architecture](<htt...
# android-architecture
a
hello every, Is [modern android architecture](https://developer.android.com/topic/architecture) based on [togaf](https://pubs.opengroup.org/togaf-standard)?
p
The layered architecture comes from clean architecture (Uncle Bob). Not sure about the origins of the other stuff mentioned there though but they have been "standard practice" for Android apps for some time.
a
@Phil Bayfield what is clean architecture (Uncle Bob)? send me link. google have much information. I don't make sure.
a
@Phil Bayfield 1. I know open group conduct "togaf" standard, but which committee organization conduct "clean code" standard? ISO? IETF? google search can not give me anwsers. your link is very old
2012
2. where are you from to know
modern android architecture
is based on "clean code"? please help me.
@Don Turner @Ryan Casler official docs are directly written by hand in the markdown?
d
@anlex N People will be better equipped and more inclined to help you if you state what you're trying to achieve, what you've tried already and how it relates to the topic of this channel (Android architecture). I recommend reading this article before posting any more https://www.freecodecamp.org/news/how-to-ask-good-technical-questions/. Asking vague questions and DMing me and others with the same question is likely to annoy and get you blocked and/or banned.
👏 2
💯 2
a
In these days, I am reviewing official docs step by step, I am very painful. For example: [Business logic is usually placed in the domain or data layers, but never in the UI layer](https://developer.android.com/topic/architecture/ui-layer) and [The ViewModel is normally responsible for handling the business logic of a particular user event](https://developer.android.com/topic/architecture/ui-layer/events) are self-contradiction. because ViewModle is in the UI layer. what do you think so? @Don Turner can you update docs?
d
The UI events guidance is saying that ViewModels should expose methods for triggering business logic, such as refreshing data from a network data source. This doesn't mean that the logic itself should be in the ViewModel. It could, and usually should, delegate that to the domain or data layers.
a
@Don Turner I agree your explanation. But "[The ViewModel is normally responsible for handling the business logic of a particular user event](https://developer.android.com/topic/architecture/ui-layer/events)", this statement is wrong.
g
There is a link on bottom of the screen btw
👍 1
r
I would say these are suggestions not Law. There are lots of patterns out there and lots ways to do architecture based on how big or small your app is. If the suggested way of doing something does not work for your particular situation, you can do it however you see fit. If you are only building on Android and a simple app it may be sufficient to just put your business logic directly in the view model and not add another layer there.
👍 2
This thread has been open for almost 2 months. If you have not done some codelabs or built a small notes app or similar to play around with some of what is suggested in the docs I would highly suggest you build a small app to try this out for yourself.
👍 2
a
I want to apply Android modern architecture to my system architecture(system design). Have you tried this practice? I do not develop android app now.
g
what is "system architecture(system design"?
I think Android architecture is really specific for UI apps
👀 1
p
Android architecture is nothing unique though, you could consider it as a collection of commonly used/well known design patterns
g
yes, but it's a lot to process if your app is not UI-based, looks as a waste of time to research Android approaches, which have Android specific things, and do not focus on other stuff, which is important for system apps, server etc
a
I am comparing azure, aws, google cloud architecture, for example: https://cloud.google.com/architecture I am comparing windows, android architecture too. I learn knowledge from Adobe, Amazon, Google, IETF, Microsoft and more. I like to compare those knowledge and shape one knowlege that is good for me. Only by comparison can I discover, Only by comparison can I master. everyone, Have you tried to use modern android architecture to develop system architecture?
🤷‍♂️ 1
r
Cloud architecture might share some concepts but is going to be totally different. Unless you are trying to build a Mobile app the Android Architecture docs are not all that relevant and this chat is for sure not where you need to be. Best of luck.
☝️ 1
a
Thank you, everyone. If you have tried this, please tell me. my attitude is that If one theory is good, it is good for every company, team, framework. I like to take android's good theory to IOS, Windows. take IOS, Windows' good thing to android. Cloud architecture (system architecture) is the same.