Tagged articles
24 articles
Page 1 of 1
php Courses
php Courses
Dec 23, 2025 · Backend Development

How to Detect and Fix Common PHP Code Smells for Cleaner, More Maintainable Code

This article explains the concept of code smells in PHP, identifies several frequent issues such as long methods, large classes, duplicate code, excessive comments, complex conditionals, and infinite loops, and provides concrete refactoring examples and best‑practice solutions to improve readability, maintainability, and quality.

Software Engineeringcode smellsrefactoring
0 likes · 8 min read
How to Detect and Fix Common PHP Code Smells for Cleaner, More Maintainable Code
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.

Software Engineeringbest practicescode quality
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.

BackendPHPSoftware Engineering
0 likes · 8 min read
Common PHP Code Smells and Refactoring Solutions
Java Architect Essentials
Java Architect Essentials
Nov 5, 2023 · Fundamentals

19 Real‑World Bad Code Snippets Every Developer Should Avoid

This article curates 19 genuinely terrible code fragments collected from various developers, illustrating common pitfalls such as magic numbers, poorly named variables, misuse of booleans, and overly complex switch statements, and encourages readers to reflect on and learn from these mistakes.

JavaSoftware Engineeringbad code
0 likes · 8 min read
19 Real‑World Bad Code Snippets Every Developer Should Avoid
ITPUB
ITPUB
Nov 3, 2023 · Backend Development

Cutting 80% of Legacy Query Code: Refactoring Lessons for Faster, Safer Backend Services

After inheriting a decade‑old query optimizer with massive code duplication and performance issues, our team reduced the codebase by 80%, improved stability, cut startup time from 18 minutes to seconds, and enabled cloud deployment, sharing the code smells we encountered, their motivations, and concrete fixes.

Backend DevelopmentCCode Refactoring
0 likes · 12 min read
Cutting 80% of Legacy Query Code: Refactoring Lessons for Faster, Safer Backend Services
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 RefactoringPerformance Optimization
0 likes · 10 min read
Refactoring a Decade‑Old Query Understanding Module: Identifying Code Smells, Motivations, and Remedies
ITPUB
ITPUB
Oct 12, 2023 · Backend Development

How Refactoring a Decade‑Old Query Engine Cut Code by 80% and Boosted Performance

After taking over a 10‑year‑old query‑understanding module, the team reduced its codebase by 80%, dramatically improved iteration speed, stability, observability, and memory usage, and enabled deployment on both self‑built cloud and on‑premise data centers by systematically eliminating classic code smells.

Backend DevelopmentCode RefactoringSoftware Engineering
0 likes · 13 min read
How Refactoring a Decade‑Old Query Engine Cut Code by 80% and Boosted Performance
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.

Code Refactoringcode smells
0 likes · 12 min read
Refactoring a Decade‑Old Search Query Module: Identifying and Fixing Code Smells
phodal
phodal
Jun 13, 2022 · Industry Insights

How to Govern Enterprise Architecture: Patterns, Standards, and Rules with ArchGuard

This article explores a practical approach to enterprise architecture governance by defining patterns, documenting standards, formalizing rules, and using tools like ArchGuard to detect code and architectural smells, visualize issues, and evolve compliance through measurable metrics.

architecture governancecode smellslinting
0 likes · 7 min read
How to Govern Enterprise Architecture: Patterns, Standards, and Rules with ArchGuard
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.

Abstract Base ClassDesign PatternsPython
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.

clean codecode smellsrefactoring
0 likes · 17 min read
25 Common Code Smells and Their Refactoring Solutions
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 16, 2021 · Fundamentals

Why Refactoring Matters: Practical Tips and Code Smell Solutions

This article, based on the author’s experience and Martin Fowler’s book, explains what refactoring is, why it’s essential, how to spot code smells, and provides concrete principles and JavaScript examples to improve code design, readability, and maintainability without focusing on performance.

JavaScriptbest practicescode smells
0 likes · 27 min read
Why Refactoring Matters: Practical Tips and Code Smell 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
Liangxu Linux
Liangxu Linux
Feb 19, 2021 · Fundamentals

Mastering Code Smells: Identify and Refactor Common Bad Practices

This guide explains the most frequent code smells—Long Method, Large Class, Duplicated Code, Long Parameter List, Shotgun Surgery, Speculative Generality, and excessive comments—detailing why they harm readability and maintainability, and provides concrete refactoring techniques with Java examples to produce cleaner, more modular software.

JavaSOLIDbest practices
0 likes · 14 min read
Mastering Code Smells: Identify and Refactor Common Bad Practices
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.

Object-Orientedbest practicesclean code
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.

Object-Orientedclean codecode smells
0 likes · 23 min read
Refactoring Principles, Code Smells, and Refactoring Techniques
Java Backend Technology
Java Backend Technology
Sep 14, 2019 · Fundamentals

Master Code Refactoring: Principles, Smells, and Practical Techniques

This article explains what refactoring is, why and when to apply it, lists common code smells with concrete examples, and provides step‑by‑step techniques for reorganizing functions, moving responsibilities, restructuring data, simplifying conditionals, and improving overall software design.

Object-Orientedclean codecode smells
0 likes · 27 min read
Master Code Refactoring: Principles, Smells, and Practical Techniques
Java Backend Technology
Java Backend Technology
Mar 10, 2019 · Fundamentals

Mastering Code Refactoring: Principles, Smells, and Practical Techniques

Refactoring transforms messy code into clean, maintainable structures without altering observable behavior, covering principles, common code smells, and step‑by‑step techniques such as extracting functions, moving methods, simplifying conditionals, and reorganizing data, empowering developers to improve design, reduce bugs, and accelerate development.

best practicesclean codecode smells
0 likes · 26 min read
Mastering Code Refactoring: Principles, Smells, and Practical Techniques
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Feb 5, 2018 · Fundamentals

How to Eliminate 22 Common Code Smells with Refactoring Techniques

This article enumerates twenty‑two typical code smells—from duplicated code and long methods to speculative generality—and provides concrete refactoring tactics such as Extract Method, Pull Up Method, Introduce Parameter Object, and Move Method to improve design, readability, and maintainability of object‑oriented software.

Object-Orientedclean codecode smells
0 likes · 24 min read
How to Eliminate 22 Common Code Smells with Refactoring Techniques