Flutter full screen clock! Flutter still has this kind of operation! Double salary

Programmers are different from other majors. Other majors are older and more fragrant, but programmers are an exception. Because computer technology is updated too quickly and the work intensity is very high, most programmers will only write for 3 years. Code. After 3 years, you will either be promoted to project manager or change careers, except for individual research institutes.

1. Function

The role of Serializable is to save the attributes of the object to local files, databases, network streams, and rmi to facilitate data transmission. Of course, this transmission can be within the program or between two programs. The original intention of Android's Parcelable is because Serializable is too slow. It is designed to efficiently transfer data between different components in the program and between different Android programs (AIDL). These data only exist in memory. Parcelable communicates through IBinder. The carrier of the message.

We can see the pros and cons from the above design.

2. Efficiency and choice

The performance of Parcelable is better than Serializable, and the memory overhead is smaller. Therefore, it is recommended to use Parcelable when transferring data between memory, such as transferring data between activities, while Serializable can persist data and save it easily, so when you need to save or transfer data over the network Select Serializable, because Parcelable may be different in different versions of android, so it is not recommended to use Parcelable for data persistence.

3. Programming realization

For Serializable, the class only needs to implement the Serializable interface and provide a serialized version id (serialVersionUID). Parcelable needs to implement writeToParcel, describeContents functions, and static CREATOR variables. In fact, how to pack and unpack is defined by itself, and these serialization operations are completely implemented by the bottom layer.

At last

It is said that three years is a hurdle for programmers, whether they can be promoted or improve their core competitiveness, these few years are very critical.

With the rapid development of technology, from what aspects can we learn to reach the level of senior engineer and finally advance to Android architect/technical expert? I have summarized these 5 big pieces;

I have collected and sorted out the interview questions of Alibaba, Tencent, ByteDance, Huawei, Xiaomi and other companies in the past few years, and sorted out the requirements and technical points of the interview into a large and comprehensive "Android Architect" interview PDF (in fact, more than Expected to spend a lot of energy), including the knowledge context + branch details.

Java language and principles;
big factory, small factory. Android interview first see if you are familiar with the Java language

Advanced UI and custom view;
custom view, the basic skills of Android development.

Performance tuning;
data structure algorithms, design patterns. All of the key foundations and key points need to be skilled.

NDK development;
future direction, high salary is bound to be.

Cutting-edge technology;
componentization, hot upgrade, hot repair, frame design

There are a lot of materials for learning Android on the Internet, but if the knowledge learned is not structured, and when you encounter problems, you just taste it and stop studying it in depth, then it is difficult to achieve real technological improvement. I hope that this systematic technical system will provide you with a direction reference.

When I was building these technical frameworks, I also sorted out the advanced advanced tutorials of the system, which will be much better than my own fragmented learning effect, visible on GitHub; "Android Architecture Video + Study Notes"

Of course, it is not easy to learn and master these abilities in depth. Everyone knows how to learn and what work intensity is as a programmer, but no matter how busy the work is, I have to spare 2 hours a week to study.

Within half a year, you will be able to see the changes!

Everyone knows what work intensity is, but no matter how busy the work is, I still have to spare 2 hours a week to study.

Within half a year, you will be able to see the changes!

Guess you like

Origin blog.csdn.net/Sunbuyi/article/details/112841158