Talk programming - bridge mode
Bridge Pattern
Separate the abstract part from its implementation part so that they can all change independently.
motivation
When an abstraction can have multiple implementations, inheritance is usually used to coordinate them. Abstract classes define the interface of the object, while concrete subclasses are implemented in different ways. B ...
Posted by kickoutbettman on Sat, 30 May 2020 08:38:41 -0700
Finally someone has made the java proxy clear, in all words!
What is a proxy
The proxy pattern is a common java design pattern. It is characterized by the same interface between the proxy class and the delegate class. The proxy class is mainly responsible for preprocessing messages, filtering messages, forwarding messages to the delegate class, and postprocessing messages for the delegate class.The ...
Posted by coolphpdude on Fri, 29 May 2020 17:23:31 -0700
strlen old bottle new wine
Introduction - overview of strlen
I accidentally scan the code in glibc strlen.c, which I can't forget for a long time. I also remember the starting point in my unknown programming career:
Programming is not a joke, some are difficult, some are reluctant to give up. Review with the track, once the most familiar feeling of strlen~
/* Copyright ...
Posted by jtrost on Fri, 29 May 2020 06:52:45 -0700
Build the spring cloud microservice framework: VI. database persistence layer - spring datajpa
Build microservice framework (database persistence layer spring datajpa)
Used to Mybatis, this time for a change, integrate spring datajpa in SQuid.
Source address: Build microservice framework (database persistence layer spring datajpa)
Github address: SQuid
introduce
I've heard of HibernateJPA before, but I've never used it. Mybatis i ...
Posted by vimukthi on Fri, 29 May 2020 04:31:05 -0700
What is thread deadlock? What are the formation conditions? How to avoid it?
What is thread deadlock
Deadlock is a kind of blocking phenomenon caused by two or more processes (threads) competing for resources or communicating with each other during the execution process. If there is no external force, they will not be able to move forward. At this time, the system is said to be in a deadlock state or the system generate ...
Posted by john_bboy7 on Fri, 29 May 2020 03:50:05 -0700
[open source]. Net ORM access to Renmin Jincang database
preface
Beijing Renmin Jincang Information Technology Co., Ltd. (hereinafter referred to as "Renmin Jincang") is a domestic data management software and service provider with independent intellectual property rights. Founded in 1999 by a group of experts from Renmin University of China who are the first to carry out database teaching, ...
Posted by fean0r on Thu, 28 May 2020 04:41:17 -0700
Spring boot integrated configuration logback-spring.xml
Using logback instead of log4j is because logback is another open source log component designed by the founder of log4j. The kernel of logback has been rewritten and its performance has been improved by more than 10 times on some key execution paths. Moreover, the logback not only improves the performance, but also reduces the initial memory lo ...
Posted by 7724 on Thu, 28 May 2020 01:53:36 -0700
Using Spring Shell to quickly develop your own command interaction window
Spring Shell
Sometimes, in order to facilitate the development and testing of the server, it does not need a beautiful user interface, just use a simple command window. As follows:
Here is a quick, convenient, easy-to-use and simple interactive command window development component Spring Shell
Yes, it's in spring ecology again.
Source address ...
Posted by AlexP on Wed, 27 May 2020 21:09:04 -0700
ArrayList - Understanding common methods based on source code
ArrayList should be one of the most common list implementation classes in your usual code. It should be a surprise to learn more about common methods by looking at the source code, as well as infrequent ones.This time, look at the corresponding source in terms of method familiarity, it is necessary to paste the source.
1. ArrayList header com ...
Posted by Think Pink on Wed, 27 May 2020 10:23:59 -0700
Iterator mode for java (big talk design mode)
As we all know, Java is a high-level language in the programming language. In the world of java, there have been predecessors who have encapsulated various useful frameworks, tool classes and so on for us. The iterator mode that I want to talk about today has also been encapsulated.
Is the for loop iterator that we often use.Or Iterator, these ...
Posted by neostrife on Wed, 27 May 2020 09:19:58 -0700