Design strategy for Java module decoupling

The Java Platform Module System (JPMS) provides stronger encapsulation, greater reliability, and better separation of concerns, which some students may not notice. However, there are pros and cons. Because modular applications are built on a network of modules that rely on other modules to work properly, in many cases the modules are tightly coupled to […]

Article 21: Intermediary mode: decoupling the interaction between objects

Article 21: “Meditor Mode: Decoupling Interaction Between Objects” Before starting this article, I recommend a useful learning tool, AIRIght, with the help of AI assistant tools, learning with half the effort. Welcome to visit: http://airight.fun/. In addition, there are 2 good materials about design patterns, which are shared for your reference. Link: https://pan.baidu.com/s/1RmhQF_o1CdK8U7s5KeILog?pwd=xc6d Extraction code: […]

Android decoupling (3) APT-based decoupling

Android decouples module dependencies through APT 1. What is APT? APT (Annotation Process Tool) is an annotation processing tool that can scan and process annotations during compilation and generate corresponding Java code. APT is a feature of Java, but is also widely used in Android development The advantages of APT are: The correctness of the […]

Android decoupling (2) Routing-based decoupling

1. Introduction In Android development, as the complexity of the project increases, the modular (or componentized) development method is more and more favored by developers. Modular development can split a large project into multiple relatively independent modules, each module is responsible for a function or business scenario, thereby improving the readability, maintainability and reusability of […]

SpringBoot three-tier architecture + layered decoupling—coupling and cohesion of code

Hierarchical decoupling-coupling and cohesion of code 1. Three-tier architecture Java’s three-tier architecture is a common software architecture design pattern for assigning different functions and responsibilities of an application to different layers to improve maintainability, scalability, and reusability. It can include the following three levels: 1. Presentation layer: Also known as the user interface layer, it […]

In-depth exploration of AOP technology: elegant decoupling and cross-cutting concern processing

General introduction When we discuss AOP (Aspect-Oriented Programming), we are actually talking about a programming paradigm whose goal is to separate cross-cutting concerns (Cross-Cutting Concerns) from core business logic, thereby improving code maintainability and reusability Problems Solved by AOP: Code duplication: Cross-cutting concerns may be spread across multiple modules, resulting in code duplication that is […]

YOLOv5 (v7.0) network modification practice two: change the single-branch head to YOLOX’s dual-branch decoupling head (DecoupleHead)

I studied the network structure of YOLOX before, and integrated the backbone network of yolox in YOLOv5 (tag7.0), and now continue to integrate the head module of YOLOX in the next step. The head module of YOLOX is a dual-branch decoupling network, which divides the prediction of the target confidence and the position prediction of […]

Module decoupling (2) Routing-based decoupling

1. Introduction In Android development, as the complexity of the project increases, the modular (or componentized) development method is more and more favored by developers. Modular development can split a large project into multiple relatively independent modules, each module is responsible for a function or business scenario, thereby improving the readability, maintainability and reusability of […]

Using RabbitMQ to achieve decoupling and asynchronous messaging between services

Using RabbitMQ to achieve decoupling and asynchronous messaging between services Introduction In the process of building modern complex applications, decoupling and asynchronous processing between services has become a common requirement. Especially in the context of microservice architecture, the decoupling between services can greatly improve the scalability and maintainability of the system. In this blog, I […]

In complex tasks, process decoupling design

Original Cicada Smile Cicada Smile 2022-05-08 18:28 Published in Zhejiang Complicated processes have to be done asynchronously in one step; 1. Business scenario In the process of system development, there must be extremely time-consuming actions, which are problems that cannot be solved based on the request-response mode. Usually, decoupling thinking is adopted, and the complete […]