Tagged articles

refactoring

426 articles · Page 4 of 5
Programmer DD
Programmer DD
Nov 29, 2020 · Frontend Development

Boost Your Productivity: 10 Must‑Know VS Code Tricks for Developers

This article compiles a curated list of practical VS Code techniques—from refactoring code and customizing view layouts to fast debugging, symbol navigation, terminal management, Git operations, and essential shortcuts—offering developers concrete ways to accelerate their workflow and write cleaner code.

ShortcutsVS Codedebugging
0 likes · 12 min read
Boost Your Productivity: 10 Must‑Know VS Code Tricks for Developers
macrozheng
macrozheng
Nov 27, 2020 · Fundamentals

How to Refactor Excessive if‑else Statements for Cleaner Code

Excessive if‑else statements can make code hard to maintain, but by distinguishing exception handling from state handling and applying techniques such as condition merging, early exits, removing temporary variables, and leveraging polymorphism, developers can refactor code to be clearer, shorter, and more robust.

Code MaintainabilityPolymorphismif-else
0 likes · 12 min read
How to Refactor Excessive if‑else Statements for Cleaner Code
21CTO
21CTO
Nov 26, 2020 · Fundamentals

Why Refactoring Matters: A Practical Guide to Cleaner Code

This article explains why refactoring is essential for maintaining legacy systems, defines refactoring as a controlled code‑restructuring technique that preserves observable behavior, and provides a step‑by‑step process—including when to start, when to stop, prerequisites, and practical tactics—to improve code quality and reduce technical debt.

Best PracticesSoftware Engineeringclean code
0 likes · 13 min read
Why Refactoring Matters: A Practical Guide to Cleaner Code
IT Architects Alliance
IT Architects Alliance
Oct 25, 2020 · R&D Management

From Senior Engineer to Software Architect: A Practical Roadmap

This article outlines a step‑by‑step career roadmap for developers who aspire to become software architects, covering role definitions, required technical and managerial skills, learning pathways such as OOP, design patterns and refactoring, and practical advice for continuous self‑improvement.

Design PatternsR&D managementcareer development
0 likes · 24 min read
From Senior Engineer to Software Architect: A Practical Roadmap
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Oct 13, 2020 · Fundamentals

Mastering Software Roles, Refactoring, and Quality: A 20‑Year Engineer’s Guide

This article explores how software engineers can improve their work by clearly defining roles, applying systematic refactoring strategies, and enforcing quality through team consensus, testing practices, and a strong engineering culture, drawing on over two decades of industry experience.

Software Engineeringcode qualitydeveloper culture
0 likes · 13 min read
Mastering Software Roles, Refactoring, and Quality: A 20‑Year Engineer’s Guide
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
Amap Tech
Amap Tech
Sep 11, 2020 · Backend Development

Refactoring Java Methods to Simulate Input/Output Parameters

The article explains how Java’s lack of true input‑output parameters can be worked around by refactoring the complex splitLineString method using techniques such as parameter objects, single‑element arrays, mutable tuples, custom holder classes, return objects, ThreadLocal variables, or instance fields, ultimately recommending a generic holder class as the most balanced solution.

InputOutputParametersJavaMethodExtraction
0 likes · 25 min read
Refactoring Java Methods to Simulate Input/Output Parameters
Taobao Frontend Technology
Taobao Frontend Technology
Sep 9, 2020 · Frontend Development

Boost Your Frontend Workflow: 10 Essential VS Code Tips & Tricks

Discover ten practical VS Code techniques—from fast refactoring and custom view layouts to debugging, symbol navigation, split editing, terminal renaming, Git shortcuts, search snapshots, and visual page building—that can dramatically improve your frontend development efficiency and productivity.

GitVS Codedebugging
0 likes · 8 min read
Boost Your Frontend Workflow: 10 Essential VS Code Tips & Tricks
Youzan Coder
Youzan Coder
Aug 7, 2020 · Mobile Development

Refactoring the Youzan Mobile Order Module: Architecture Improvements and Historical Code Transformation

The Youzan mobile order module was refactored by separating UI views, turning the monolithic fragment into a ViewModel‑driven architecture, introducing a dynamic router for flexible navigation, and modularizing card components with independent view models, resulting in lower coupling, easier extensions, and a clear gray‑release strategy.

ComponentizationMobile Developmentarchitecture
0 likes · 10 min read
Refactoring the Youzan Mobile Order Module: Architecture Improvements and Historical Code Transformation
FunTester
FunTester
Jul 23, 2020 · Fundamentals

Effective Work Practices for Test Development Engineers

The article presents practical tips for test developers, covering pseudocode, task breakdown, version control, refactoring, commenting, solution hunting, embracing change, handling inevitable bugs, and automating repetitive work to improve productivity and code quality.

automationrefactoringversion control
0 likes · 7 min read
Effective Work Practices for Test Development Engineers
QQ Music Frontend Team
QQ Music Frontend Team
Jul 20, 2020 · Fundamentals

Why Refactoring Matters: Principles, Timing, and Practical Techniques

Refactoring improves code understandability and reduces maintenance costs by reorganizing internal structure without changing behavior, and this guide explains its purpose, timing, principles, common code smells, measurement metrics, and practical techniques across data, statement, subroutine, class, and system levels.

Best Practicescode qualityrefactoring
0 likes · 20 min read
Why Refactoring Matters: Principles, Timing, and Practical Techniques
Java Backend Technology
Java Backend Technology
Jul 16, 2020 · Fundamentals

Boost Your Coding Speed: Hidden IntelliJ IDEA Shortcuts You Must Know

Discover a collection of powerful IntelliJ IDEA shortcuts—including navigation, history view, auto‑completion, variable extraction, renaming, and a serialVersionUID generator plugin—that streamline coding, reduce keystrokes, and boost productivity for developers working on Java projects.

Code navigationIDE shortcutsIntelliJ IDEA
0 likes · 5 min read
Boost Your Coding Speed: Hidden IntelliJ IDEA Shortcuts You Must Know
Continuous Delivery 2.0
Continuous Delivery 2.0
Jul 15, 2020 · Fundamentals

When Constructors Do Too Much Work: Symptoms, Risks, and Refactoring Techniques

The article explains why having constructors perform excessive work is a design flaw, describes how to spot this problem through code symptoms, discusses its impact on testability and maintainability, and provides concrete refactoring strategies such as dependency injection, factories, and builder patterns.

Dependency Injectioncode smellconstructor
0 likes · 13 min read
When Constructors Do Too Much Work: Symptoms, Risks, and Refactoring Techniques
DevOps
DevOps
Jun 23, 2020 · Fundamentals

Understanding Test‑Driven Development (TDD): Principles, Considerations, Practices, and Challenges

This article explains Test‑Driven Development (TDD) as an agile design methodology, outlines the mindset, requirement analysis, test‑first habits, refactoring and unit‑testing considerations, demonstrates the red‑green‑refactor workflow with examples, and discusses common difficulties and best‑practice tips.

TDDdevelopment practicesrefactoring
0 likes · 8 min read
Understanding Test‑Driven Development (TDD): Principles, Considerations, Practices, and Challenges
Sohu Tech Products
Sohu Tech Products
May 20, 2020 · Backend Development

Refactoring an IM System with Dynamic Proxy and RPC Architecture

This article explains how a Java‑based instant‑messaging system was restructured by replacing raw HTTP calls with API packages, introducing dynamic proxies for transparent RPC, and simplifying the code to resemble local method invocations while improving maintainability and scalability.

BackendIM SystemRPC
0 likes · 5 min read
Refactoring an IM System with Dynamic Proxy and RPC Architecture
Top Architect
Top Architect
May 20, 2020 · Fundamentals

Eliminating Overused if…else Statements: Refactoring Techniques and Design Patterns

This article examines why excessive if…else statements harm code readability and maintainability, and presents a range of refactoring approaches—including table‑driven mapping, chain‑of‑responsibility, annotation‑driven, event‑driven, state machines, Optional, Assert, and polymorphism—to replace or simplify them, while also addressing deep nesting and complex conditional expressions.

Design PatternsSoftware Engineeringcode quality
0 likes · 19 min read
Eliminating Overused if…else Statements: Refactoring Techniques and Design Patterns
Amap Tech
Amap Tech
May 14, 2020 · Backend Development

Java Code Simplification Techniques and Best Practices

The article compiles a comprehensive set of Java refactoring techniques—ranging from ternary operators, Optional handling, and Stream‑API transformations to Lombok annotations, generics, utility libraries, and design‑pattern applications—aimed at reducing boilerplate, improving readability, and eliminating dead code while preserving functionality and performance.

Code SimplificationJavaLombok
0 likes · 29 min read
Java Code Simplification Techniques and Best Practices
Architecture Digest
Architecture Digest
May 7, 2020 · Fundamentals

Eliminating Excessive if…else: Patterns and Refactoring Techniques

This article examines the problems caused by overusing if…else statements in code—such as poor readability, maintainability, and violation of design principles—and presents a collection of refactoring patterns, including table‑driven design, chain of responsibility, annotation‑driven, event‑driven, state machines, Optional, guard clauses, and polymorphism, with concrete Java examples.

Design PatternsSoftware Engineeringcode quality
0 likes · 19 min read
Eliminating Excessive if…else: Patterns and Refactoring Techniques
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 7, 2020 · Fundamentals

Understanding and Applying the Strategy Design Pattern in Java

This article explains the need for flexible sharing functionality, introduces the Strategy design pattern as a way to replace cumbersome if‑else statements, provides Java code examples for the pattern and its usage scenarios, and compares it with the State pattern to improve maintainability and extensibility.

design-patternrefactoringsoftware-architecture
0 likes · 9 min read
Understanding and Applying the Strategy Design Pattern in Java
Programmer DD
Programmer DD
May 5, 2020 · Fundamentals

Why Long Classes Break Your Code and How to Refactor Them with IDEA

This article explains why excessively long classes are hard to read and extend, outlines the problems caused by redundant code and multiple responsibilities, and provides step‑by‑step refactoring techniques using IntelliJ IDEA to extract methods, move members, and create new classes.

IDEAJavaSingle Responsibility Principle
0 likes · 8 min read
Why Long Classes Break Your Code and How to Refactor Them with IDEA
Java Backend Technology
Java Backend Technology
May 5, 2020 · Fundamentals

Why Your 900-Line Class Is a Nightmare and How to Refactor It

The article explains why excessively long classes are hard to read, extend, and maintain, outlines the problems caused by redundant code and multiple responsibilities, and provides step‑by‑step refactoring techniques using IntelliJ IDEA to extract methods, move members, and create new classes.

IDEOOPcode quality
0 likes · 8 min read
Why Your 900-Line Class Is a Nightmare and How to Refactor It
Top Architect
Top Architect
Apr 29, 2020 · Fundamentals

Eliminating Excessive if...else Statements: Problems, Solutions, and Refactoring Techniques

The article examines the drawbacks of overusing if...else constructs in software, explains why they harm readability and maintainability, and presents ten practical refactoring methods—including table‑driven, chain‑of‑responsibility, annotation‑driven, event‑driven, state machine, Optional, Assert, guard clauses, and method extraction—to simplify or replace complex conditional logic.

Design PatternsSoftware Engineeringcode quality
0 likes · 16 min read
Eliminating Excessive if...else Statements: Problems, Solutions, and Refactoring Techniques
21CTO
21CTO
Apr 17, 2020 · Fundamentals

10 Proven Techniques to Eliminate Excessive if…else in Your Code

This article explains why overusing if…else harms code readability and maintainability, outlines ten practical methods—including table‑driven, chain of responsibility, annotation‑driven, event‑driven, state machines, Optional, Assert, and polymorphism—to refactor or replace complex conditional logic, and provides Java code examples for each approach.

Design PatternsSoftware Engineeringcode quality
0 likes · 16 min read
10 Proven Techniques to Eliminate Excessive if…else in Your Code
dbaplus Community
dbaplus Community
Apr 16, 2020 · Fundamentals

Why Code Quality Fails Projects and 4 Proven Ways to Fix It

The article examines why many software projects deteriorate due to poor code quality, outlines four common pitfalls such as oversized components, low cohesion, tangled logic, and rampant if‑else statements, and presents concrete refactoring strategies—including inverted‑pyramid design, lib/framework separation, Template Method pattern, and rich enums—to dramatically improve maintainability and project success.

Design PatternsSoftware Engineeringcode quality
0 likes · 37 min read
Why Code Quality Fails Projects and 4 Proven Ways to Fix It
macrozheng
macrozheng
Apr 14, 2020 · Fundamentals

Why Code Quality Matters: 4 Common Pitfalls and Proven Solutions for Developers

This article examines why high‑quality, maintainable code is essential for software projects, outlines four recurring code‑quality problems—including oversized components, low cohesion, tangled logic, and excessive if‑else—and presents concrete refactoring patterns such as inverted‑pyramid design, proper lib/framework reuse, Template Method separation, and rich enum types, while also introducing a CODEX indexing technique for large codebases.

Best PracticesDesign Patternscode quality
0 likes · 38 min read
Why Code Quality Matters: 4 Common Pitfalls and Proven Solutions for Developers
Programmer DD
Programmer DD
Mar 31, 2020 · Backend Development

Why Your Java Classes Shouldn’t Exceed a Thousand Lines—and How to Refactor Them

Long, monolithic Java classes with hundreds of methods become unreadable, hard to extend, and prone to redundant code, so this guide explains the drawbacks of oversized classes and provides step‑by‑step refactoring techniques using IntelliJ IDEA to extract methods, move members, and create new classes.

IDEAJavaSingle Responsibility Principle
0 likes · 8 min read
Why Your Java Classes Shouldn’t Exceed a Thousand Lines—and How to Refactor Them
Top Architect
Top Architect
Mar 25, 2020 · Fundamentals

Architecture Corruption: Causes, Stages, and Mitigation Strategies

Long‑running software projects inevitably see their initially clean architectures degrade as codebases grow, teams expand, and build times increase, but by understanding the stages of architectural decay and applying practices such as modular isolation, incremental builds, tooling upgrades, and disciplined refactoring, teams can slow or reverse this corrosion.

Build Optimizationmodularizationrefactoring
0 likes · 23 min read
Architecture Corruption: Causes, Stages, and Mitigation Strategies
Top Architect
Top Architect
Feb 12, 2020 · Backend Development

Refactoring a 3000‑Line Legacy Data‑Center Management System to 15 Lines: Lessons and Best Practices

This article recounts how a developer transformed a massive three‑thousand‑line C# data‑center monitoring client into a concise fifteen‑line solution by applying reflection, generics, and systematic refactoring, while sharing practical advice on avoiding code generators, reinventing the wheel, and using unit tests to foster clean architecture.

C++code generationrefactoring
0 likes · 18 min read
Refactoring a 3000‑Line Legacy Data‑Center Management System to 15 Lines: Lessons and Best Practices
Architecture Digest
Architecture Digest
Feb 6, 2020 · Backend Development

Refactoring a 3000‑Line C# System to 15 Lines: Lessons and Practices

An experienced developer recounts how he transformed a cumbersome three‑tier C# data‑center management system from thousands of lines to a concise, maintainable codebase using reflection, generics, and thoughtful refactoring, while sharing practical advice on avoiding code generators, reducing duplication, and embracing unit testing.

C++Design Patternsbackend development
0 likes · 18 min read
Refactoring a 3000‑Line C# System to 15 Lines: Lessons and Practices
Alibaba Cloud Developer
Alibaba Cloud Developer
Jan 19, 2020 · Fundamentals

How to Identify, Break, and Prevent Technical Debt in Software Projects

The article explains what technical debt is, how it creates a vicious cycle that slows development, outlines common causes such as rushed releases and copy‑paste coding, and offers practical strategies—including measurement tools, incremental migration and full rewrites—to manage and avoid it.

Software Engineeringcode qualityproject management
0 likes · 9 min read
How to Identify, Break, and Prevent Technical Debt in Software Projects
21CTO
21CTO
Jan 3, 2020 · Fundamentals

12 Warning Signs That Your Software Design Is Growing Too Complex

The article lists twelve danger signals—ranging from shallow modules and information leaks to vague naming and unreadable code—that reveal hidden complexity in software design and help developers identify and refactor problematic patterns.

Anti-PatternsComplexitycode quality
0 likes · 6 min read
12 Warning Signs That Your Software Design Is Growing Too Complex
Alibaba Cloud Developer
Alibaba Cloud Developer
Oct 11, 2019 · Backend Development

Boost Java Code Quality: Essential Practices to Eliminate Bad Smells

This article compiles practical Java best‑practice tips—from using entrySet() for map iteration and Collection.isEmpty() for emptiness checks to pre‑sizing collections, avoiding magic numbers, employing try‑with‑resources, and cleaning unused code—helping developers write more efficient, readable, and bug‑free code.

Javacode qualityrefactoring
0 likes · 15 min read
Boost Java Code Quality: Essential Practices to Eliminate Bad Smells
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 30, 2019 · Fundamentals

How to Design Robust Service‑Oriented Architecture and Tame Legacy Code

This article explains the distinction between software design and architecture, outlines core principles for building service‑oriented systems, provides a step‑by‑step method for creating new services, and shares practical strategies for refactoring and migrating legacy code without creating future technical debt.

NBF frameworkdesign principleslegacy code
0 likes · 8 min read
How to Design Robust Service‑Oriented Architecture and Tame Legacy Code
Architect's Tech Stack
Architect's Tech Stack
Sep 26, 2019 · Fundamentals

Refactoring Principles, Code Smells, and Techniques for Improving Code Quality

This article explains why and how to refactor legacy code by defining refactoring principles, describing common code smells, and presenting concrete techniques such as extracting functions, moving fields, introducing explanatory variables, and reorganizing data and inheritance hierarchies to produce cleaner, more maintainable software.

Software Engineeringcode qualityrefactoring
0 likes · 23 min read
Refactoring Principles, Code Smells, and Techniques for Improving Code Quality
Java Captain
Java Captain
Sep 17, 2019 · Backend Development

Java Function Coding Guidelines: Primitive Types, Parameter Classes, and Refactoring Best Practices

This article presents a series of Java function coding guidelines—including using primitive types for parameters and return values, avoiding null arrays or lists, encapsulating many parameters into objects, replacing anonymous inner classes with functions, simplifying control flow, and employing temporary variables—to improve code readability, maintainability, and robustness.

Best PracticesCode ReadabilityJava
0 likes · 19 min read
Java Function Coding Guidelines: Primitive Types, Parameter Classes, and Refactoring Best Practices
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.

clean codecode smellsobject-oriented
0 likes · 27 min read
Master Code Refactoring: Principles, Smells, and Practical Techniques
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 11, 2019 · Fundamentals

What Makes Code Truly Good? Essential Principles and Practices

This article explores the essential characteristics of clean code, emphasizing high cohesion, low coupling, readability, proper naming, formatting, concise classes and functions, effective comments, error handling, and common code smells, while providing practical guidelines and examples for developers.

clean codecode qualityrefactoring
0 likes · 11 min read
What Makes Code Truly Good? Essential Principles and Practices
Programmer DD
Programmer DD
Sep 6, 2019 · Fundamentals

Boost Your Java Productivity: Top IntelliJ IDEA Shortcuts You Must Know

This guide compiles essential IntelliJ IDEA shortcuts—including automatic code generation, navigation, editing, debugging, and refactoring keys—organized by function, to help Java developers work faster, reduce mouse reliance, and streamline everyday coding tasks.

IDE shortcutsIntelliJJava development
0 likes · 14 min read
Boost Your Java Productivity: Top IntelliJ IDEA Shortcuts You Must Know
21CTO
21CTO
Aug 28, 2019 · Fundamentals

6 Proven Techniques to Write Clean, Maintainable Code

This article explains why clean code matters—reducing reading time, easing project continuation, speeding up new‑developer onboarding, and supporting consistent coding patterns—and provides six practical tips, from readable formatting to regular code reviews, to help developers produce cleaner, more maintainable software.

Code ReadabilityCoding Best PracticesProgramming Fundamentals
0 likes · 11 min read
6 Proven Techniques to Write Clean, Maintainable Code
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 Backend Technology
Java Backend Technology
Jul 17, 2019 · Backend Development

Why IntelliJ IDEA Beats Eclipse for Java Development: A Deep Dive

This article compares IntelliJ IDEA and Eclipse, highlighting IDEA’s superior context‑aware debugging, auto‑completion, and refactoring features, while acknowledging Eclipse’s strengths in other languages and as a plugin platform, to help Java developers choose the right IDE.

EclipseIntelliJ IDEAJava IDE
0 likes · 9 min read
Why IntelliJ IDEA Beats Eclipse for Java Development: A Deep Dive
Continuous Delivery 2.0
Continuous Delivery 2.0
Jul 11, 2019 · Fundamentals

Seven Practical Techniques for Writing Testable Code

Writing unit-testable code often requires refactoring, and by focusing on minimizing function size, dependencies, and complexity, developers can adopt seven practical techniques—including limiting function lines, single responsibility, dependency injection, avoiding complex parameters, using abstractions, extracting testable units, and handling private functions—to improve testability and team efficiency.

Best Practicesrefactoringsoftware design
0 likes · 6 min read
Seven Practical Techniques for Writing Testable Code
Java Captain
Java Captain
May 4, 2019 · Backend Development

Refactoring a Core Business System: Lessons Learned and Best Practices

The article recounts a 2014 experience of refactoring a critical business system after a serious bug, detailing how the team defined scope, designed dual‑flow verification with gray releases, managed expectations, and successfully delivered a maintainable backend solution.

BackendGray ReleaseSoftware Engineering
0 likes · 8 min read
Refactoring a Core Business System: Lessons Learned and Best Practices
NetEase Game Operations Platform
NetEase Game Operations Platform
Apr 27, 2019 · Frontend Development

Functional Programming in JavaScript: Refactoring User List Processing

This article demonstrates how to apply functional programming concepts in JavaScript by refactoring an example that reads user data from an API, filters active SREs, and formats output, illustrating the benefits of pure functions, higher‑order utilities like map, filter, reduce, and improved code readability and maintainability.

Pure Functionsfilterfunctional programming
0 likes · 22 min read
Functional Programming in JavaScript: Refactoring User List Processing
Programmer DD
Programmer DD
Apr 26, 2019 · Fundamentals

Why IntelliJ IDEA Beats Eclipse: 3 Powerful Features You’re Missing

The article compares IntelliJ IDEA and Eclipse for Java development, highlighting IDEA’s context‑aware debugging, smarter code completion, and advanced refactoring, while acknowledging Eclipse’s strengths such as plugin flexibility and lower resource usage, and concludes with guidance on choosing the right IDE.

EclipseIntelliJ IDEAJava IDE
0 likes · 9 min read
Why IntelliJ IDEA Beats Eclipse: 3 Powerful Features You’re Missing
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
21CTO
21CTO
Jan 21, 2019 · Fundamentals

How to Write Clean, Maintainable Code: Refactoring and Naming Best Practices

This guide explains why writing high‑quality code matters, outlines essential principles such as thoughtful design, using tools like SonarQube, proper class, method, variable, and constant naming, and demonstrates refactoring techniques with Java examples to produce more readable and robust software.

Best PracticesSoftware Engineeringcode quality
0 likes · 8 min read
How to Write Clean, Maintainable Code: Refactoring and Naming Best Practices
Zhuanzhuan Tech
Zhuanzhuan Tech
Jan 17, 2019 · Backend Development

Design and Refactoring of the Book Outbound Service with SN Allocation and Concurrency Management

The article describes the challenges of handling book outbound operations—matching SN codes, ensuring data consistency, and avoiding lock contention—and outlines a comprehensive refactor that separates business logic, standardizes APIs, adopts asynchronous processing, and leverages Redis sets to achieve high‑performance, reliable SN allocation.

BackendConcurrencyInventory
0 likes · 10 min read
Design and Refactoring of the Book Outbound Service with SN Allocation and Concurrency Management
Programmer DD
Programmer DD
Jan 3, 2019 · Backend Development

7 Proven Tips to Write Cleaner, More Efficient Java Code

This article presents seven practical techniques—including using IntelliJ IDEA, upgrading to JDK 8+, adopting Maven/Gradle, leveraging Lombok, writing unit tests, refactoring incrementally, and gathering regular customer feedback—to help developers produce shorter, clearer, and more maintainable Java code.

Coding TipsIntelliJ IDEAJava
0 likes · 7 min read
7 Proven Tips to Write Cleaner, More Efficient Java Code
Beike Product & Technology
Beike Product & Technology
Nov 30, 2018 · Mobile Development

Refactoring a 2000‑Line Android Detail Page to Under 200 Lines Using MVP and Modularization

This article describes how a large, tightly‑coupled Android detail page was refactored into a clean, modular MVP architecture that splits business logic into reusable Parts, reducing the file size from over 2000 lines to fewer than 200 while improving readability, maintainability, and rendering performance.

AndroidMVPMobile Development
0 likes · 18 min read
Refactoring a 2000‑Line Android Detail Page to Under 200 Lines Using MVP and Modularization
Architecture Digest
Architecture Digest
Aug 5, 2018 · Fundamentals

Why Programmers Refactor Code and How to Do It Effectively

The article examines why developers feel compelled to refactor messy code, illustrates common pitfalls such as mixing refactoring with new feature development, and proposes practical strategies—including separating refactoring from feature work, adopting small‑step incremental changes, and integrating test‑driven development—to manage refactoring projects successfully.

Software Engineeringcode qualitydevelopment process
0 likes · 6 min read
Why Programmers Refactor Code and How to Do It Effectively
Java Captain
Java Captain
Jul 22, 2018 · Fundamentals

Best Practices for Writing Clean and Maintainable Code

This article summarizes essential clean‑code practices—including commenting, naming, method design, exception handling, concurrency, unit testing, and overall code structure—to help engineers write elegant, readable, and maintainable software.

Code styleSoftware Engineeringclean code
0 likes · 10 min read
Best Practices for Writing Clean and Maintainable Code
dbaplus Community
dbaplus Community
Jul 18, 2018 · Backend Development

How We Refactored a 66k‑Line Home Page to Cut Feature Delivery from Days to Hours

The article recounts how a monolithic 66,000‑line home‑page system with high latency and tangled logic was re‑engineered through clear direction, module‑based design, and incremental changes, resulting in dramatically faster feature rollout, lower learning cost, and improved performance metrics.

backend engineeringmodular architecturerefactoring
0 likes · 10 min read
How We Refactored a 66k‑Line Home Page to Cut Feature Delivery from Days to Hours
Java Backend Technology
Java Backend Technology
Jul 12, 2018 · Fundamentals

How to Write Clean, Readable Code: Practical Tips from the Classics

This article distills essential clean‑code practices—covering comments, naming, method design, error handling, concurrency, unit testing, structure, and design—drawn from classic books and real‑world engineering experience to help developers produce elegant, maintainable software.

Best PracticesCode ReadabilitySoftware Engineering
0 likes · 13 min read
How to Write Clean, Readable Code: Practical Tips from the Classics
Architecture Digest
Architecture Digest
Jul 2, 2018 · Backend Development

Reflections on Software Service Architecture: From Three‑Tier to Microservices and High Concurrency

This article shares practical insights on evolving from traditional three‑tier architecture to microservice‑based designs, discusses fine‑grained versus coarse‑grained service partitioning, addresses high‑concurrency challenges, and proposes refactoring strategies for large‑scale backend systems.

High ConcurrencyThree-tierrefactoring
0 likes · 7 min read
Reflections on Software Service Architecture: From Three‑Tier to Microservices and High Concurrency
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
May 9, 2018 · Fundamentals

From Coder to Software Engineer: The Three Stages Every Programmer Must Master

The article reflects on a programmer’s personal journey, explains why coding sharpens logical thinking and creativity, outlines the three professional stages—Coder, Programmer, Software Engineer—and shares a concrete refactoring case that illustrates how focus and good design separate true engineers from mere code farmers.

Coding PracticesSoftware Engineeringcareer development
0 likes · 9 min read
From Coder to Software Engineer: The Three Stages Every Programmer Must Master
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 3, 2018 · Fundamentals

How to Cultivate Object‑Oriented Thinking and Architecture Skills as a Junior Developer

After years of coding without guidance, the author shares practical insights on developing object‑oriented design thinking, when to use interfaces, the limits of OOD, and how continuous refactoring and learning design patterns can gradually build a junior developer’s architectural competence.

Design PatternsObject-Oriented Designrefactoring
0 likes · 11 min read
How to Cultivate Object‑Oriented Thinking and Architecture Skills as a Junior Developer
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Feb 7, 2018 · Fundamentals

Mastering Refactoring: When and How to Move Methods, Fields, and Classes

This article explains core refactoring techniques—Move Method, Move Field, Extract Class, Inline Class, Hide Delegate, Remove Middle Man, Introduce Foreign Method, and Introduce Local Extension—showing when to apply each, how to identify candidates, and the benefits for cleaner, more maintainable object‑oriented code.

Object-Oriented Designextract classmove method
0 likes · 11 min read
Mastering Refactoring: When and How to Move Methods, Fields, and Classes
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Feb 7, 2018 · Fundamentals

Master Refactoring: When to Extract, Inline, and Replace Methods

This article explains key refactoring techniques—Extract Method, Inline Method, Inline Temp, Introduce Explaining Variable, Split Temporary Variable, Remove Assignments to Parameters, and Replace Method with Method Object—showing when to apply each, why they improve code clarity, and providing Java code examples for each transformation.

code qualityextract-methodinline method
0 likes · 13 min read
Master Refactoring: When to Extract, Inline, and Replace Methods
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.

clean codecode smellsobject-oriented
0 likes · 24 min read
How to Eliminate 22 Common Code Smells with Refactoring Techniques
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Feb 2, 2018 · Backend Development

From Coder to Web Architect: Essential Skills, Mindset, and Roadmap

This article outlines the philosophical questions, practical steps, and essential knowledge—ranging from object‑oriented fundamentals and design patterns to refactoring, DBA, and operations—that developers need to master in order to evolve into competent web architects.

Design PatternsObject-Oriented Programmingcareer development
0 likes · 19 min read
From Coder to Web Architect: Essential Skills, Mindset, and Roadmap
Architects' Tech Alliance
Architects' Tech Alliance
Jan 17, 2018 · Fundamentals

Five Practical Ways to Improve and Maintain Code Written by Others

The article outlines five actionable strategies—ensuring tests exist, communicating with the original author, eliminating warnings, refactoring, and making the code better than when found—to responsibly modify and enhance legacy code while minimizing risk and technical debt.

Code ReviewSoftware Engineeringcommunication
0 likes · 13 min read
Five Practical Ways to Improve and Maintain Code Written by Others
360 Quality & Efficiency
360 Quality & Efficiency
Jan 15, 2018 · Fundamentals

Code Health: Reducing Nesting and Complexity

Google’s Code Health team uses bathroom‑posted programming puzzles to illustrate how deep nesting harms readability, and demonstrates that applying guard clauses and refactoring into short, single‑purpose conditionals can separate error handling from core logic, making code easier to understand and maintain.

NestingSoftware Engineeringcode quality
0 likes · 3 min read
Code Health: Reducing Nesting and Complexity
Programmer DD
Programmer DD
Dec 28, 2017 · Backend Development

Master IntelliJ IDEA’s Extract Method & Interface Refactoring for Cleaner Java Code

This guide shows how to use IntelliJ IDEA’s Extract Method and Extract Interface features to refactor repetitive Java code, create reusable helper methods like forEachExceptFirst, generate annotated utilities, and cleanly separate contracts from implementations, improving readability and maintainability.

IntelliJ IDEAcode reuseextract-interface
0 likes · 8 min read
Master IntelliJ IDEA’s Extract Method & Interface Refactoring for Cleaner Java Code
Architecture Digest
Architecture Digest
Dec 13, 2017 · Mobile Development

Practical Code Refactoring Lessons from a Mobile Development Leader

The author, a mobile development team leader, shares a detailed account of a recent iOS codebase refactoring, describing the removal of unused libraries and code, architectural improvements, memory‑leak fixes, and best‑practice guidelines such as avoiding singletons, unnecessary layers, and over‑reliance on third‑party frameworks.

architecturecode cleanupiOS
0 likes · 11 min read
Practical Code Refactoring Lessons from a Mobile Development Leader
Baixing.com Technical Team
Baixing.com Technical Team
Dec 12, 2017 · Mobile Development

Why Composition Beats Inheritance in Android List Refactoring

This article explains how refactoring the Baixing Android app’s list feature from an inheritance-heavy design to a composition-based architecture improves modularity, reduces coupling, and eases future extensions by applying OOP principles such as dependency inversion and component interfaces.

Component ArchitectureComposition over InheritanceDesign Patterns
0 likes · 11 min read
Why Composition Beats Inheritance in Android List Refactoring
Architecture Digest
Architecture Digest
Jul 31, 2017 · Fundamentals

Applying the Observer Pattern to Refactor Order Completion Logic

The article explains how introducing the Observer pattern into an order‑completion module improves code readability, separates responsibilities, and enhances extensibility by turning post‑order actions into independent observers that react to a single subject’s state change.

JavaObserver Patternorder processing
0 likes · 4 min read
Applying the Observer Pattern to Refactor Order Completion Logic
Architecture Digest
Architecture Digest
Jul 26, 2017 · Fundamentals

11 Tips for Writing Clear and Readable Code

This article presents eleven practical tips for writing clear, readable code, covering short methods, single-purpose variables, descriptive naming, proximity of declarations, avoiding magic numbers, respecting language idioms, following conventions, steering clear of premature optimization, refactoring after testing, and using patterns wisely.

Code ReadabilitySoftware Engineeringclean code
0 likes · 9 min read
11 Tips for Writing Clear and Readable Code
21CTO
21CTO
Jul 8, 2017 · Fundamentals

What Does Writing 1 Million Lines of Code Really Feel Like?

A humorous yet insightful look at the myths of massive codebases, featuring developer anecdotes, realistic productivity calculations, and practical advice on prioritizing code quality, solid fundamentals, and modern tooling over sheer line count.

Best PracticesSoftware Engineeringcode quality
0 likes · 7 min read
What Does Writing 1 Million Lines of Code Really Feel Like?
21CTO
21CTO
Jun 25, 2017 · Fundamentals

Why Refactoring Matters: A Practical Guide to Cleaner Code

This article explains why refactoring is essential for maintaining legacy systems, defines refactoring, outlines when to start and stop, describes the step‑by‑step process, discusses code smells and techniques, and offers resources for mastering clean, maintainable software.

clean codecode qualityrefactoring
0 likes · 13 min read
Why Refactoring Matters: A Practical Guide to Cleaner Code
Architecture Digest
Architecture Digest
Jun 25, 2017 · Fundamentals

Why and How to Refactor Code: Principles, Process, and Best Practices

The article explains why refactoring is essential for maintaining and evolving legacy code, defines refactoring, outlines when to start and stop, lists prerequisites, describes a step‑by‑step process with testing and version control, and connects refactoring to design principles and large‑scale systems.

Software Engineeringclean codecode quality
0 likes · 13 min read
Why and How to Refactor Code: Principles, Process, and Best Practices
21CTO
21CTO
Jun 5, 2017 · Frontend Development

How Classic Writing Rules Can Sharpen Your JavaScript Code Style

This article adapts William Strunk Jr.'s timeless seven writing principles to JavaScript development, showing how functions that do one thing, minimal code, active voice, logical grouping, avoiding spaghetti, feature‑based file organization, and true‑value naming can produce cleaner, more maintainable front‑end code.

Best PracticesCode styleclean code
0 likes · 16 min read
How Classic Writing Rules Can Sharpen Your JavaScript Code Style
Hujiang Technology
Hujiang Technology
Jun 2, 2017 · Backend Development

Understanding the Origin, Evolution, and Practical Limits of Microservices in Application Architecture

The article examines why a large‑scale platform refactoring presents an opportunity to redesign services, traces the conceptual roots of microservices through influential software‑engineering masters and methodologies such as DDD and SOA, and argues that microservices are an evolutionary, not silver‑bullet, solution that must be applied with careful strategic and tactical analysis.

microservicesrefactoringsoftware architecture
0 likes · 16 min read
Understanding the Origin, Evolution, and Practical Limits of Microservices in Application Architecture
ITFLY8 Architecture Home
ITFLY8 Architecture Home
May 31, 2017 · R&D Management

12 Essential Rules for Successful Architecture Refactoring (Full Guide)

This comprehensive guide presents Uber engineering leader Raffi Krikorian's twelve practical rules for planning, executing, and managing architecture refactoring, covering purpose definition, incremental approaches, data handling, technical debt, team readiness, and non‑technical influences.

Software Engineeringarchitecturerefactoring
0 likes · 13 min read
12 Essential Rules for Successful Architecture Refactoring (Full Guide)
21CTO
21CTO
Apr 10, 2017 · Fundamentals

When Are Code Comments Truly Necessary? A Deep Dive into Clean Code Practices

This article examines the role of comments in source code, argues that well‑written, transparent code can often eliminate the need for comments, outlines four levels of code quality, provides concrete refactoring examples, and shares practical clean‑code guidelines such as avoiding magic numbers, reducing parameters, and using contract‑style preconditions.

Best PracticesSoftware Engineeringclean code
0 likes · 9 min read
When Are Code Comments Truly Necessary? A Deep Dive into Clean Code Practices
Architecture Digest
Architecture Digest
Mar 27, 2017 · Fundamentals

Why Software Architectures Decay and How to Mitigate It

The article explains how long‑running software projects inevitably suffer architectural decay due to growing codebases, slower builds, and team turnover, and presents practical strategies such as environment upgrades, staged and distributed builds, modular isolation, and platform‑plus‑app designs to keep systems sustainable.

Build Optimizationarchitectural decaymodularization
0 likes · 23 min read
Why Software Architectures Decay and How to Mitigate It
Architecture Digest
Architecture Digest
Feb 19, 2017 · Fundamentals

Why Software Architectures Decay Over Time and How to Mitigate It

This article examines why long‑running software projects experience architectural decay, the limitations of new frameworks, and presents practical solutions such as environment upgrades, phased and distributed builds, refactoring into isolated components, and adopting modular, loosely‑coupled platform‑plus‑application designs to sustain development productivity.

Build Optimizationarchitecturecontinuous integration
0 likes · 22 min read
Why Software Architectures Decay Over Time and How to Mitigate It
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jan 25, 2017 · Fundamentals

Why Software Architectures Decay Over Time and How to Combat It

The article examines why long‑running software projects inevitably suffer architectural decay, explains how growth in code, team size, and build complexity erodes productivity, and presents practical strategies—including environment upgrades, phased and distributed builds, component isolation, and adopting new technologies—to slow or reverse the decay.

Build Optimizationproject scalingrefactoring
0 likes · 23 min read
Why Software Architectures Decay Over Time and How to Combat It
Meituan Technology Team
Meituan Technology Team
Jan 19, 2017 · Fundamentals

Clean Code Practices for Object‑Oriented Development

Clean code for object‑oriented development means writing readable, self‑describing, maintainable software by applying principles such as single responsibility, clear naming, small methods, composition over inheritance, regular code reviews, refactoring, static analysis, and learning from open‑source, ensuring simplicity and collaborative excellence.

Code ReviewDesign PatternsJava
0 likes · 20 min read
Clean Code Practices for Object‑Oriented Development
360 Quality & Efficiency
360 Quality & Efficiency
Sep 20, 2016 · Fundamentals

Should You Add Comments to Your Code? – Insights from Refactoring

This discussion post examines whether code should be commented, citing the book *Refactoring* and emphasizing that needing comments often signals the need for refactoring, while good variable names can serve as implicit documentation, and stresses the importance of clear interface comments.

Best PracticesSoftware Engineeringcode comments
0 likes · 2 min read
Should You Add Comments to Your Code? – Insights from Refactoring
Architecture Digest
Architecture Digest
Sep 2, 2016 · Fundamentals

Programming Philosophy: Writing Elegant, Modular, Readable, and Robust Code

The article presents a comprehensive programming philosophy that emphasizes repeatedly refining code, writing elegant, modular, readable, and simple programs, handling errors and null pointers robustly, and avoiding over‑engineering, offering practical guidelines applicable to any software development language.

Null SafetySoftware Engineeringerror handling
0 likes · 41 min read
Programming Philosophy: Writing Elegant, Modular, Readable, and Robust Code
Qunar Tech Salon
Qunar Tech Salon
Aug 11, 2016 · Mobile Development

Refactoring Qunar's Hotel Page with React Native: Challenges, Solutions, and Lessons Learned

This article recounts the Qunar hotel team's experience refactoring a hotel page using React Native, detailing the initial native‑mindset pitfalls, robustness and animation issues, and how adopting a more React‑centric architecture with Redux, connect, and native animation APIs dramatically improved performance, maintainability, and developer experience.

Mobile DevelopmentPerformanceReact Native
0 likes · 18 min read
Refactoring Qunar's Hotel Page with React Native: Challenges, Solutions, and Lessons Learned
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jul 13, 2016 · Frontend Development

Master Mobile Front-End Refactoring: Essential CSS Techniques & Tips

This tutorial series revisits mobile front‑end refactoring, summarizing key techniques such as viewport configuration, CSS3 selectors, pseudo‑elements, responsive units (%, rem, vw, vh), Flexbox layouts, retina‑aware 1px borders, fixed positioning challenges, image placeholder strategies, centering methods, equal‑width distribution, and essential CSS3 animations.

mobilerefactoringresponsive-design
0 likes · 9 min read
Master Mobile Front-End Refactoring: Essential CSS Techniques & Tips
21CTO
21CTO
Jun 11, 2016 · Fundamentals

Why Technical Debt Accumulates and How to Tackle It Effectively

The article shares a veteran IT professional’s insights on how technical debt forms, the risks it brings, various repayment strategies, and practical ways to prevent debt crises, emphasizing continuous management and disciplined engineering practices.

Software Engineeringrefactoringrisk management
0 likes · 12 min read
Why Technical Debt Accumulates and How to Tackle It Effectively
Architecture Digest
Architecture Digest
Jun 6, 2016 · Backend Development

Refactoring a 3000‑Line C# Factory Class into a Concise 15‑Line Implementation

The article recounts how the author transformed a massive, repetitive three‑tier factory class in a C# data‑center management system into a clean, reflection‑based solution of just a few lines, while sharing practical refactoring lessons, pitfalls of code generators, and advice on unit‑testing and architecture design.

C++code generationrefactoring
0 likes · 17 min read
Refactoring a 3000‑Line C# Factory Class into a Concise 15‑Line Implementation
DevOps
DevOps
May 30, 2016 · Fundamentals

Essential Skills Every Programmer Should Master

The article outlines eight crucial abilities for developers—including computational thinking, problem‑location, effective searching, IDE mastery, refactoring, unit testing, version‑control proficiency, and automated build—to bridge the gap between complex human requirements and the computer's simple instruction set.

IDEprogrammingrefactoring
0 likes · 7 min read
Essential Skills Every Programmer Should Master
Qunar Tech Salon
Qunar Tech Salon
May 25, 2016 · R&D Management

Effective Communication Strategies for Architecture Refactoring Projects

The article explains how to successfully launch and drive large‑scale architecture refactoring by translating technical jargon into plain language, using data‑driven arguments, empathizing with stakeholders, and employing structured escalation and win‑win negotiation tactics to align cross‑functional teams.

R&D managementSoftware Engineeringarchitecture
0 likes · 9 min read
Effective Communication Strategies for Architecture Refactoring Projects