Tag

code refactoring

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
May 23, 2025 · Backend Development

Deprecated PHP Functions in PHP 8 and Their Modern Replacements

This article lists the PHP functions that have been deprecated or removed in PHP 8, explains the security and performance risks of continuing to use them, and provides modern alternatives such as closures, foreach loops, PDO/MySQLi, preg_* functions, and OpenSSL.

MigrationPHPPHP8
0 likes · 7 min read
Deprecated PHP Functions in PHP 8 and Their Modern Replacements
macrozheng
macrozheng
May 20, 2025 · Backend Development

Why Java Records Beat Lombok @Data and How to Simplify Your Code

This article examines the drawbacks of Lombok, demonstrates how replacing Lombok annotations with Java Records and MapStruct improves readability, type safety, and debugging, and shows the concrete benefits of reducing boilerplate and achieving compile‑time safety in Java backend projects.

Backend DevelopmentJavaJava Records
0 likes · 6 min read
Why Java Records Beat Lombok @Data and How to Simplify Your Code
php中文网 Courses
php中文网 Courses
May 12, 2025 · Backend Development

Using Pattern Matching in PHP to Write Cleaner and More Maintainable Code

This article explains what pattern matching is, demonstrates how to implement it in PHP using switch statements, the new match expression, array and object destructuring, and provides advanced techniques, practical examples, advantages, and best practices for writing more declarative and maintainable backend code.

Backend DevelopmentMatch ExpressionPHP
0 likes · 8 min read
Using Pattern Matching in PHP to Write Cleaner and More Maintainable Code
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2025 · Fundamentals

Why and How to Avoid Writing For Loops in Python

The article explains why you should challenge yourself to avoid explicit for loops in Python and demonstrates how to replace them with list comprehensions, generator expressions, map/reduce, and itertools, resulting in shorter, more readable, and better‑structured code.

Functional ProgrammingGeneratorPython
0 likes · 7 min read
Why and How to Avoid Writing For Loops in Python
DevOps
DevOps
Apr 6, 2025 · Artificial Intelligence

Leveraging AI and the ReAct Framework for Efficient Code Refactoring

This article explores the challenges of using AI tools like Cursor for large‑scale code refactoring, analyzes why simple prompts fail in complex projects, and presents a systematic approach using the ReAct framework and carefully designed prompts to achieve more accurate, maintainable, and efficient refactoring outcomes.

AIReactcode refactoring
0 likes · 12 min read
Leveraging AI and the ReAct Framework for Efficient Code Refactoring
Python Programming Learning Circle
Python Programming Learning Circle
Mar 11, 2025 · Fundamentals

Resolving Circular Imports in Python by Refactoring Import Statements

This article explains the problem of circular imports in Python, demonstrates the resulting ImportError with example modules, and shows how to resolve it by changing import statements to module-level imports, allowing the code to run correctly and print 'Hello, world!'.

@Importcircular-importcode refactoring
0 likes · 5 min read
Resolving Circular Imports in Python by Refactoring Import Statements
Didi Tech
Didi Tech
Feb 20, 2025 · Frontend Development

Technical Debt Governance in the International Delivery Rider H5 Project (DH5)

The DH5 project tackled mounting technical debt by splitting a monolithic front‑end into three independent modules, systematically removing unused code, consolidating public methods, and enhancing debugging tools, which together reduced system complexity, improved maintainability and collaboration, and demonstrated a repeatable governance framework for future development cycles.

Debugging toolsProject Governancecode refactoring
0 likes · 11 min read
Technical Debt Governance in the International Delivery Rider H5 Project (DH5)
Code Mala Tang
Code Mala Tang
Jan 16, 2025 · Fundamentals

How I Boosted My Python Script Speed by 300%: 10 Proven Optimization Tricks

This article walks through ten practical techniques—including profiling with cProfile, using built‑in functions, list comprehensions, avoiding globals, leveraging NumPy, generators, multiprocessing, caching, selective imports, and upgrading Python—to dramatically accelerate Python scripts handling large data sets.

NumPyPythoncode refactoring
0 likes · 8 min read
How I Boosted My Python Script Speed by 300%: 10 Proven Optimization Tricks
php中文网 Courses
php中文网 Courses
Nov 20, 2024 · Backend Development

Handling PHP Version Compatibility: Common Issues and Effective Solutions

This article examines common PHP version compatibility challenges—including deprecated functions, changed defaults, framework incompatibilities, syntax alterations, and stricter error reporting—and provides a step‑by‑step guide with auditing, refactoring, framework updates, testing, environment setup, and tools to ensure smooth upgrades such as from PHP 7 to PHP 8.

Backend DevelopmentMigrationPHP
0 likes · 9 min read
Handling PHP Version Compatibility: Common Issues and Effective Solutions
Selected Java Interview Questions
Selected Java Interview Questions
Nov 12, 2024 · Backend Development

Refactoring a Multi‑Tenant Backend Service Using DDD and Factory Pattern

This article presents a case study of optimizing a multi‑tenant Java Spring MVC backend by applying domain‑driven design principles, the dependency inversion principle, and a factory pattern to decouple tenant‑specific logic, reduce service size, and improve maintainability and testability.

Backend DevelopmentDDDFactory Pattern
0 likes · 5 min read
Refactoring a Multi‑Tenant Backend Service Using DDD and Factory Pattern
Java Tech Enthusiast
Java Tech Enthusiast
Sep 28, 2024 · Backend Development

Avoiding Low Cohesion Bugs by Centralizing Repayment Logic in Java

The article explains how adding a new reducePrincipal field to the RepayPlan class caused existing interfaces to miscalculate remaining principal, and demonstrates fixing the low‑cohesion bug by centralizing the updated calculation in a RepaymentCalculator utility so future changes occur in one place.

Javabackendcode refactoring
0 likes · 4 min read
Avoiding Low Cohesion Bugs by Centralizing Repayment Logic in Java
JD Tech Talk
JD Tech Talk
Sep 6, 2024 · Fundamentals

Overview of Software Complexity and Strategies for Reducing Business System Complexity

The article explains the concept and measurement of software complexity, its impact on development cost and stability, common causes in business systems, and presents a set of architectural, coding, and configuration practices—including domain splitting, layered design, clear commenting, and configurable rules—to effectively reduce and manage complexity.

ConfigurationDomain-Driven Designbest practices
0 likes · 12 min read
Overview of Software Complexity and Strategies for Reducing Business System Complexity
JD Tech
JD Tech
Sep 5, 2024 · Fundamentals

Overview of System Complexity and Strategies for Reducing Business Complexity

The article explains what software complexity is, classifies its types, describes the negative impacts of high business complexity, identifies common causes, and presents practical methods such as domain decomposition, layered architecture, structured decomposition, annotation, configurability, and coding standards to effectively reduce complexity.

Configurationcode refactoringcomplexity
0 likes · 13 min read
Overview of System Complexity and Strategies for Reducing Business Complexity
Java Tech Enthusiast
Java Tech Enthusiast
Aug 3, 2024 · Fundamentals

Using Java 8 Functional Interfaces to Replace if...else Statements

Java 8’s functional interfaces, such as Supplier, Consumer, Runnable, and Function, let developers replace verbose if‑else chains with concise lambda‑based constructs, improving readability by encapsulating conditional logic in custom @FunctionalInterface definitions that handle true/false branches, exceptions, and optional values.

Exception HandlingFunctional InterfaceJava
0 likes · 5 min read
Using Java 8 Functional Interfaces to Replace if...else Statements
Continuous Delivery 2.0
Continuous Delivery 2.0
Jul 4, 2024 · Databases

Designing Bugzilla for Multi‑Database Support: A Case Study

The article recounts how the Bugzilla project, originally tied to a single proprietary database (OldDB), was refactored to support multiple databases—including NewDB—through a comprehensive redesign that involved breaking the work into smaller, well‑tested tasks, improving maintainability and expanding support to four database systems.

BugzillaMulti-Database Supportcode refactoring
0 likes · 6 min read
Designing Bugzilla for Multi‑Database Support: A Case Study
DeWu Technology
DeWu Technology
Jun 5, 2024 · Mobile Development

iOS Bundle Size Optimization: Mach‑O Analysis and CocoaPods Integration

The article demonstrates how detailed Mach‑O and LinkMap analysis combined with custom CocoaPods hooks, Swift‑syntax refactoring, and indexed symbol mapping can systematically shrink an iOS app’s bundle—from 289.3 MB to 259.3 MB—while cutting CI build time and simplifying debugging.

CocoaPodsMach-Obundle optimization
0 likes · 19 min read
iOS Bundle Size Optimization: Mach‑O Analysis and CocoaPods Integration
JD Retail Technology
JD Retail Technology
Jun 3, 2024 · Frontend Development

Integrating Two Large Frontend Applications: Architecture, Deployment, and Code Refactoring

This article describes how two large front‑end platforms were systematically merged—covering background analysis, deployment optimization, repository consolidation, application‑type detection, routing, environment variables, request encapsulation, permission handling, and the resulting improvements in development efficiency and user experience.

DeploymentVueapplication integration
0 likes · 12 min read
Integrating Two Large Frontend Applications: Architecture, Deployment, and Code Refactoring
ByteDance Data Platform
ByteDance Data Platform
May 8, 2024 · Backend Development

How DataTester’s Architecture Upgrade Uses DDD to Tame Code Complexity

DataTester’s A/B testing platform underwent a comprehensive architectural overhaul, applying domain‑driven design, modular refactoring, automated validation, and dependency inversion to reduce change amplification, cognitive load, and unknown unknowns, ultimately improving code readability, maintainability, scalability, and development efficiency across its lifecycle.

A/B testingBackend DevelopmentDDD
0 likes · 29 min read
How DataTester’s Architecture Upgrade Uses DDD to Tame Code Complexity
Python Programming Learning Circle
Python Programming Learning Circle
Apr 7, 2024 · Fundamentals

Comparative Analysis of VS Code and JetBrains IDEs: Inspection, Refactoring, Debugging, Git Integration, Extensibility, and Collaboration

The article provides a detailed comparison between VS Code and JetBrains IDEs, examining their code inspection, refactoring, debugging, Git integration, extensibility, and collaboration features, and concludes with recommendations based on the author's five‑year development experience.

Developer ToolsGit IntegrationIDE comparison
0 likes · 17 min read
Comparative Analysis of VS Code and JetBrains IDEs: Inspection, Refactoring, Debugging, Git Integration, Extensibility, and Collaboration
JD Tech
JD Tech
Apr 2, 2024 · Backend Development

Automating Java Getter/Setter Replacement with Lombok Using JavaParser

This article explains how to build a tool that scans Java projects, identifies simple getter and setter methods, and automatically replaces them with Lombok's @Data annotation by leveraging JavaParser for AST manipulation, complete with Maven integration and usage guidelines.

JavaParserLombokMaven
0 likes · 13 min read
Automating Java Getter/Setter Replacement with Lombok Using JavaParser