Java multithreading notes
8-1 basic concepts: program, process and thread
A program is a set of instructions written in a certain language to complete a specific task. It refers to a piece of static code, static object. A process is an execution process of a program or a running program. It is a dynamic process: it has its own process of emergence, existence and extinc ...
Added by max101 on Tue, 25 Jan 2022 22:46:49 +0200
Briefly introduce how to use socket in Nestjs and Vue3 io
brief introductionIn this paper, the server takes Nest official template and the client takes Vue3 + Vite official template as an example to briefly introduce how to use socket in Nest project IO instant messaging with Vue3's clients.Initialize projectServer# Install Nest scaffold
$ npm i -g @nestjs/cli
# Create a nest backend project
$ nest n ...
Added by Smifffy on Tue, 25 Jan 2022 22:08:01 +0200
[C language] pointer to advanced terminal, callback function and qsort
Doodle, doodle, pointer to the advanced bus to the terminal 🚏 la
In this station, we will learn the callback function, the use of qsort and the simulation implementation
1. Callback function
definition:
A callback function is a function called through a function pointer. If you pass the pointer (address) of a function as a pa ...
Added by paulytrick on Tue, 25 Jan 2022 20:38:47 +0200
Detailed explanation of JAVA Lambda expression
Detailed explanation of JAVA Lambda expression
1. Introduction of Lambda expression
1. What is Lambda?
Lambda expressions are a new feature of JDK8 that can replace most anonymous internal classes and write more elegant Java code, especially when traversing collections and other collection operations, which can greatly optimize the cod ...
Added by Kaizard on Tue, 25 Jan 2022 20:26:51 +0200
Day9 I Object oriented thinking II Memory area analysis III Member variables and local variables
I Object oriented thought
Process oriented and object-oriented are both ways to solve problems
Process oriented: write code from top to bottom according to business logic; It emphasizes that the steps, processes and every step are realized by yourself.
Object oriented: create objects, use objects, and command objects to do things.
Object or ...
Added by MHz on Tue, 25 Jan 2022 20:20:40 +0200
10000 word summary of C + + classes and objects [source code analysis of date class]
Classes and objects
Classes and objects < upper >
object-oriented
It has always been process oriented programming, such as C language. Until the 1970s, process oriented programming showed deficiencies in developing large programs. The computer community put forward object-oriented programming, in which the core concepts are class and o ...
Added by JAM on Tue, 25 Jan 2022 20:08:52 +0200
Python learning notes - advanced features
section
Taking some elements of a list or tuple is a very common operation
>>> L = ['Michael', 'Sarah', 'Tracy', 'Bob', 'Jack']
['Michael', 'Sarah', 'Tracy']
L[0:3] indicates that it starts from index 0 to index 3, but does not include index 3. That is, the indexes 0, 1 and 2 are exactly three elements.
Do not write anything, ju ...
Added by AngelicS on Tue, 25 Jan 2022 20:08:37 +0200
go Bible notes - Introduction
Configure the idea environment (go version 1.17.1) and learn according to the go language Bible directory.
Hello, World
package main
import "fmt"
func main() {
/* This is my first simple program */
fmt.Println("Hello, World!")
}
Go is a compiled language. The tool chain of go language converts the source code and its dependencies ...
Added by khurramijaz on Tue, 25 Jan 2022 19:45:24 +0200
16_ The most comprehensive Java object-oriented explanation_ Encapsulation, inheritance and polymorphism
1, OOP feature 1: Encapsulation
Why package?
Before studying encapsulation, let's look at a piece of code:
class Book {
String title;
double price;
public void getInfo() {
System.out.println("Name of the book:" + title + " Price of books:" + price);
}
}
public class BookTest {
public static void main(String args ...
Added by tlchung on Tue, 25 Jan 2022 19:14:23 +0200
The most detailed source code analysis of Spring core IOC (different insights every time) 2
The most detailed source code analysis of Spring core IOC (different insights every time)
The most important concepts of Spring are IOC and AOP. This article is actually to lead you to analyze the IOC container of Spring. Since we usually use Spring, how can we not have a good understanding of Spring? Reading this article will not make you a S ...
Added by gl_itch on Tue, 25 Jan 2022 18:56:53 +0200