Java must have a tool library to reduce your code by 90%

After working for many years, I found that there are many tool class libraries that can greatly simplify the amount of code and improve development efficiency, but junior developers don't know. These class libraries have long become the industry standard class libraries, and they are also used in large companies. If someone told me to use these ...

Added by tempyyyst on Tue, 28 Dec 2021 21:18:34 +0200

Python basic programming -- method call under multiple inheritance

We introduced how to call the construction method of the parent class under inheritance. How to call the method of the parent class under multiple inheritance? Although we need to be careful when using multiple inheritance, multiple inheritance can be seen everywhere in actual project development. Therefore, it is necessary to understand the me ...

Added by Gnub on Mon, 27 Dec 2021 23:30:40 +0200

Glide source code is difficult to understand? Use this angle to get twice the result with half the effort!

preface A powerful framework requires a variety of packages. When we dive into it, it is easy to be confused by all kinds of jumps, design patterns, packaging, etc. in the source code; In this case, we can only understand the general process, but it is easy to forget. Why? Because we haven't really understood it! We don't turn it into our k ...

Added by sri_hai1986 on Mon, 27 Dec 2021 19:43:34 +0200

Special operation flow

4. Special operation flow 4.1 standard I / O flow There are two static member variables in the System class: public static final InputStream in: standard input stream โ€‹ Typically, the stream corresponds to keyboard input or another input source specified by the host environment or the user public static final PrintStream out: standard ou ...

Added by supermars on Mon, 27 Dec 2021 19:30:31 +0200

About QThreadPool cleaning in Qt

Recently, I learned PyQt5 programming and encountered a problem, which is the cleaning of QThreadPool. Specifically, I sometimes need to stop the execution of all threads in a QThreadPool and do the necessary cleaning. Sometimes there are two main scenarios here: because the new input QThreadPool needs to be cleaned up and start with the new in ...

Added by techker on Mon, 27 Dec 2021 11:06:44 +0200

Data structure: Comments on programming homework -- how to write more complex programs?

The child previewed the data structure course in the summer vacation and wrote an exercise. Let me comment. Let's take a look at the problems with his code. subject The topic is to write a linear table related data operation algorithm. Specifically, write a book management program. The information content of the book is as follows: code ...

Added by Trojan on Sun, 26 Dec 2021 11:47:44 +0200

โญ Introduction to algorithm โญ Stack monotone stack simple 01 - LeetCode 155 Minimum stack

๐Ÿ™‰ If you don't eat or drink, you must brush the questions ๐Ÿ™‰ C language free animation tutorial, punch in with me! ๐ŸŒž Daylight science C language ๐ŸŒž LeetCode is too hard? Look at the simple questions first! ๐Ÿงก 100 cases of introduction to C language ๐Ÿงก Difficult data structure? It doesn't exis ...

Added by darknuke on Sun, 26 Dec 2021 08:38:21 +0200

Design pattern - observer pattern

Related links: [design mode] column: [design mode] column Relevant examples can be downloaded: Examples of common Java design patterns Observer mode Observer Pattern refers to one to many dependencies among multiple objects. When the state of an object changes, all objects that depend on it are notified and automatically updated. This pat ...

Added by Nuv on Sat, 25 Dec 2021 20:28:47 +0200

Talking about volatile in Java

Memory visibility Volatile is a lightweight synchronization mechanism provided by Java. It also plays an important role in concurrent programming. Compared with synchronized (usually called heavyweight lock), volatile is more lightweight. Compared with the huge overhead brought by using synchronized, if volatile can be used properly and reason ...

Added by gassaz on Fri, 24 Dec 2021 12:16:05 +0200

18 - Quarkus implementation of mediator mode

Abstract: This paper describes the mediator pattern in Gof 23 design pattern with an example scenario, and implements it with Quarkus program code. At the same time, it also gives the UML model of the implementation code. Key words: Gof 23 design pattern mediator pattern Quarkus 1 basic knowledge 1.1 standard definition The standard definition ...

Added by craygo on Fri, 24 Dec 2021 07:36:59 +0200