Moment For Technology

Create-react-app source code interpretation

Recently I have read the source code of vue-cli@2.x and create-React-app. Since vue-cli@3.0 is now officially recommended, there is a big change, so we will not write about vue-cli (it is said that the operation of vue-cli@2.x is a little too complicated to create the project, so Yuyuxi borrowed the create-react greatly...

Kotlin base | entrusted and its application

Entrust is a common pattern, it has nothing to do with programming language, namely themselves do entrusted to another object. Kotlin supports delegation at the language level. This article introduces Kotlin's delegation with examples.

React source code parsing (2): Component types and lifecycle

In our last article, React Source Parsing (part 1): Component Implementation and Mounting, we explained how to implement and mount the React component. Now let's explore the component lifecycle. As we already know, only after the mounting process begins, the component life cycle will be triggered, generating js objects of type ReactElement, by parsing the information carried inside the component object, obtain...

Objective-c Runtime goes from application to principle

1. Apply an instance object to an ObjectAssociationMap, which stores the key and ObjcAssociation of multiple associated objects of the instance object. ObjcAssociation stores the values and policies of associated objects. The associated object is not in the original...

What have I learned from writing tech blogs? - J_Knight_

My name is J_Knight_, and those of you who know me well know that I'm a non-trained iOS developer who's been working for just over 3 years and has been writing a tech blog for almost 2 1/2 years. In fact, I have been wanting to share my blog thoughts since last year, but I haven't found the right opportunity. Just before the end of this year, I reached the small goal of having more than ten thousand fans of the Nuggets, so I just want to take this opportunity to share...

React source parsing (3): Detail transactions and update queues

In the first two articles, we analyzed the React component's implementation, mounting, and lifecycle flow. While reading the source code, we often see code such as Transaction and UpdateQueue, which refer to two concepts in React: transactions and update queues. Since we've covered all of this in previous posts, we'll take this as an example of how familiar you are...

React source parsing (1): component implementation and mounting

When we can skillfully use React for front-end development, we will inevitably have a strong interest in the internal mechanism of React. What is the component? Is it the real DOM? What is the basis on which lifecycle functions are executed? In this article, let's first look at the React component implementation and mounting. After the code written above, we get the < A / > this component, so we first find out the < A >...

Go Map source code reading and PHP map implementation comparison

To get to the bottom of the implementation, let's take a look at the go compilation process. At this stage, the AST is converted to intermediate code in the form of SSA (Static Single Assignment), and the keyword operators are converted to Runtime functions. For example, the map keyword and its operations will be translated at this stage...

Vue3 source code analysis, the mini version of Vue3

The official release of Vue3 has been more than half a year, in the past March and April in the front end of the interview Vue3 has been the point of the Vue framework to ask, if you have not seen the source Vue3 also do not hurry up with the author to have a look.

React source parsing (4): event system

In the previous three articles, we explained the react component's composition and lifecycle, and the mechanism of setState. This time let's talk about React. We usually listen to the real DOM. For example, at ?, if we want to listen for button click events, we can bind the event and the corresponding callback function to the button DOM. Unfortunately, if pages are complex and events are processed frequently, then...

Search
About
mo4tech.com (Moment For Technology) is a global community with thousands techies from across the global hang out!Passionate technologists, be it gadget freaks, tech enthusiasts, coders, technopreneurs, or CIOs, you would find them all here.