4

beginning

I am Peter

The Douyin enterprise application design system Semi Design is open sourced. This is the biggest news I heard today, so I went home to check it out at night.

Open Zhihu, it is exactly the same as I thought, the first thing is that someone must deny this open source library, it is based on the transformation of other people's open source library

Some people may even think that Ant-Design and semi-design are basically the same. Are they complete KPI projects?

I have to say, what is "core technology"

In fact, there are few real core technologies (especially domestic relative to foreign countries). It can be said that 90% of programmers are looking for resources to complete and solve problems (looking for wheels)

When I teach some people to learn the front-end, I will tell them that you have to understand that if you have a problem, you should find the solution that already exists in the industry as soon as possible, and then find a solution that best suits your current situation.

Only less than 10% of programmers will design and develop a standard in the industry and provide wheels.

E.g:

babel-import-plugin

And-design and Semi-design as well as the component library I developed in the company, all use it.

Well, we actually recognize this set of standards and rules. It is very suitable for the construction of our component library, so the three have adopted this method to do it.

Then the plug-in is automatically converted into those few lines of core code loaded on demand, even if it is a core technology. Many component libraries rely on it and follow its design rules to achieve on-demand loading

There are few and few core technologies, which is also a real reason for our domestic involution

Back to semi-design, can it be used?

Of course it can be used, all said it is enterprise-level. It is similar to two cars, both of which can be driven. Both are luxury and well-known brands of C-class cars. Then they will not have obvious fatal weaknesses. The difference may be the appearance of which you prefer, or a certain aspect. Characteristics, such as chassis, handling? It's the luxury of the interior, or the little golden figure of Rolls-Royce that attracts you.

I compared semi-design and ant-design both Table components, their props fields are almost the same, which is to make everyone more friendly switchable.

How to treat semi-design?

Is it a KPI project? I can’t say that

But one thing that can be determined is that even if it is ant-design , and then open sourced (the premise is: whether it conforms to the corresponding open source agreement, this is also the charm of software open source), in this process, the people involved in this open source work , Their improvement is huge

Really doing something is far more difficult than imagined. Especially when you are deeply involved, you will have a more comprehensive improvement. For example: Why do you design the packaged output of the component library in this way? It turned out to be in order to cooperate with babel-import-plugin to carry out non-perceptual on-demand loading

So babel-import-plugin the principle of the plug-in 0617a1242d3f1c? I have to understand, oh, it turned out to be a conversion based on the configuration~

Then you may design your own another on-demand import plug-in next time to adapt to a new scenario of your own.

This is the meaning of open source. As long as it conforms to the open source agreement, even if it is based on other people’s packaging, it will greatly improve the ability of the participants and increase the visibility of the team.

What should we do

Individuals do it, do not spray it up, you have the ability to also based semi-design source and do another mesi-design , as a common front-end development, we should get to know semi-design on the design with ant-design there any difference? For example, you can look at its source code to understand and keep up with changes in the industry. This is not like webpack5 and vite in essence, it depends on preferences.

Another point that everyone should pay attention to is that the power of byte beating cannot be ignored. It seems to me: Compared with other BATJ companies, it is still in a period of rapid development, and there will be more and more open source things in the future. , But the quality and long-term stability of development need everyone to take time to appraise.

github:https://github.com/DouyinFE/semi-design

end

I have a baby these few days and I am a father. Recently, I will have relatively less time to write articles, but I will squeeze some time to write, and finally I will make an advertisement. Some of my previous handwritten source code articles:

https://github.com/JinJieTan/Peter-

Remember to give a star , if you like, please help me with the public number: The article at the top of the front end is clicked to see/like, follow a wave


PeterTan
14.4k 声望30k 粉丝