Origin of Ray

Lift the fog of the Internet together

I have been working on the front end for more than a year. Today, I suddenly heard a term called micro frontend. I was very curious, so I went to inquire about some information and summarized it here.

Read more »

This time we continue to summarize the way and principle of the two-column layout in the mainstream layout of CSS.

First, let’s talk about what a two-column layout is.

The two-column layout generally specifies the width and Self-Adaptation layout. The left column of the two columns determines the width, and the right column is a layout effect that automatically fills all the remaining space.

Read more »

Microservices are now popular, and the way of calling between different services has also undergone a series of developments. This time we will take a look at their development process together. Looking together is not only conducive to unified understanding, but also helps us see the reasons for the change. reason.

Let’s take the simplest scenario, Client calls an addition function, adds up two integers and returns their sum. If it is called locally, it is simple and can’t be simpler. As long as you have learned a programming language a little, you will be done.

But once it becomes a remote call, the threshold will go up all of a sudden. First of all, you have to know Socket programming, at least learn our network protocol course first, and then read N brick-thick Socket programming books and learn several Socket programming models we have learned. This makes a job that could have been done after graduating from college become a job that five years of work experience may not necessarily do well, and getting the Socket programming done is the first step in the long march. There are still many problems behind!

Read more »

In ES6, we know that import and export replace require and module.exports to import and export modules, but if you don’t understand the characteristics of ES6 modules, the code may run with some unimaginable results. I will use this article. Uncover the features of the ES6 module mechanism for you.

I will not introduce the use of the two in detail. If you are interested, you can take a look at my previous blog:JavaScript Module使用语法

This article mainly addresses the following issues:

  • Do these two output a copy or a reference, and if you copy it, is it a deep copy or a shallow copy?
  • What is the difference between the loading and running times of the two?
  • How do they solve circular dependencies and repeated loading problems?
  • What are the differences between the operating environments of the two, when can they be mixed and why?
Read more »
0%