Tag

code smells

0 views collected around this technical thread.

Continuous Delivery 2.0
Continuous Delivery 2.0
May 7, 2025 · Fundamentals

Understanding Code Smells: Module, Function, and Implementation Level Issues

This article explains how Tencent evaluates code quality at module, function, and implementation levels, describing common code smells such as low cohesion, God classes, developer congestion, God functions, DRY violations, nested complexity, and Bumpy Road, and emphasizes the importance of identifying and fixing these issues to improve maintainability and team efficiency.

Best Practicescode qualitycode smells
0 likes · 5 min read
Understanding Code Smells: Module, Function, and Implementation Level Issues
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.

PHPbackendcode smells
0 likes · 8 min read
Common PHP Code Smells and Refactoring Solutions
FunTester
FunTester
Oct 16, 2023 · Backend Development

Refactoring a Decade‑Old Query Understanding Module: Identifying Code Smells, Motivations, and Remedies

The article details a three‑month refactor of a ten‑year‑old query‑understanding backend, describing the code smells encountered—duplicate code, long functions, bloated classes, oversized parameter lists, confusing temporaries, ignored warnings, and magic numbers—along with their motivations, preventive measures, and the performance improvements achieved after cleanup.

backend developmentcode refactoringcode smells
0 likes · 10 min read
Refactoring a Decade‑Old Query Understanding Module: Identifying Code Smells, Motivations, and Remedies
Tencent Cloud Developer
Tencent Cloud Developer
Oct 9, 2023 · Backend Development

Refactoring a Decade‑Old Search Query Module: Identifying and Fixing Code Smells

The team inherited a ten‑year‑old search query module riddled with duplicate code, massive functions, bloated classes, and other smells, and by extracting utilities, splitting functions, separating responsibilities, tightening interfaces, parallelizing tokenization, and enforcing strict compiler warnings, they cut code size by 80%, reduced startup time, memory use, and latency by 26%, and dramatically improved stability and observability.

backend developmentcode refactoringcode smells
0 likes · 12 min read
Refactoring a Decade‑Old Search Query Module: Identifying and Fixing Code Smells
JD Retail Technology
JD Retail Technology
Aug 17, 2023 · Backend Development

Refactoring a Settlement Calculation Method: Identifying Code Smells and Applying Improvements

This article examines a Java settlement calculation method, identifies duplicated code and divergent change code smells, and demonstrates a refactoring using maps and enum‑based calculators to improve readability, maintainability, and adhere to object‑oriented principles.

Javabackend developmentcode smells
0 likes · 9 min read
Refactoring a Settlement Calculation Method: Identifying Code Smells and Applying Improvements
Python Programming Learning Circle
Python Programming Learning Circle
Mar 11, 2022 · Fundamentals

Refactoring a Python Employee Management System to Eliminate Code Smells

This article explains common Python code smells in an employee‑management example, demonstrates why practices such as using raw strings for roles, duplicated search methods, excessive isinstance checks, and vague boolean flags are problematic, and provides a step‑by‑step refactor using Enums, abstract base classes, list comprehensions, custom exceptions, and clearer method separation.

EnumPythonabstract base class
0 likes · 14 min read
Refactoring a Python Employee Management System to Eliminate Code Smells
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 29, 2021 · Fundamentals

25 Common Code Smells and Their Refactoring Solutions

This article lists 25 typical code smells—such as duplicated code, long methods, large classes, and magic numbers—explains why they hinder readability and maintainability, and provides concrete refactoring solutions with Java examples to improve code quality and design.

Javaclean codecode smells
0 likes · 17 min read
25 Common Code Smells and Their Refactoring Solutions
Architect's Tech Stack
Architect's Tech Stack
Apr 11, 2021 · Fundamentals

Refactoring Principles, Code Smells, and Practical Techniques for Improving Software Design

This article explains the concept of refactoring, why and when to refactor, enumerates common code smells, and presents concrete techniques such as extracting functions, moving methods or fields, and reorganizing class hierarchies to produce cleaner, more maintainable object‑oriented code.

clean codecode smellsobject-oriented programming
0 likes · 24 min read
Refactoring Principles, Code Smells, and Practical Techniques for Improving Software Design
macrozheng
macrozheng
Dec 30, 2020 · Fundamentals

How to Spot and Eliminate Common Code Smells for Cleaner, More Maintainable Code

This article explores typical code smells such as long methods, God classes, duplicated code, long parameter lists, shotgun surgery, speculative generality, and excessive comments, explaining why they hinder readability and maintainability, and provides practical refactoring techniques and examples to write cleaner, more understandable code.

clean codecode qualitycode smells
0 likes · 13 min read
How to Spot and Eliminate Common Code Smells for Cleaner, More Maintainable Code
Architect's Tech Stack
Architect's Tech Stack
Dec 21, 2020 · Fundamentals

Refactoring Principles, Code Smells, and Refactoring Techniques

This article explains the concept of refactoring, its motivations and timing, enumerates common code smells, and provides detailed refactoring techniques—including extracting methods, moving functions, encapsulating data, simplifying conditionals, and handling inheritance—to improve software design and maintainability.

Best Practicesclean codecode smells
0 likes · 21 min read
Refactoring Principles, Code Smells, and Refactoring Techniques
Architecture Digest
Architecture Digest
Sep 25, 2020 · Fundamentals

Refactoring Principles, Code Smells, and Refactoring Techniques

This article explains refactoring as a disciplined way to improve software structure without altering behavior, outlines common code smells, and presents a comprehensive set of refactoring techniques—including extracting functions, moving features, simplifying conditionals, and reorganizing data—illustrated with Java code examples.

clean codecode smellsobject-oriented
0 likes · 23 min read
Refactoring Principles, Code Smells, and Refactoring Techniques
Architect's Tech Stack
Architect's Tech Stack
Aug 11, 2019 · Fundamentals

Refactoring Principles and Code Smells: A Comprehensive Guide

This article presents a thorough overview of refactoring principles, common code smells, and practical techniques for improving software structure, including extracting functions, moving methods, simplifying conditionals, and reorganizing data, aimed at helping developers write cleaner, more maintainable code.

clean codecode smellsrefactoring
0 likes · 22 min read
Refactoring Principles and Code Smells: A Comprehensive Guide
Java Captain
Java Captain
Feb 18, 2019 · Fundamentals

How to Refactor Badly Written Code: Principles, Code Smells, and Refactoring Techniques

This article explains the purpose and principles of refactoring, enumerates common code smells, and provides concrete refactoring techniques—including extracting functions, inlining, moving features, reorganizing data, simplifying conditionals and calls—illustrated with Java code examples.

Javaclean codecode smells
0 likes · 22 min read
How to Refactor Badly Written Code: Principles, Code Smells, and Refactoring Techniques