×
Coding

Eliminate If-Else with Strategy Pattern | A Summary of the Smart-Auto Refactoring

This article provides a step-by-step guide on how to apply the strategy pattern to simplify complex code.

How to Use the Chain of Responsibility Pattern in Business Code

This article provides a comprehensive guide as to CoR’s definition, benefits, suitable scenarios, practical examples, and detailed implementation steps to introduce how to use it within business code.

Common Java Code Defects and Solutions

This article summarizes common code defects and solutions encountered in daily development to provide helpful insights.

Practice and Reflections on Vectorized Code: How to Speed Up Code with Vectorization Technology

This article analyzes the vectorization technology, explains SIMD instructions, and introduces how to write standard vectorized code.

A Comprehensive Discussion on C++20 Coroutines

This article is an introduction to C++20 coroutines. It provides a comprehensive explanation of the concept and implementation of coroutines

Spring Circular Dependency

This article introduces the principle of Spring circular dependency and gives the circular dependency scenarios and cases that Spring cannot support.

Java Annotation Processing Tool - AbstractProcessor

This article provides a detailed description of how Java annotation processors work and how they automatically generate code.

The Art of Code Comments: Does Good Code Need Comments?

This article discusses code comments, including their importance, significance, and controversies.

An Introduction to RSocket: Servlet vs. RSocket

This article explains some basic knowledge of RSocket by comparing Servlet and RSocket.

Java Programming Skills: The Simplified Methods of Unit Test Cases

This article summarizes the simplified methods of more than ten kinds of test cases to promote Java unit tests and make it simpler when writing unit test cases.

The Invalid Unit Tests We Wrote

This article summarizes a set of methods and principles to avoid writing invalid unit test cases through daily unit test practice.

Higress Practice: Use 30 Lines of Code to Write a Wasm Go Plugin

This article introduces a Demo of Open-Source Higress and explains the principle and mechanism behind it.

Java 8 Lambda Implementing Source Code Parsing

This article explores the design and implementation of Java 8 Lambda from the source code level.

Code Smell - High Cyclomatic Complexity with Multi-Layer Nesting

This article introduces cyclomatic complexity and discusses good/bad code smells.

Case Study: How to Eliminate Bad Code

The case study compares the code before and after refactoring from the perspectives of structural design, code readability, and robustness.

Five Writing Skills Effectively Improving Unit Testing Practices

This article discusses different writing skills that can improve unit testing practices.

A Deep Analysis of Virtual Keywords

This article introduces virtual and explains how it works ad why it is necessary.

Flutter IM Cross-End Architecture Design and Implementation

This article discussed the architecture design and implementation of Flutter IM.

The Use of Vector Rotation in a Two-Dimensional Space

This article will explain the principle of vector rotation in a two-dimensional space.

"When Can the Operating System Be Recognized?" A 16-Year Insistence of Open-Source Developers

This article is an in-depth interview with Tao Ma, Chairman of OpenAnolis.