Liuyue | 刘悦

Empirical and nothingness, abstract and figurative, Go lang1.18 introductory and refined tutorial, from Bai Ding to Hongru, the use of Go lang interface EP08

Original link: https://v3u.cn/a_id_231 Seeing the word interface, we will definitely think of interface-oriented programming. To put it bluntly, the interface specifies the specific behavior of the execution object, that is, the interface indicates what the execution object should do. Therefore, in a general sense, the interface is abstract, while the actual execution behavior is concrete. …

Empirical and nothingness, abstract and figurative, Go lang1.18 introductory and refined tutorial, from Bai Ding to Hongru, the use of Go lang interface EP08 Read More »

Divide the whole into parts, optimize and reuse, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the definition and use of go lang functions EP07

Original link: https://v3u.cn/a_id_230 Functions are reusable blocks of code that are aggregated based on functionality or logic. Extracting and encapsulating some complex and lengthy code into multiple code fragments, that is, functions, helps to improve the readability and maintainability of code logic. Unlike Python, since Golang is a compiled language and runs after compilation, the …

Divide the whole into parts, optimize and reuse, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the definition and use of go lang functions EP07 Read More »

You have object class, I have structure, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of go lang structure (struct) EP06

Original link: https://v3u.cn/a_id_229 Continuing the previous article, at the object-oriented level, Python has achieved super god: everything is an object, while Ruby is simply a god: flying flowers and leaves can be objects. Both provide object-class operations and inheritance methods for object-oriented purposes, but Golang obviously has some unique features, because it has no traditional …

You have object class, I have structure, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of go lang structure (struct) EP06 Read More »

If you ask where the variables are stored, the shepherd boy laughed and said to use pointers, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of go lang type pointers (Pointer) EP05

Original link: https://v3u.cn/a_id_228 What does a pointer mean? A pointer is a variable that stores the memory address of another variable. A variable is a convenient placeholder for referring to a computer memory address. A pointer variable can point to the memory address of any value. It points to the memory address of that value. …

If you ask where the variables are stored, the shepherd boy laughed and said to use pointers, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of go lang type pointers (Pointer) EP05 Read More »

Compatible with all kinds of rivers, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, go lang composite container type declaration and use EP04

Original link: https://v3u.cn/a_id_227 Continuing from the previous book, a container data type refers to a data structure, or abstract data type, whose instances are objects of other classes. Or to be more specific, it stores objects in a way that follows certain access rules. The size of a container depends on the number of underlying …

Compatible with all kinds of rivers, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, go lang composite container type declaration and use EP04 Read More »

Categorized input and output, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, go lang basic data types and input and output EP03

Original link: https://v3u.cn/a_id_226 Continuing the previous article, Golang, like Python, has many classifications of basic data types, which are divided into categories, and everything is available. They correspond to different usage scenarios, namely: integer, floating point, character, string, boolean, etc. Commonly used basic data types are often involved in daily business logic operations, judgments, and …

Categorized input and output, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, go lang basic data types and input and output EP03 Read More »

Strategizing and winning thousands of miles, Python3.10 native coroutine asyncio industrial-grade real coroutine asynchronous consumption task scheduling practice

Original link: https://v3u.cn/a_id_225 We have always believed in the saying that coroutines are a more efficient way of working concurrently than multithreading. It is completely controlled by the program itself, that is, executed in user mode. Coroutines avoid the context generated by thread switching. Switching, the performance has been greatly improved. There is no doubt …

Strategizing and winning thousands of miles, Python3.10 native coroutine asyncio industrial-grade real coroutine asynchronous consumption task scheduling practice Read More »

A small test of basic grammar, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, basic grammar of go lang and the use of variables EP02

Original link: https://v3u.cn/a_id_224 The book is connected to the last chapter. The first program of Golang 1.18 runs like a melodious flute, marking the official start of the Golang giant ship of concurrent programming. So, on this giant ship, what should we do first? Of course, you need to understand the most basic syntax, that …

A small test of basic grammar, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, basic grammar of go lang and the use of variables EP02 Read More »

Rabbit and Falcon are all covered, Go lang1.18 introductory and refined tutorial, from Bai Ding to Hongru, the whole platform (Sublime 4) Go lang development environment to build EP00

Original link: https://v3u.cn/a_id_222 Golang, a static language for concurrency, originates from the C language and is not limited to performance, efficient but not old-fashioned, Python is flexible, slightly less performance, Java is rigorous, slightly less coquettish. Don’t you see that all major brands are using Golang to refactor their high-concurrency business. There is no other …

Rabbit and Falcon are all covered, Go lang1.18 introductory and refined tutorial, from Bai Ding to Hongru, the whole platform (Sublime 4) Go lang development environment to build EP00 Read More »

Days and nights are hot and cold, based on Python3+Tornado6+APScheduler/Celery to create concurrent asynchronous dynamic timing task polling service

Original link: https://v3u.cn/a_id_220 The typical implementation scenarios of timed tasks are common in various industries. For example, in the payment system, due to network or other factors during the payment process, there is a situation where the bill is dropped or the bill is stuck, and the bill becomes a “one-sided bill”. In this case …

Days and nights are hot and cold, based on Python3+Tornado6+APScheduler/Celery to create concurrent asynchronous dynamic timing task polling service Read More »

Fresh clothes and angry horses are all gone, Vue3.0+Tornado6 front-end and back-end separation and integration of Web3.0’s Metamask wallet blockchain virtual currency three-party payment function

Original link: https://v3u.cn/a_id_219 It has to be admitted that most people do not own or have owned cryptocurrencies. Yes, Web3.0, cryptocurrency, and blockchain are actually too frivolous words for most Internet users. If you study blockchain and cryptocurrencies in pursuit of profiteering, you will most likely be disappointed, because salt is salt everywhere; and if …

Fresh clothes and angry horses are all gone, Vue3.0+Tornado6 front-end and back-end separation and integration of Web3.0’s Metamask wallet blockchain virtual currency three-party payment function Read More »

The construction of large file uploading in segments is based on Vue.js3.0+Ant-desgin+Tornado6 pure asynchronous IO efficient writing service

Original link: https://v3u.cn/a_id_218 The divide and conquer algorithm is an old but pragmatic approach. The original intention is that even if a larger whole is broken into small parts, each small part is not enough to fight against the larger whole. During the Warring States Period, the Qin State’s destruction of the vertical and horizontal …

The construction of large file uploading in segments is based on Vue.js3.0+Ant-desgin+Tornado6 pure asynchronous IO efficient writing service Read More »

A link between the past and the future, the myth of Python3 context managers (ContextManagers) and the With keyword

Original link: https://v3u.cn/a_id_217 A common problem we often face during development is how to properly manage external resources, such as databases, locks, or network connections. Without care, the program will keep these resources forever, even if we no longer need them. Such problems are called memory leaks, because each time a new instance of a …

A link between the past and the future, the myth of Python3 context managers (ContextManagers) and the With keyword Read More »