2020Android how development? Talk about the most appropriate architecture of the moment!

Foreword

Today our theme is architecture, in fact, the understanding of architecture must be macro that large mobile phone operating system architecture, small code logic design architecture, an old saying 'well, also on behalf of my overall understanding of the architecture: Not the most good architecture, only the most suitable architecture. Let's talk, a good architecture is what it looks like, how to judge it.

Good architecture should have the advantage

Road to Jane

Straightforward, unpretentious, true to science, to life science, soul and beauty, simplicity is a good architecture soul. This is the ultimate test of an architect indicators, how to ensure a simple design to allow most people to accept, using them is simple, and can ensure the stability framework to ensure that no damage is very, very difficult.

Remain the same

Maintaining the status quo, good architecture, able to hold the same section, will become part of the abstract do to meet the various scenes in the world is to do in our code interfaces and abstract.

Unraveling

Wire was drawn one by one, layer by layer stripping cocoon too, right, a good architecture is absolutely distinct, roles, doing things the same, they do not do live gate technology is out of bounds. Things in the world, are independent existence, can be very close, but also very far. Code of course inseparable from architecture design level design.

Domain-Driven

Architecture is not satisfied in all areas, not a hodgepodge, he is the most perfect summary for specific areas, specific areas of concern, keep the beginning of the heart.

Android Architecture Evolution

MVC > MVP > MVVM

Let's look at google is what we do from the beginning we contacted android, we are using MVC, can even say that there is no architecture, but at that time app is really simple, but with the constant iteration, more and more problems , google also found this problem, so github open source example of MVP architecture, taught us how to integrate the framework, how to ensure that the development needs of business in the systems architecture and is now the main push of MVVM, in fact, not difficult to find a common, WEB end we all know it, you see now the hottest React, Vue, not all MVVM framework it (some people say no, some say yes, not much to explain here, we should not tangle is not to be understood MV, VM data binding UI, it is nothing more than a one-way or two-way, all belong to a concept of it, understood on the line.)

原生 > React Native > Flutter

A good MVC architecture to the MVVM just do? I do not think so, from the beginning we come into contact with native Android development, and later React Native fires, we are 16 years also specialized integrated React Native module, but did a few iterations to give up, we found that adaptation to Android , Ios also spent a lot of time, it would be easy to do with the original. Most fire Flutter, Google is the main push of a cross-platform framework, and we are now integrated in the C-terminal project, the results were pretty good, although there are also a lot of problems, but overall better than React Native, there is little internal Google Fuchsia another operating system being developed by UI layer uses a Flutter, Flutter that is natural to support Android, IOS and future Fuchsia. In large front-end direction, for cross-platform development has been looking better and better solutions in the continuous iteration, the current situation still more advantages Flutter

Java > Kotlin,Dart

Who speak the language, you speak a language belonging to the architecture it? I do not know, but this is a direction I consider architecture, language is the most basic unit of our organization, kotlin popularity, google should not just think language is good, let us use the majority of developers, in fact, there involves a lot of things, we know that the latest android cited is open jdk, the lawsuit a few years ago to play non-stop, pay a lot of human and financial resources, it is certainly not what we have to consider, but one thing is certain, kotlin language it is indeed a trend, because he has a more rational design, safer performance, more concise code, of course, you can write java android with old wrote, I do not think you write with kotlin will certainly write better than java, it depends on personal choice. Let me say Dart, this I do not quite understand, why Flutter Dart must use to write, so it seems Google engineer replied: Dart said in the next room, ah, good communication. Haha.

Small summary

Through the above gossip, we've got the basic architecture of the prototype of the bar

  1. MVVM + + Kotlin native
    or
  2. MVVM + native, Flutter + Kotlin, Dart
    and so on ...
    own portfolio, and I currently choose the second, I believe many people's projects have been the case. So then we have to implement this architecture, the shelf has, in relation to plug something, so some of it is full.

Epilogue

From an architectural evolution of Android, not difficult to see the future of the world is certainly a large front end, the front end of the so-called big bigwigs might be a concept, but in recent years many large unified technical appearance, feel far future, perhaps tomorrow ,

In this advise our readers to improve himself in now, to share a learning tidied collection, due to limited space, here in the form of pictures to show you part of it. There are advanced architecture technology Advanced Brain Mapping, Android interview with thematic development, advanced materials and so on advanced architecture

Help them to learn to mention rank rise, time-saving search for information online to learn, you can learn to share with close friends.

Learning PDF + source notes + Flutter + Kotlin + video + Advanced Learning Path

[Flutter learning from entry to advanced video]

[PDF] Learning Android

[Android] advanced architecture video learning resources

Now say the Internet winter, in fact, nothing more than you get on the wrong bus, and wear less (skills), and if you get on to the car, their technology is robust enough to replace the cost of large companies, how could be laid off, have Curd is out of the business end of it!

Now flooding the market junior programmer, set of tutorials for the Android development engineers 1--6 years of staff, is in a bottleneck, you want to break their own salary increase, advanced Android senior architect for you is like a duck, hurry to receive it!

There kotlin [video] [Source] learning and more learning content!

Something we have a lot to learn, and learn knowledge, all the money (in most cases because technicians are rated according to your ability, to send salary), so do not hesitate to increase early learning early promotion salary!

Published 168 original articles · won praise 71 · views 20000 +

Guess you like

Origin blog.csdn.net/Aerfa789/article/details/105018466
Recommended