What is IOC? Teach you to roll an IOC container

IoC What is IoC? IoC is the abbreviation of inversion of control. Note that it is a technical idea. It describes the creation and management of objects. Traditional development methods: for example, if class a depends on class B, it often creates a new object of class B in class A.IoC development method: we don't need to go to the new object ...

Posted by arcanechaos on Fri, 12 Nov 2021 12:32:58 -0800

Kotlin actual combat [v] anomalies in kotlin

1, How kotlin throws exceptionsException handling in Kotlin is similar to that in Java or other languages. A function can end normally or throw an exception when an error occurs. The function caller catches the exception and handles it; If not, the exception is thrown up the call stack again.The basic form of exception handling statements in Ko ...

Posted by BizLab on Thu, 11 Nov 2021 23:28:49 -0800

[RT thread learning notes] how to exit QEMU simulator gracefully

This article was originally published by RT thread forum user @ recan: https://club.rt-thread.org/as...1 problem scenarioI believe many people, like me, have just come into contact with RT thread and are on the way to learn RT thread. However, learning an embedded real-time operating system without a hardware development board, in my previous u ...

Posted by Shovinus on Thu, 11 Nov 2021 02:17:56 -0800

Golang NSQ message queue usage practice

I read a lot on the Internet and copied the official website README. I didn't explain many important things clearly. I had to study it myself.My blog, keyword Less-Bug.com, welcome to pay attention.Introduction to NSQnsqd: daemon, client communication. Default port 4150 (TCP) 4151 (HTTP)Nsqlookupd: equivalent to a router. The client can discove ...

Posted by mabans on Mon, 08 Nov 2021 23:18:21 -0800

so eazy uses Netty and dynamic proxy to implement a simple RPC with one click

RPC (remote procedure call) remote procedure call RPC is used to communicate between the Java processes of two hosts in distributed applications. When host A calls the methods of host B, the process is simple, just like calling the methods in its own process. The responsibility of RPC framework is to encapsulate the details of the underlying c ...

Posted by kylecooper on Mon, 08 Nov 2021 17:30:31 -0800

Love, this summary of Java Concurrent Programming technology is too detailed

preface Concurrent programming technology is an important knowledge point in Java. How much do you know about the following? Overview of process, thread and collaboration relationship Process: in essence, it is an independently executed program. Process is the basic concept of resource allocation and scheduling by the operating system. T ...

Posted by guarriman on Sun, 07 Nov 2021 23:42:17 -0800

Python threading guide

1. Thread Foundation 1.1. Thread status Threads have five states. The process of state transition is shown in the following figure: [external chain picture transfer failed. The source station may have anti-theft chain mechanism. It is recommended to save the picture and upload it directly (img-j67esbgb-1636273815328)( https://images.cnblogs. ...

Posted by keeve on Sun, 07 Nov 2021 19:21:41 -0800

Crawler series: storing media files

The last issue explained: Use APIThis issue of crawler series mainly explains how to store and how to store data after the crawler collects data.Although it is interesting to display the results on the command line, as the data increases and needs to be analyzed, printing the data to the command line is not the way. In order to use most web cra ...

Posted by peter11 on Fri, 05 Nov 2021 20:03:32 -0700

Spring Cloud Gateway deadly serial 10 Q?

This article introduces an important role in microservices: gateway. As for how to select a gateway, Alibaba has not yet selected a gateway. Of course, it has chosen Spring cloud Gateway. After all, it is my son. The article contents are as follows: Why do I need a gateway? In the traditional monomer architecture, only one service is ope ...

Posted by DJ_CARO on Wed, 03 Nov 2021 14:50:53 -0700

Binary search basic topic - binary template

Binary search basis 1. Preface In the past, I always felt that I had to go through all the concepts before I could start to brush the questions. I didn't know that practice was the shortcut to master knowledge, rather than forgetting to recite it. To learn knowledge, we need to settle down and go step by step, otherwise we will be punished fo ...

Posted by SnaD on Wed, 03 Nov 2021 12:04:20 -0700