Tagged articles

refactoring

426 articles · Page 2 of 5
ITPUB
ITPUB
Dec 8, 2024 · Databases

How to Refactor Complex SQL Like Java Code: A Step‑by‑Step Case Study

This article walks through a real‑world slow‑SQL case from a logistics routing system, demonstrating how systematic formatting, layer decomposition, condition push‑down, join optimization, and validation can transform a tangled query into a clean, performant, and maintainable statement.

SQLrefactoring
0 likes · 15 min read
How to Refactor Complex SQL Like Java Code: A Step‑by‑Step Case Study
JD Tech
JD Tech
Nov 28, 2024 · Fundamentals

Comprehensive Guide to Unit Testing Strategies and Tools for Java Projects

This article presents a detailed, step‑by‑step guide on improving unit test coverage in large Java codebases, covering strategies such as mocking, divide‑and‑conquer, tool‑assisted test generation, reflection‑based coverage, Maven configuration, and practical tips for handling static methods, final classes, and test data replay.

JUnitJavaMockito
0 likes · 27 min read
Comprehensive Guide to Unit Testing Strategies and Tools for Java Projects
Java Backend Technology
Java Backend Technology
Nov 26, 2024 · Backend Development

How the Chain of Responsibility Pattern Simplifies Java Import Logic

This article explains the Chain of Responsibility design pattern, shows why a naïve nested‑if implementation is problematic, and demonstrates step‑by‑step refactorings—including abstract handlers and a factory‑based configuration—to create clean, maintainable Java backend code.

BackendChain of ResponsibilityDesign Patterns
0 likes · 12 min read
How the Chain of Responsibility Pattern Simplifies Java Import Logic
Zhuanzhuan Tech
Zhuanzhuan Tech
Nov 22, 2024 · Backend Development

Refactoring Practices and Tools for Java Code

This article explains the concept of code refactoring, its goals, timing, challenges, common scenarios, and practical techniques—including parameter extraction, guard clauses, strategy patterns, and IDE tools—providing Java examples and recommendations for improving code quality.

IDEcode-qualitydesign-patterns
0 likes · 23 min read
Refactoring Practices and Tools for Java Code
Java Tech Enthusiast
Java Tech Enthusiast
Oct 26, 2024 · Fundamentals

12 Coding Habits That Reduce Code Readability and Increase Maintenance Difficulty

The article outlines twelve harmful coding habits—such as excessive microservice splitting, incomplete refactoring, overly long methods, deep nesting, random variable names, inaccurate or outdated comments, duplicated code, ignoring specifications, missing logging, over‑engineered frameworks, and reinventing wheels—that degrade readability, complicate maintenance, increase bugs, and hurt team productivity.

Coding PracticesFrameworkscode quality
0 likes · 9 min read
12 Coding Habits That Reduce Code Readability and Increase Maintenance Difficulty
Java Tech Enthusiast
Java Tech Enthusiast
Oct 12, 2024 · Fundamentals

Simplifying Driver Assignment Logic: Guard Clauses, Decision Tables, and Function Composition

The article shows how to replace the taxi‑hailing app’s deeply nested driver‑assignment if‑statements with early‑exit guard clauses, data‑driven decision tables, and composable functions, thereby flattening the logic, enhancing readability, simplifying testing, and making future extensions easier to implement.

JavaScriptPythondecision tables
0 likes · 6 min read
Simplifying Driver Assignment Logic: Guard Clauses, Decision Tables, and Function Composition
21CTO
21CTO
Oct 11, 2024 · Fundamentals

From Messy to Clean: Transform Your Code with Simple Best Practices

This article shares a developer’s journey from tangled, hard‑to‑read code to clean, maintainable software, illustrating how meaningful naming, PEP 8 compliance, static typing, small functions, avoiding magic numbers, and the DRY principle can dramatically improve code quality.

Best PracticesDRYclean code
0 likes · 9 min read
From Messy to Clean: Transform Your Code with Simple Best Practices
FunTester
FunTester
Sep 14, 2024 · R&D Management

Why Does Software Architecture Turn Into a Nightmare and How to Fix It

The article examines why software architectures become tangled—citing resource constraints, poor organization, unmanaged technical debt, outdated tech, and missing documentation—and offers practical strategies such as background analysis, continuous refactoring, training, communication, design‑pattern adoption, engineering culture, and comprehensive testing to restore health.

engineering culturerefactoringsoftware architecture
0 likes · 25 min read
Why Does Software Architecture Turn Into a Nightmare and How to Fix It
21CTO
21CTO
Sep 4, 2024 · Backend Development

How to Refactor Complex if‑else Chains in Java: Enums, Factories & Strategies

This article explains why excessive if‑else statements increase cost and complexity in Java applications and demonstrates several refactoring techniques—including enums, the factory pattern, the strategy pattern, and Stream API maps—to produce cleaner, more maintainable code.

Design PatternsEnumJava
0 likes · 10 min read
How to Refactor Complex if‑else Chains in Java: Enums, Factories & Strategies
JD Tech
JD Tech
Aug 16, 2024 · Fundamentals

Refactoring: Concepts, Boundaries, Timing, Practices, and Techniques

This article explains the philosophy and practical steps of software refactoring, covering its definition, scope, when and why to refactor, systematic processes, risk management, and a catalog of common refactoring techniques illustrated with Java code examples.

Design PatternsSoftware Engineeringrefactoring
0 likes · 26 min read
Refactoring: Concepts, Boundaries, Timing, Practices, and Techniques
Senior Tony
Senior Tony
Aug 13, 2024 · Fundamentals

How to Refactor Course Display Logic with the Decorator Pattern in Java

This article demonstrates how to identify long‑method and duplicated code smells in a Java curriculum‑display service and refactor the implementation using the Decorator pattern, providing clear component diagrams, full code examples, and a runnable demo that showcases flexible extensions for different course types.

Bad SmellDecorator PatternDesign Patterns
0 likes · 11 min read
How to Refactor Course Display Logic with the Decorator Pattern in Java
Architecture Digest
Architecture Digest
Aug 12, 2024 · Fundamentals

Replacing If‑Else: Cleaner Code Strategies and Refactoring Techniques

This article explains why traditional if‑else statements often lead to complex, hard‑to‑maintain code and demonstrates several techniques—such as removing unnecessary else blocks, using fast returns, guard clauses, dictionary‑based dispatch, and the strategy pattern—to replace if‑else with cleaner, more extensible designs.

Design PatternsSoftware EngineeringStrategy Pattern
0 likes · 6 min read
Replacing If‑Else: Cleaner Code Strategies and Refactoring Techniques
Code Ape Tech Column
Code Ape Tech Column
Aug 9, 2024 · Backend Development

Design and Implementation of a Java Rule Engine with AND/OR Logic

This article explains how to refactor a simple if‑else based user‑application rule check into a modular Java rule engine that supports AND/OR short‑circuit evaluation, detailing the design, abstract and concrete rule classes, a fluent service builder, and a test example.

Code ExampleShort-Circuitdesign-pattern
0 likes · 8 min read
Design and Implementation of a Java Rule Engine with AND/OR Logic
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 2, 2024 · Backend Development

Refactoring and Optimizing the WorkQueue Go Library: Design, Implementation, and Performance Evaluation

This article details the author's comprehensive refactor of the WorkQueue Go library, covering the redesign of its sorting heap using a red‑black tree, interface improvements, enhanced data structures, extensive performance benchmarks, and a step‑by‑step usage guide for developers.

DataStructureGoPerformance
0 likes · 43 min read
Refactoring and Optimizing the WorkQueue Go Library: Design, Implementation, and Performance Evaluation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 18, 2024 · Backend Development

6 Proven Strategies to Eliminate if‑else in Spring Boot Projects

This article explains why excessive if‑else statements hurt Spring Boot code and presents six practical techniques—including strategy pattern, enums, polymorphism, lambda expressions, command pattern, and guard clauses—along with complete Java examples to make your backend more modular, readable, and maintainable.

BackendJavadesign-patterns
0 likes · 10 min read
6 Proven Strategies to Eliminate if‑else in Spring Boot Projects
Sohu Tech Products
Sohu Tech Products
Jul 17, 2024 · Fundamentals

Refactoring Spaghetti Code: Strategies for Complex if‑else Structures

The article explains how deeply nested if‑else statements create spaghetti code and proposes three refactoring techniques—function extraction, lookup‑table mapping, and the responsibility‑chain pattern—to replace complex conditional trees with modular, readable structures that dramatically lower control‑flow complexity.

Code MaintainabilityJavaScriptif-else
0 likes · 9 min read
Refactoring Spaghetti Code: Strategies for Complex if‑else Structures
macrozheng
macrozheng
Jul 13, 2024 · Backend Development

12 Coding Anti‑Patterns That Destroy Readability (And How to Avoid Them)

The article lists twelve harmful coding habits—from over‑splitting microservices and writing massive methods to ignoring logs and reinventing the wheel—that dramatically reduce code readability and increase maintenance difficulty, illustrating each with real‑world consequences.

code qualityrefactoringsoftware anti-patterns
0 likes · 12 min read
12 Coding Anti‑Patterns That Destroy Readability (And How to Avoid Them)
Architect
Architect
Jul 11, 2024 · Backend Development

Architecture Refactoring of a Consumer Installment System: Background, Goals, Design, Deployment, and Monitoring

This article presents a comprehensive case study of refactoring a consumer installment platform, covering business restructuring, technical debt resolution, design of domain and module layers, code redesign with design patterns, phased deployment, monitoring setup, and the overall benefits achieved.

Design Patternsarchitecturemicroservices
0 likes · 11 min read
Architecture Refactoring of a Consumer Installment System: Background, Goals, Design, Deployment, and Monitoring
Bilibili Tech
Bilibili Tech
Jul 5, 2024 · Frontend Development

Applying Clean Architecture to Front-End Migration: Refactoring a Large-Scale Review Platform from Vue2 to Vue3

The team refactored a high‑traffic Vue2 detail page to Vue3 using Clean Architecture, separating entities, use‑cases, adapters, and framework layers, while employing AST‑based tooling, comprehensive unit/E2E/visual tests, and a gray‑release strategy, resulting in reduced duplication, better test coverage, and a reusable migration pipeline.

Vue3automationclean architecture
0 likes · 23 min read
Applying Clean Architecture to Front-End Migration: Refactoring a Large-Scale Review Platform from Vue2 to Vue3
macrozheng
macrozheng
Jun 24, 2024 · Fundamentals

How to Keep Your Code Clean During Rapid Development

The article shares practical lessons on maintaining code quality and readability amid intense project iterations, emphasizing thorough code reviews, incremental refactoring, and the importance of a shared coding style to prevent technical debt and the broken‑window effect.

Code ReviewSoftware Engineeringclean code
0 likes · 9 min read
How to Keep Your Code Clean During Rapid Development
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 17, 2024 · Backend Development

How We Re‑engineered a Massive Video Streaming Platform for Faster Iterations

Facing growing complexity in video streaming, the team overhauled a legacy codebase by redefining architecture, improving code quality, and boosting engineering efficiency through componentized micro‑services, static analysis, automated testing, and gradual rollout, ultimately achieving decoupled, fast‑iteration capabilities across the platform.

Software Engineeringarchitecturecode quality
0 likes · 15 min read
How We Re‑engineered a Massive Video Streaming Platform for Faster Iterations
DaTaobao Tech
DaTaobao Tech
Jun 14, 2024 · Backend Development

Large-Scale Refactoring of a Video Streaming Service: Architecture Redesign and Implementation

To tackle mounting complexity in a fast‑growing video streaming platform, the team executed a large‑scale refactor that introduced a vertical‑layered, horizontally modular architecture, enforced coding standards and ArchUnit guards, applied incremental safe refactoring and gray‑release monitoring, ultimately reducing core classes to seven, improving code quality and engineering efficiency.

Software Engineeringarchitecturecode quality
0 likes · 13 min read
Large-Scale Refactoring of a Video Streaming Service: Architecture Redesign and Implementation
DaTaobao Tech
DaTaobao Tech
Jun 12, 2024 · Backend Development

Refactoring Large-Scale Video Streaming Engineering: Theory and Practice

The article presents a comprehensive guide to large‑scale video‑streaming system refactoring, combining theory on continuous improvement, architectural evolution, code‑quality criteria, and challenges with a practical roadmap that leverages automation, systematic analysis, engineering safeguards, static‑analysis tools, and design patterns to safely transform legacy monoliths into modular, containerized platforms.

Component ArchitectureEngineering Practicescode quality
0 likes · 16 min read
Refactoring Large-Scale Video Streaming Engineering: Theory and Practice
Test Development Learning Exchange
Test Development Learning Exchange
May 31, 2024 · Fundamentals

Test-Driven Development (TDD): Principles, Process, Practices, Benefits, and Challenges

Test‑Driven Development (TDD) is a software development methodology that guides developers to write failing tests first, then implement minimal code to pass them, and finally refactor, offering benefits such as higher code quality, clearer requirements, safer refactoring, and reduced long‑term maintenance costs.

agile-practicescode qualityrefactoring
0 likes · 7 min read
Test-Driven Development (TDD): Principles, Process, Practices, Benefits, and Challenges
phodal
phodal
May 31, 2024 · Artificial Intelligence

From Chat to Auto‑Execution: How AutoDev Reinvents AI‑Powered Development

This article examines the open‑source AutoDev AI‑driven programming tool, outlining its three maturity stages—from chat‑based assistance to fully automated generation, verification, and execution—and detailing new features such as automatic refactoring, API test execution, bulk test creation, and batch prompting to improve developer productivity.

AI coding toolsAutoDevautomated testing
0 likes · 8 min read
From Chat to Auto‑Execution: How AutoDev Reinvents AI‑Powered Development
JD Tech Talk
JD Tech Talk
May 21, 2024 · Databases

SQL Refactoring Case Study for JDL Routing System: Reducing Complexity and Improving Performance

This article presents a detailed case study of refactoring a complex, performance‑critical SQL query used in a JDL routing system, demonstrating step‑by‑step formatting, hierarchical decomposition, and optimization techniques such as layer merging, predicate push‑down, join simplification, and index tuning to dramatically reduce execution time.

Query TuningSQLrefactoring
0 likes · 19 min read
SQL Refactoring Case Study for JDL Routing System: Reducing Complexity and Improving Performance
JD Cloud Developers
JD Cloud Developers
May 21, 2024 · Databases

How to Refactor Complex SQL Like Java Code: A Real‑World Case Study

This article demonstrates how to refactor a complex, production‑level SQL query used in a routing system by formatting, decomposing into layers, merging temporary tables, pushing predicates, optimizing joins, and validating performance, ultimately reducing nesting from four levels to one and cutting execution time from 4.75 s to 0.6 s.

JOINOptimizationPerformance
0 likes · 15 min read
How to Refactor Complex SQL Like Java Code: A Real‑World Case Study
Java Architect Essentials
Java Architect Essentials
May 14, 2024 · Fundamentals

Master Clean Code: Naming, Classes, Functions, and Testing Made Simple

This article explains why clean code is essential for productivity and project health, and provides practical guidance on naming, class design, function design, and testing—including SOLID principles, parameter handling, exception use, and test‑driven development—to help developers write maintainable, high‑quality software.

SOLIDclean codenaming conventions
0 likes · 17 min read
Master Clean Code: Naming, Classes, Functions, and Testing Made Simple
Architecture Digest
Architecture Digest
May 9, 2024 · Fundamentals

Clean Code Practices: Naming, Classes, Functions, and Testing

This article explains why clean code matters for productivity and project health, and provides practical guidelines on naming, class design, function design, SOLID principles, testing strategies, and tooling to help developers write maintainable, readable software.

SOLIDclean codenaming conventions
0 likes · 13 min read
Clean Code Practices: Naming, Classes, Functions, and Testing
Top Architect
Top Architect
May 7, 2024 · Fundamentals

Clean Code Principles: Naming, Classes, Functions, and Testing Practices

This article explains why clean code is essential for productivity and project health, covering naming conventions, class design, SOLID principles, function design, parameter handling, testing strategies like TDD and the FIRST principles, and tools such as SonarLint to maintain code quality.

clean codenaming conventionsrefactoring
0 likes · 18 min read
Clean Code Principles: Naming, Classes, Functions, and Testing Practices
Architect
Architect
Apr 21, 2024 · Backend Development

Backend Architecture Refactoring and Design for Consumer Installment Service

This article presents a comprehensive case study of refactoring a consumer installment system, detailing the background, technical debt, redesign goals, domain‑driven design, module splitting, code design with Java patterns, migration process, monitoring setup, and the overall benefits achieved.

architecturedesign-patternsmicroservices
0 likes · 12 min read
Backend Architecture Refactoring and Design for Consumer Installment Service
Architecture Digest
Architecture Digest
Apr 21, 2024 · Backend Development

12 Coding Anti‑Patterns That Reduce Readability and Increase Maintenance Difficulty

The article enumerates twelve common coding anti‑patterns—such as over‑splitting microservices, writing excessively long methods, deep nesting, random variable names, misleading comments, copy‑paste code, ignoring logs, and over‑engineered solutions—that dramatically hurt code readability, maintainability, and team productivity.

code qualityrefactoringsoftware anti-patterns
0 likes · 11 min read
12 Coding Anti‑Patterns That Reduce Readability and Increase Maintenance Difficulty
Java Architect Essentials
Java Architect Essentials
Apr 15, 2024 · Fundamentals

Clean Code Practices: Naming, Classes, Functions, and Testing Guidelines

The article explains why maintaining clean code is essential, covering naming conventions, class design, function principles, and testing strategies, and provides concrete Java examples and refactoring techniques to help developers write readable, maintainable, and high‑quality software.

Single Responsibilityclean codenaming conventions
0 likes · 16 min read
Clean Code Practices: Naming, Classes, Functions, and Testing Guidelines
phodal
phodal
Apr 7, 2024 · Artificial Intelligence

How AutoDev 1.8 Boosts AI‑Assisted Refactoring and DevOps Automation

AutoDev 1.8 introduces AI‑driven refactoring, commit‑message generation, CLI assistance, and Chinese prompt support, combining software‑development best practices with knowledge‑engineered AI to streamline code changes, improve code quality, and integrate seamlessly into modern DevOps pipelines.

AI codingAutoDevCLI assistance
0 likes · 9 min read
How AutoDev 1.8 Boosts AI‑Assisted Refactoring and DevOps Automation
JD Tech
JD Tech
Apr 7, 2024 · Fundamentals

Comprehensive Guide to Effective Code Review: Principles, Practices, and Common Challenges

This article presents an in‑depth guide on modern code review, covering its significance, core principles, preparation checklists, automation tools, good and bad commit messages, code quality metrics, naming conventions, security considerations, common pitfalls, conflict resolution, and time‑management strategies for development teams.

Code ReviewSoftware Engineeringrefactoring
0 likes · 20 min read
Comprehensive Guide to Effective Code Review: Principles, Practices, and Common Challenges
Ops Development & AI Practice
Ops Development & AI Practice
Mar 26, 2024 · Fundamentals

Add Parameters or Create a New Function? Choosing the Right Refactor

When extending existing code, developers must decide between adding parameter‑based conditional logic or introducing a new function, weighing benefits such as code centralization against drawbacks like increased complexity, readability, and maintainability, while considering single‑responsibility, reuse, default parameters, overloads, and design patterns.

Code Maintainabilityfunction designparameter handling
0 likes · 4 min read
Add Parameters or Create a New Function? Choosing the Right Refactor
Architect
Architect
Mar 21, 2024 · Backend Development

Refactoring a Complex Order Process with a Three‑Layer Interface and Strategy Template

This article analyzes the problems of a scattered, poorly‑designed order‑processing codebase, proposes a three‑layer interface combined with a strategy‑template pattern, walks through concrete Java implementations, testing and gray‑release safeguards, and shows how the redesign improves readability, maintainability, and extensibility.

Design PatternsStrategy Patternmicroservices
0 likes · 15 min read
Refactoring a Complex Order Process with a Three‑Layer Interface and Strategy Template
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 21, 2024 · Fundamentals

Refactoring Multi‑Board SDK Integration Using Abstract Factory, Adapter, and Facade Patterns

The article analyzes a multi‑board Android SDK integration problem, identifies hard‑coded type checks and inconsistent APIs, and proposes a refactor that employs the Abstract Factory, Adapter, and Facade design patterns with Kotlin examples to achieve loose coupling, extensibility, and clearer business concepts.

Abstract FactoryAdapter PatternDesign Patterns
0 likes · 10 min read
Refactoring Multi‑Board SDK Integration Using Abstract Factory, Adapter, and Facade Patterns
Zhuanzhuan Tech
Zhuanzhuan Tech
Mar 20, 2024 · Backend Development

Technical Refactoring of ZhiZhi Consumer Installment System: Architecture, Design, and Implementation

This article details the background, goals, design decisions, code architecture, deployment process, monitoring setup, and outcomes of a comprehensive backend refactoring effort for the ZhiZhi consumer installment platform, illustrating how modularization, design patterns, and incremental migration improve maintainability and performance.

architecturerefactoring
0 likes · 10 min read
Technical Refactoring of ZhiZhi Consumer Installment System: Architecture, Design, and Implementation
php Courses
php Courses
Mar 15, 2024 · Fundamentals

The Art of Taming Legacy Code: Strategies, Examples, and Future Directions

This article explores the challenges of legacy code through practical examples, offering step‑by‑step refactoring strategies, testing, documentation, environment management, and innovative tooling like ServBay to help developers modernize both backend and frontend systems while fostering professional growth.

Best Practicesfrontendlegacy code
0 likes · 6 min read
The Art of Taming Legacy Code: Strategies, Examples, and Future Directions
dbaplus Community
dbaplus Community
Mar 10, 2024 · Backend Development

How to Seamlessly Refactor MVC Projects into DDD Architecture

This article explains why legacy MVC codebases become tangled, introduces the domain‑driven design (DDD) layered architecture, and provides a step‑by‑step, low‑cost migration path—including layer mapping, call‑chain illustration, common pitfalls, and a concrete refactoring example with design patterns and code snippets.

DDDDesign PatternsMVC
0 likes · 20 min read
How to Seamlessly Refactor MVC Projects into DDD Architecture
Architect's Alchemy Furnace
Architect's Alchemy Furnace
Mar 6, 2024 · Fundamentals

Why Quick Fixes Kill Code Quality and How to Avoid Them

The article warns that relying on quick, superficial bug fixes creates hidden technical debt, explains why deep understanding of code changes matters, and offers practical advice to keep code clean, maintainable, and resilient in complex systems.

Best PracticesSoftware Engineeringcode quality
0 likes · 6 min read
Why Quick Fixes Kill Code Quality and How to Avoid Them
Architect's Guide
Architect's Guide
Feb 6, 2024 · Backend Development

12 Counterproductive Coding Practices Illustrated by the Fictional Programmer “Er Gou”

The article humorously lists twelve detrimental coding habits—such as over‑splitting microservices, writing excessively long methods, nesting deep conditionals, random variable names, misleading comments, copy‑pasting code, ignoring logs, and reinventing wheels—that reduce code readability and increase maintenance difficulty.

Software Engineeringbad practicescode quality
0 likes · 11 min read
12 Counterproductive Coding Practices Illustrated by the Fictional Programmer “Er Gou”
MaGe Linux Operations
MaGe Linux Operations
Feb 4, 2024 · Fundamentals

Why TDD and BDD Matter: Master the Red‑Green‑Refactor Cycle

This article explains the core concepts, rhythms, and practical applications of Test‑Driven Development (TDD) and Behavior‑Driven Development (BDD), illustrating how the red‑green‑refactor loop and business‑focused scenarios improve code quality, design, and collaboration between developers and stakeholders.

BDDBehavior Driven DevelopmentTDD
0 likes · 19 min read
Why TDD and BDD Matter: Master the Red‑Green‑Refactor Cycle
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 24, 2024 · Mobile Development

Unlock Peak Kotlin Performance with Advanced Refactoring Techniques

This article guides developers through a series of Kotlin refactoring steps—replacing when statements with HashMap, introducing payload mechanisms, infix functions, inline registration, and delegated properties—to dramatically improve event‑handling performance, readability, and maintainability while adhering to the single‑responsibility principle.

Dependency InjectionHashMapInfix Functions
0 likes · 16 min read
Unlock Peak Kotlin Performance with Advanced Refactoring Techniques
php Courses
php Courses
Jan 22, 2024 · Backend Development

Common PHP Code Smells and Refactoring Solutions

This article explains typical PHP code smells such as long methods, large classes, duplicate code, excessive comments, complex conditionals, and infinite loops, and provides concrete refactoring examples to improve readability, maintainability, and overall code quality.

BackendPHPSoftware Engineering
0 likes · 8 min read
Common PHP Code Smells and Refactoring Solutions
ITPUB
ITPUB
Dec 28, 2023 · Backend Development

How We Refactored a 670k‑Line, 46‑Module Ticket System to Slash Deployment Time

This article details the background, pain points, and step‑by‑step technical solution behind refactoring a massive 670,000‑line, 46‑module ticketing application at Alibaba, highlighting architecture redesign, code simplification, performance gains, and a pragmatic rollout plan.

BackendJavaPerformance
0 likes · 26 min read
How We Refactored a 670k‑Line, 46‑Module Ticket System to Slash Deployment Time
macrozheng
macrozheng
Dec 21, 2023 · Fundamentals

Keeping Code Clean During Rapid Development: Review and Refactoring Strategies

The article shares practical experiences and advice on maintaining code quality through disciplined code reviews, incremental refactoring, and team-wide coding standards, emphasizing readability and continuous improvement to prevent technical debt and the broken‑window effect in fast‑moving projects.

Code Reviewcode qualityrefactoring
0 likes · 9 min read
Keeping Code Clean During Rapid Development: Review and Refactoring Strategies
Programmer DD
Programmer DD
Dec 15, 2023 · Backend Development

12 Counterproductive Coding Practices That Kill Readability

The article enumerates twelve common defensive coding habits—like per‑table microservices, overly long methods, deep nesting, misleading comments, and unnecessary frameworks—that degrade readability and increase maintenance effort, illustrating each with a fictional programmer’s missteps and their impact on teams.

Javacode qualityrefactoring
0 likes · 11 min read
12 Counterproductive Coding Practices That Kill Readability
转转QA
转转QA
Dec 6, 2023 · Backend Development

Store System Refactoring Types, Challenges, and Testing Strategies

This article analyzes the current store system issues, outlines various refactoring types and their difficulties, presents common efficiency measures, and details testing schemes for both unchanged‑business and changed‑business refactoring cases, highlighting objectives, challenges, processes, and overall effectiveness.

BackendPerformancerefactoring
0 likes · 8 min read
Store System Refactoring Types, Challenges, and Testing Strategies
ITPUB
ITPUB
Dec 2, 2023 · Fundamentals

12 Toxic Coding Habits That Destroy Readability (And How to Avoid Them)

The article lists twelve common anti‑patterns—such as over‑splitting microservices, writing excessively long methods, random naming, misleading comments, and avoiding logging—that dramatically reduce code readability and increase maintenance difficulty, illustrating each with a fictional developer’s missteps.

Software Engineeringbad practicescode quality
0 likes · 11 min read
12 Toxic Coding Habits That Destroy Readability (And How to Avoid Them)
Java Architect Essentials
Java Architect Essentials
Nov 24, 2023 · Fundamentals

12 Coding Practices That Reduce Code Readability

The article lists twelve common coding anti‑patterns—such as over‑splitting microservices, writing excessively long methods, deep nesting, misleading comments, copying code, ignoring logs, and building unnecessary frameworks—that hurt readability and increase maintenance difficulty.

Best PracticesCode Readabilityrefactoring
0 likes · 11 min read
12 Coding Practices That Reduce Code Readability
Java High-Performance Architecture
Java High-Performance Architecture
Nov 24, 2023 · Fundamentals

12 Coding Anti‑Patterns That Destroy Readability (And How to Avoid Them)

The article humorously lists twelve common coding “techniques” that reduce readability and increase maintenance difficulty, illustrating each with exaggerated examples of a programmer named Er Gou who over‑splits microservices, writes massive methods, misuses comments, copies code, and ignores logging.

Anti-PatternsSoftware Engineeringcode quality
0 likes · 10 min read
12 Coding Anti‑Patterns That Destroy Readability (And How to Avoid Them)
Sanyou's Java Diary
Sanyou's Java Diary
Nov 16, 2023 · Fundamentals

Why Readable Code Wins: Practical Tips to Boost Maintainability

This article explores the importance of code readability, comparing simple versus layered implementations, and offers concrete strategies—such as using clear intent, hierarchical structure, concise methods, pure conditions, and minimal comments—to improve maintainability and reduce side effects in everyday software development.

Best PracticesCode Readabilityclean code
0 likes · 14 min read
Why Readable Code Wins: Practical Tips to Boost Maintainability
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 16, 2023 · Fundamentals

How to Boost Code Readability: Practical Tips and Refactoring Strategies

This article explores why code readability matters, compares two implementation styles, outlines three key readability dimensions—plain expression, clear intent, and hierarchical structure—and provides actionable refactoring tips, code‑generation insights, and best‑practice recommendations for developers seeking maintainable, easy‑to‑understand software.

Code ReadabilitySoftware Engineeringmaintainability
0 likes · 14 min read
How to Boost Code Readability: Practical Tips and Refactoring Strategies
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 7, 2023 · Frontend Development

How to Turn Technical Debt into Growth: Refactoring Lessons from Alibaba Cloud

This article shares a developer’s three‑year journey on Alibaba Cloud’s platform, exploring the nature of technical debt, categorizing its causes, and illustrating how micro‑refactorings and configuration‑driven upgrades can steadily improve code quality, accelerate feature delivery, and align engineering with business goals.

Configurationfrontend developmentrefactoring
0 likes · 10 min read
How to Turn Technical Debt into Growth: Refactoring Lessons from Alibaba Cloud
FunTester
FunTester
Nov 1, 2023 · Fundamentals

Understanding and Managing Technical Debt in Software Development

This article explains what technical debt is, its harmful effects, common scenarios that generate it, common misconceptions, and practical strategies for managing and repaying technical debt to keep software projects maintainable and cost‑effective.

Software Engineeringcode qualityrefactoring
0 likes · 25 min read
Understanding and Managing Technical Debt in Software Development
Tencent Cloud Developer
Tencent Cloud Developer
Oct 30, 2023 · Fundamentals

Understanding and Managing Technical Debt in Software Development

Technical debt—ranging from low‑level design flaws and inadequate testing to strategic shortcuts and evolving third‑party dependencies—accumulates when urgent product demands bypass best practices, leading to higher costs, slower delivery, and poorer quality, so teams must make debt visible, enforce strong completion criteria, and allocate regular sprint capacity to prioritize, refactor, and repay high‑interest debt while recognizing when legacy code can be retired.

refactoringrisk managementtechnical debt
0 likes · 25 min read
Understanding and Managing Technical Debt in Software Development
Java Interview Crash Guide
Java Interview Crash Guide
Oct 13, 2023 · Backend Development

Eliminate Complex if‑else Chains with Strategy and Chain‑of‑Responsibility Patterns in Java

This article demonstrates how to replace cumbersome if‑else or switch‑case logic in Java receipt processing with clean, extensible solutions using the Strategy pattern combined with a Map dictionary, and the Chain of Responsibility pattern, while preserving the Open/Closed principle.

Chain of ResponsibilityJavaStrategy Pattern
0 likes · 14 min read
Eliminate Complex if‑else Chains with Strategy and Chain‑of‑Responsibility Patterns in Java
Architect
Architect
Oct 5, 2023 · Fundamentals

Mastering Clean Code: Naming, Classes, Functions, and Tests Explained

This article explains why clean code matters, demonstrates how meaningful naming, single‑responsibility classes, well‑structured functions, and disciplined testing (TDD and the FIRST principles) improve readability, maintainability, and productivity, using concrete Java examples, refactorings, and step‑by‑step guidelines.

Single ResponsibilityTDDclean code
0 likes · 17 min read
Mastering Clean Code: Naming, Classes, Functions, and Tests Explained
Java High-Performance Architecture
Java High-Performance Architecture
Oct 1, 2023 · Fundamentals

Why Clean Code Matters: Practical Tips to Write Maintainable Java

This article summarizes key lessons from 'Clean Code', explaining why maintaining clean, readable Java code boosts productivity, reduces bugs and costs, and detailing practical guidelines for naming, class design, functions, testing, and refactoring to help developers write high‑quality, maintainable software.

clean codecoding standardsrefactoring
0 likes · 15 min read
Why Clean Code Matters: Practical Tips to Write Maintainable Java
Architecture Digest
Architecture Digest
Sep 28, 2023 · Fundamentals

How to Write Clean and Maintainable Code: Naming, Classes, Functions, and Testing

This article explains why clean code is essential for productivity and team collaboration, and provides practical guidelines on naming, class design, function design, and testing—including principles like single responsibility, SOLID, meaningful naming, minimal parameters, and test‑driven development—to help developers produce readable, extensible, and reliable software.

SOLIDclean codenaming conventions
0 likes · 14 min read
How to Write Clean and Maintainable Code: Naming, Classes, Functions, and Testing
Java Architect Essentials
Java Architect Essentials
Sep 27, 2023 · Fundamentals

How to Write Clean Code: Naming, Classes, Functions, and Testing Best Practices

This article explains why clean code is essential for productivity and business health, and provides practical guidelines on naming, class design, function design, and testing—including code examples, refactoring techniques, and quality‑checking tools—to help developers produce readable, maintainable, and extensible software.

TDDclean codecode quality
0 likes · 14 min read
How to Write Clean Code: Naming, Classes, Functions, and Testing Best Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 26, 2023 · Fundamentals

Understanding the Strategy Pattern in JavaScript

This article explains the Strategy design pattern, demonstrates its implementation in JavaScript through three code versions, discusses the drawbacks of naïve if‑else approaches, and outlines the pattern's advantages and disadvantages for creating flexible, maintainable code.

Design PatternsJavaScriptStrategy Pattern
0 likes · 6 min read
Understanding the Strategy Pattern in JavaScript
Continuous Delivery 2.0
Continuous Delivery 2.0
Sep 4, 2023 · Fundamentals

Mob Programming: A 2009 Refactoring Case Study

This article recounts a 2009 mob programming session in which the GoCD team refactored a module by introducing a missing domain object, illustrating the benefits of whole‑team collaboration, the prerequisites of a strong development environment and automated tests, and detailing the step‑by‑step code transformations.

Domain-Driven Designrefactoring
0 likes · 7 min read
Mob Programming: A 2009 Refactoring Case Study
Tencent Cloud Developer
Tencent Cloud Developer
Aug 28, 2023 · Backend Development

Effective Code Review and Engineering Best Practices

Effective code review bridges design and implementation by focusing on concrete Go code, enforcing limits on file and function size, nesting depth, and duplication, while promoting early returns, composition over inheritance, clear package structure, and disciplined formatting to prevent hidden technical debt.

Code Reviewarchitecturerefactoring
0 likes · 21 min read
Effective Code Review and Engineering Best Practices
AI Skills Research
AI Skills Research
Aug 28, 2023 · Fundamentals

Mastering Software Design Principles: SOLID, DRY, KISS, and More

The article explains why maintainable, human‑readable code matters for evolving software, outlines core concepts like high cohesion and low coupling, details the SOLID and other practical principles, and describes common refactoring techniques to improve readability and flexibility.

DRYKISSSOLID
0 likes · 6 min read
Mastering Software Design Principles: SOLID, DRY, KISS, and More
Su San Talks Tech
Su San Talks Tech
Aug 20, 2023 · Fundamentals

How to Keep Code Clean During Rapid Java Backend Iterations

The author shares personal experiences of rushed code reviews in a busy Java micro‑service team, highlights the loss of code ownership, discusses common code smells, and explains how disciplined reviews and incremental refactoring can restore readability and maintainability.

Code ReviewJavaSoftware Engineering
0 likes · 9 min read
How to Keep Code Clean During Rapid Java Backend Iterations
Selected Java Interview Questions
Selected Java Interview Questions
Aug 17, 2023 · Fundamentals

Understanding the Chain of Responsibility Design Pattern with Java Examples

This article introduces the Chain of Responsibility design pattern, explains its purpose and typical use cases, demonstrates common pitfalls with a naïve implementation, and provides step‑by‑step Java refactorings—including a basic chain, an abstract handler hierarchy, and a factory‑based configuration—to illustrate how to build flexible, maintainable processing pipelines.

Chain of ResponsibilityDesign PatternsJava
0 likes · 11 min read
Understanding the Chain of Responsibility Design Pattern with Java Examples
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 16, 2023 · Backend Development

Refactoring the Game Account Order Process with a Three‑Layer Interface and Strategy‑Template Pattern

This article describes how a game‑account order system with scattered core code and no design patterns was refactored into a clean three‑layer interface architecture using a strategy‑template approach, detailing the design, implementation, testing, gray‑release strategy, and post‑deployment safeguards.

Design PatternsJavaStrategy Pattern
0 likes · 12 min read
Refactoring the Game Account Order Process with a Three‑Layer Interface and Strategy‑Template Pattern
macrozheng
macrozheng
Aug 5, 2023 · Fundamentals

Why Code Reviews Fail and How Refactoring Can Rescue Your Project

The author reflects on rushed code reviews during intense development cycles, explains how neglecting thorough reviews leads to loss of code ownership, and advocates systematic reviews, continuous refactoring, and clean‑code practices to maintain project health and improve team collaboration.

Best PracticesCode ReviewSoftware Engineering
0 likes · 9 min read
Why Code Reviews Fail and How Refactoring Can Rescue Your Project
21CTO
21CTO
Aug 1, 2023 · Artificial Intelligence

How to Set Up and Master CodeGPT in VS Code for AI-Powered Coding

This guide walks you through installing the CodeGPT extension in Visual Studio Code, configuring your OpenAI API key, and using its features—code generation, explanation, refactoring, and unit test creation—to boost productivity with AI-assisted programming.

AI codingCodeGPTOpenAI API
0 likes · 8 min read
How to Set Up and Master CodeGPT in VS Code for AI-Powered Coding
Tencent Cloud Developer
Tencent Cloud Developer
Jul 25, 2023 · Fundamentals

From Code Design to Refactoring: Improving Code Quality

The article shows how high‑quality code emerges from solid design and disciplined refactoring, using an image‑optimization tool case study to illustrate breaking tangled if‑else logic into Strategy and Template Method patterns, applying SOLID principles, six quality pillars, and managing technical debt and code smells.

SOLIDrefactoringtechnical debt
0 likes · 30 min read
From Code Design to Refactoring: Improving Code Quality
FunTester
FunTester
Jul 18, 2023 · Fundamentals

9 Common Code Smells and How to Fix Them for Cleaner, Safer Software

This article examines nine frequent coding pitfalls—from inconsistent naming and missing comments to poor error handling, hard‑coded values, inadequate testing, over‑optimization, security oversights, and weak version‑control practices—offering concrete refactoring examples and best‑practice recommendations to improve readability, maintainability, and reliability.

Best PracticesSecuritySoftware Engineering
0 likes · 18 min read
9 Common Code Smells and How to Fix Them for Cleaner, Safer Software
TAL Education Technology
TAL Education Technology
Jul 13, 2023 · Fundamentals

Understanding Cyclomatic Complexity and Code Quality Metrics

This article explains cyclomatic complexity, its calculation formulas, practical examples, and how to measure and improve code quality using tools like SonarQube, ESLint, and codeMetrics, while also presenting refactoring techniques such as single‑responsibility, open‑closed, polymorphism, early returns, and functional programming to reduce complexity.

JavaScriptSonarQubecode metrics
0 likes · 13 min read
Understanding Cyclomatic Complexity and Code Quality Metrics
Ctrip Technology
Ctrip Technology
Jul 13, 2023 · Backend Development

Refactoring Practices and Strategies for Large‑Scale Microservice Systems

This article outlines the definition, motivations, impact levels, planning, communication, layered design, gray‑release techniques, quality improvement measures, and observability considerations for large‑scale backend refactoring in microservice architectures, drawing on practical experience from Ctrip's end‑to‑end refactoring project.

code qualityrefactoringsoftware architecture
0 likes · 11 min read
Refactoring Practices and Strategies for Large‑Scale Microservice Systems
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 29, 2023 · Fundamentals

Can You Write Clean Code Without Comments? Strategies to Eliminate Bad Annotations

This article explores why programmers dislike both reading uncommented code and writing comments, outlines the drawbacks of excessive annotations, categorizes common bad comment patterns, and offers practical techniques—such as self‑descriptive naming, refactoring, and using built‑in validation methods—to produce clear, maintainable code without relying on comments.

Software Engineeringclean codecode comments
0 likes · 7 min read
Can You Write Clean Code Without Comments? Strategies to Eliminate Bad Annotations
JD Tech
JD Tech
Jun 27, 2023 · Fundamentals

How to Quickly Learn and Master Coding Skills: From Learning Mindset to Refactoring Principles

This article explores rapid ways to acquire coding abilities by emphasizing the role of cognition, outlining learning paths such as setting direction, finding role models, applying knowledge, avoiding cognitive traps, studying code examples, and understanding refactoring principles through a practical RocketMQ case study.

Best PracticesCodingLearning
0 likes · 21 min read
How to Quickly Learn and Master Coding Skills: From Learning Mindset to Refactoring Principles
Programmer DD
Programmer DD
May 24, 2023 · Fundamentals

Mastering the Chain of Responsibility Pattern: From Flawed IF Chains to Elegant Handlers

This article explains the Chain of Responsibility design pattern, shows why naïve nested if‑statements are problematic, demonstrates a step‑by‑step refactor using linked handlers, introduces an abstract handler hierarchy, and finally presents a factory‑based dynamic configuration for scalable request processing in Java.

Chain of ResponsibilityDesign Patternrefactoring
0 likes · 12 min read
Mastering the Chain of Responsibility Pattern: From Flawed IF Chains to Elegant Handlers
Java Architect Essentials
Java Architect Essentials
May 23, 2023 · Fundamentals

Replacing If‑Else: Five Techniques from Basic to Advanced

This article explores why traditional if‑else statements often lead to complex, hard‑to‑maintain code and presents five progressive techniques—including removing unnecessary else blocks, using fast‑return guard clauses, converting to dictionaries, and applying the strategy pattern—to improve readability, extensibility, and adherence to SOLID principles.

Design PatternsSoftware EngineeringStrategy Pattern
0 likes · 6 min read
Replacing If‑Else: Five Techniques from Basic to Advanced
Continuous Delivery 2.0
Continuous Delivery 2.0
May 22, 2023 · Fundamentals

Improving Code Quality: Five Practical Refactoring Techniques for Better Software

This article outlines five practical strategies for improving code quality—including appropriate commenting, limiting function parameter length, avoiding overly long functions, simplifying nested conditionals, and applying design patterns—while emphasizing the importance of refactoring to enhance readability, maintainability, and testability of software.

Design Patternscode qualityrefactoring
0 likes · 10 min read
Improving Code Quality: Five Practical Refactoring Techniques for Better Software
php Courses
php Courses
May 19, 2023 · Backend Development

Eliminating Duplicate and Redundant Code in PHP: Refactoring Techniques

This article explains how to remove duplicate and redundant PHP code by applying refactoring principles such as the DRY rule, using functions and classes, adopting naming conventions, simplifying conditionals, and externalizing configuration, thereby improving readability, maintainability, and performance.

DRYPHPbackend development
0 likes · 7 min read
Eliminating Duplicate and Redundant Code in PHP: Refactoring Techniques
DevOps
DevOps
May 18, 2023 · Fundamentals

Understanding Technical Debt: Definitions, Types, Impacts, and Management Strategies

This article explains the concept of technical debt, its origins, various classifications, the economic analogy with financial debt, the risks of ignoring it, and practical approaches for identifying, prioritizing, and repaying it through regular refactoring and disciplined engineering practices.

DevOpsSoftware Engineeringproduct management
0 likes · 22 min read
Understanding Technical Debt: Definitions, Types, Impacts, and Management Strategies
ByteFE
ByteFE
May 17, 2023 · Backend Development

Domain‑Driven Design for Marketing: Abstracting Limits, Rules, Benefits, and Feedback with Node.js

This article explores how to break down the complex marketing domain into modular, atomic components—limits, rules, benefits, and feedback—using Node.js, demonstrates a flexible factory pattern for assembling activities, and provides practical advice for refactoring and product design in real‑world projects.

Domain-Driven Designnodejsrefactoring
0 likes · 24 min read
Domain‑Driven Design for Marketing: Abstracting Limits, Rules, Benefits, and Feedback with Node.js
Top Architect
Top Architect
May 15, 2023 · Fundamentals

Understanding the Chain of Responsibility Design Pattern with Java Examples

This article explains the Chain of Responsibility design pattern, its definition, typical use cases, drawbacks of a naïve implementation, and step‑by‑step refactoring using abstract handlers, a handler factory, and Java code samples to illustrate a clean, extensible solution.

Chain of ResponsibilityDesign PatternsJava
0 likes · 13 min read
Understanding the Chain of Responsibility Design Pattern with Java Examples
Tencent Cloud Developer
Tencent Cloud Developer
May 11, 2023 · Artificial Intelligence

Leveraging ChatGPT‑4 for Code Generation, Refactoring, and Testing in Software Development

The article demonstrates how ChatGPT‑4 outperforms its predecessor in logical reasoning and code generation, helping developers craft regexes, refactor Go functions, implement business logic, fix parsing bugs, and suggest clearer names, while rapidly producing unit tests and accelerating low‑risk development tasks without fully replacing engineers.

AI-assisted programmingChatGPT-4code generation
0 likes · 8 min read
Leveraging ChatGPT‑4 for Code Generation, Refactoring, and Testing in Software Development
JD Cloud Developers
JD Cloud Developers
Apr 25, 2023 · Fundamentals

How to Write High-Quality Code: From Learning to Refactoring

This article explores how developers can master coding skills by cultivating learning awareness, choosing good role models, applying knowledge in real projects, avoiding cognitive traps, and practicing systematic refactoring, all illustrated with practical examples and a RocketMQ case study.

LearningSoftware Engineeringprogramming principles
0 likes · 19 min read
How to Write High-Quality Code: From Learning to Refactoring
21CTO
21CTO
Apr 16, 2023 · Fundamentals

How to Write High‑Quality Code: From Learning to Refactoring

This article explores how developers can master code quality by adopting a learning mindset, studying exemplary code, applying core programming principles, analyzing real‑world examples such as RocketMQ file‑warming, and finally refactoring code to improve maintainability and performance.

LearningSoftware Engineeringcode quality
0 likes · 17 min read
How to Write High‑Quality Code: From Learning to Refactoring