Tagged articles
code smells
25 articles · Page 1 of 1
The article explains how AI‑generated code often arrives as tangled, untested code, and shows how to apply classic refactoring principles—technical debt awareness, the Rule of Three, and a three‑step checklist—through the Goal Workflow /refactor and /smell skills, turning Fowler's book into an executable AI agent that diagnoses and cleans code automatically.
AI agentsautomationcode smells
0 likes · 18 min read

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.
code smellsrefactoringsoftware engineering
0 likes · 8 min read

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

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.
BackendPHPcode smells
0 likes · 8 min read

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.
Javabad codecode smells
0 likes · 8 min read


ITPUBNov 3, 2023 · Backend Development
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.
C++backend developmentcode refactoring
0 likes · 12 min read

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


ITPUBOct 12, 2023 · Backend Development
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 refactoringcode smells
0 likes · 13 min read

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

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.
Design PrinciplesJavacode smells
0 likes · 9 min read

This article explains why refactoring is essential, identifies common code smells, introduces SOLID principles and design patterns, and provides practical refactoring techniques and testing strategies to improve code quality, maintainability, and scalability in software projects.
SOLIDcode smellsrefactoring
0 likes · 33 min read


phodalJun 13, 2022 · Industry Insights
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

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 ClassEnumPython
0 likes · 14 min read

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

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.
Best PracticesJavaScriptcode smells
0 likes · 27 min read

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

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.
Best PracticesClean CodeJava
0 likes · 14 min read

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

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

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

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.
Clean Codecode smellsobject-oriented
0 likes · 27 min read

An eye‑opening roundup of seven notoriously awful Java snippets—from misused StringBuffer and endless nested loops to convoluted Stream pipelines and absurd exception definitions—showcasing why such code is a nightmare, how it hampers readability, and what refactoring strategies can rescue it.
JavaStream APIbad practices
0 likes · 15 min read

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

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.
Clean Codecode smellsrefactoring
0 likes · 22 min read

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.
Clean Codecode smellsobject-oriented
0 likes · 24 min read
