Tagged articles
129 articles
Page 1 of 2
Java Web Project
Java Web Project
Apr 27, 2026 · Artificial Intelligence

DeepSeek V4 Meets Claude Code: A Cost‑Effective Leap in Open‑Source LLM Performance

DeepSeek V4 preview, released quietly on April 24, offers two models with 1 M token context and pricing 1/16 of Claude Opus, achieving near‑par performance on SWE‑bench and LiveCodeBench, while integration with Claude Code enables rapid project understanding, bug detection, refactoring, testing and documentation, saving days of work for under ¥6.

Agentic CodingClaude CodeCode Refactoring
0 likes · 15 min read
DeepSeek V4 Meets Claude Code: A Cost‑Effective Leap in Open‑Source LLM Performance
Geek Labs
Geek Labs
Apr 4, 2026 · Artificial Intelligence

Claude Code Goes Open Source: Run the AI Coding Assistant with a Single Command

The open‑source release of Anthropic's Claude Code lets developers launch a full‑featured AI programming assistant with zero configuration, offering TypeScript‑perfect typing, enterprise‑grade reliability, and hands‑on examples that show how it can bootstrap new projects, refactor legacy code, and debug issues faster than traditional tools.

AI coding assistantClaude CodeCode Refactoring
0 likes · 8 min read
Claude Code Goes Open Source: Run the AI Coding Assistant with a Single Command
AI Architecture Hub
AI Architecture Hub
Mar 1, 2026 · Artificial Intelligence

How AI Code‑Simplifier Turns Messy AI‑Generated Code into Clean, Maintainable Code

The article examines the efficiency trap of AI‑generated code, introduces the open‑source code‑simplifier tool that preserves functionality while cleaning up code, outlines five design principles, provides installation and usage guidance, shares practical tips, and discusses the industry shift from rapid code generation to fine‑grained code governance.

AI code optimizationClaude CodeCode Refactoring
0 likes · 17 min read
How AI Code‑Simplifier Turns Messy AI‑Generated Code into Clean, Maintainable Code
Tech Minimalism
Tech Minimalism
Jan 23, 2026 · Backend Development

Claude Code’s Internal Code‑Simplifier Plugin: Automatic Code Cleanup and Refactoring

The article introduces the open‑source code‑simplifier plugin for Claude Code, explains how it reads project conventions from a CLAUDE.md file, automatically refactors code without changing functionality, and compares its capabilities with ESLint/Prettier and manual refactoring, while offering installation steps, usage scenarios, and best‑practice recommendations.

AI developer toolsAutomationClaude Code
0 likes · 13 min read
Claude Code’s Internal Code‑Simplifier Plugin: Automatic Code Cleanup and Refactoring
JavaScript
JavaScript
Jan 15, 2026 · Frontend Development

10 Clean Alternatives to If‑Else in JavaScript for Maintainable Code

When traditional if‑else chains become verbose and hard to maintain, JavaScript offers several concise alternatives—including object mapping, Array.includes, ternary chains, logical operators, switch pattern matching, Proxy interception, functional programming, state machines, and decorators—each illustrated with clear code snippets to improve readability and scalability.

Code Refactoringfunctional programmingif-else
0 likes · 3 min read
10 Clean Alternatives to If‑Else in JavaScript for Maintainable Code
Wuming AI
Wuming AI
Jan 11, 2026 · Frontend Development

How Claude’s Open‑Source Code‑Simplifier Agent Refactors Your JavaScript/TypeScript Code

The article explains how Claude Code’s newly open‑sourced code‑simplifier agent works, detailing its system prompt, five core principles, step‑by‑step workflow, installation commands, language‑specific pitfalls, and a customized version for non‑JavaScript projects, enabling developers to automatically clean and maintain code without losing functionality.

Claude AICode RefactoringPrompt engineering
0 likes · 8 min read
How Claude’s Open‑Source Code‑Simplifier Agent Refactors Your JavaScript/TypeScript Code
JavaScript
JavaScript
Jan 7, 2026 · Fundamentals

How Guard Clauses and Early Returns Can Simplify Complex If‑Else Logic

This article explains why deeply nested if‑else statements hurt readability and maintainability, and demonstrates how using early return statements and guard‑clause patterns can flatten code, reduce cognitive load, and improve maintainability with clear examples in JavaScript.

Code RefactoringControl FlowEarly Return
0 likes · 5 min read
How Guard Clauses and Early Returns Can Simplify Complex If‑Else Logic
PaperAgent
PaperAgent
Dec 14, 2025 · Artificial Intelligence

GPT‑5.2 vs Gemini 3 Pro: Coding Tests, NeurIPS 2025 Paper Insights, and RAG Refactor

The article evaluates GPT‑5.2 and Gemini 3 Pro on real‑world coding tasks, analyzes trends from the 6000 papers presented at NeurIPS 2025, and demonstrates how to extract and refactor the tree‑building component of the open‑source RAPTOR RAG system into an independent module.

AI model evaluationCode RefactoringGPT-5.2
0 likes · 5 min read
GPT‑5.2 vs Gemini 3 Pro: Coding Tests, NeurIPS 2025 Paper Insights, and RAG Refactor
Frontend AI Walk
Frontend AI Walk
Dec 9, 2025 · Fundamentals

Mastering Cursor’s Plan Mode: A Step‑by‑Step Guide

This tutorial explains Cursor AI’s Plan mode, a structured task‑management workflow that lets the AI analyze a codebase, create a detailed execution plan, track tasks via a todo list, and safely apply complex code changes with minimal risk.

AI AssistantCode RefactoringCursor
0 likes · 21 min read
Mastering Cursor’s Plan Mode: A Step‑by‑Step Guide
JavaScript
JavaScript
Nov 14, 2025 · Frontend Development

Can You Replace try…catch with a Go‑Style Helper in JavaScript?

This article explains how async/await simplifies asynchronous JavaScript but still forces repetitive try…catch blocks, and introduces a Go‑inspired helper function that returns an [error, data] tuple to flatten error handling, improve readability, and work seamlessly with Promise.all.

Code RefactoringError HandlingGo style
0 likes · 8 min read
Can You Replace try…catch with a Go‑Style Helper in JavaScript?
macrozheng
macrozheng
Nov 5, 2025 · Backend Development

Why Java Records Outshine Lombok @Data: A Practical Migration Guide

This article examines the drawbacks of using Lombok in Java projects, demonstrates how replacing Lombok annotations with Java Records, explicit constructors, and MapStruct improves code readability, IDE support, and runtime safety, and shares the measurable benefits of the migration.

Backend DevelopmentCode RefactoringJava
0 likes · 5 min read
Why Java Records Outshine Lombok @Data: A Practical Migration Guide
JavaScript
JavaScript
Nov 5, 2025 · Frontend Development

Beyond if‑else: 9 Cleaner JavaScript Patterns for Conditional Logic

This article presents nine practical JavaScript techniques—ranging from object maps and Array.includes to ternary chains, logical operators, switch statements, Proxy, functional patterns, state machines, and decorators—that replace verbose if‑else statements with cleaner, more maintainable code.

Code RefactoringConditional LogicJavaScript
0 likes · 3 min read
Beyond if‑else: 9 Cleaner JavaScript Patterns for Conditional Logic
JavaScript
JavaScript
Nov 1, 2025 · Frontend Development

Why Vue 3’s Composition API Beats Mixins: Benefits and Migration Guide

The article explains how Vue 3’s Composition API resolves the naming conflicts, hidden dependencies, and reusability limits of Vue 2 mixins, showcases practical code examples, and describes a real‑world fintech migration that makes component logic clearer and more maintainable.

Code RefactoringComposition APIMixins
0 likes · 6 min read
Why Vue 3’s Composition API Beats Mixins: Benefits and Migration Guide
Architecture Digest
Architecture Digest
Oct 30, 2025 · Fundamentals

Transform Java Code with Lambda: From Boilerplate to Elegant Streams

This article explains how Java's lambda expressions and Stream API replace verbose boilerplate with concise, functional code, covering core pain points, simple sorting examples, the three Stream operations, declarative pipelines, advanced concurrency and null‑handling techniques, and a decision guide for when to use lambdas.

Code RefactoringJavaLambda
0 likes · 7 min read
Transform Java Code with Lambda: From Boilerplate to Elegant Streams
JavaScript
JavaScript
Oct 16, 2025 · Frontend Development

10 Cleaner Alternatives to if‑else in JavaScript

This guide shows how to replace verbose if‑else chains in JavaScript with cleaner techniques such as object mapping, Array.includes, ternary operators, logical shortcuts, switch statements, Proxy interception, functional patterns, state machines, and decorators, providing concise code examples for each method.

Code RefactoringConditional LogicDesign Patterns
0 likes · 3 min read
10 Cleaner Alternatives to if‑else in JavaScript
Liangxu Linux
Liangxu Linux
Oct 10, 2025 · Fundamentals

Mastering Embedded Code Refactoring: Strategies, Tools, and Real‑World Examples

This guide explains why refactoring embedded software is uniquely challenging, outlines preparation steps, presents basic to advanced refactoring techniques, shows hardware‑specific and real‑time optimizations, describes verification methods, and provides a concrete sensor‑data case study with measurable results.

Code RefactoringLow PowerReal-Time
0 likes · 10 min read
Mastering Embedded Code Refactoring: Strategies, Tools, and Real‑World Examples
Open Source Tech Hub
Open Source Tech Hub
Oct 10, 2025 · Backend Development

Master PHP 8's match Expression: Safer, Cleaner Alternatives to switch

This guide explains PHP 8's match expression, highlighting its strict comparison, return capabilities, and practical examples—including basic rewrites, conditional branches, enum integration, and a driver factory pattern—to help developers replace switch statements with more robust code.

Code RefactoringEnumsFactory Pattern
0 likes · 5 min read
Master PHP 8's match Expression: Safer, Cleaner Alternatives to switch
Ray's Galactic Tech
Ray's Galactic Tech
Sep 20, 2025 · Backend Development

Migrate Java 8 to JDK 17: Must‑Fix Issues and Optimization Tips

This guide outlines the mandatory code changes required when moving from JDK 8 to JDK 17—such as removed modules, internal API restrictions, and compiler flag updates—and highlights optional optimizations like var inference, collection factories, switch expressions, records, text blocks, enhanced Stream and Random APIs, with practical examples and migration steps.

Code RefactoringJDK 17Java
0 likes · 8 min read
Migrate Java 8 to JDK 17: Must‑Fix Issues and Optimization Tips
Su San Talks Tech
Su San Talks Tech
Sep 10, 2025 · Fundamentals

15 Proven Code Refactoring Techniques to Supercharge Your Java Projects

Learn 15 practical code refactoring techniques—from extracting methods and introducing explanatory variables to applying design patterns like Strategy and Builder—that transform tangled Java code into clean, modular, and maintainable solutions, boosting readability and simplifying future enhancements.

Code RefactoringDesign PatternsJava
0 likes · 30 min read
15 Proven Code Refactoring Techniques to Supercharge Your Java Projects
Architect's Guide
Architect's Guide
Aug 23, 2025 · Backend Development

Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks

This article explains why duplicate code harms maintainability and demonstrates three practical techniques—factory/template method patterns, annotation‑driven reflection, and bean‑mapping utilities—to refactor Java backend services and dramatically reduce redundant implementations.

Code RefactoringDesign PatternsJava
0 likes · 23 min read
Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks
Code Ape Tech Column
Code Ape Tech Column
Jul 18, 2025 · Backend Development

Building a Flexible Java Rule Engine: Design, Code, and Tips

This article walks through the design and implementation of a Java rule engine, illustrating how to abstract rules, create a reusable executor with AND/OR logic, and demonstrates the full code, while discussing its advantages, drawbacks, and practical usage in real‑world applications.

Backend DevelopmentCode RefactoringDesign Patterns
0 likes · 7 min read
Building a Flexible Java Rule Engine: Design, Code, and Tips
Java Architect Essentials
Java Architect Essentials
Jul 15, 2025 · Fundamentals

Avoid Constructor Pitfalls and Cut Code in Half with Builder Pattern

This article explains common constructor mistakes such as starting threads, calling overridable methods, and using too many parameters, demonstrates how the Builder pattern and default-value constructors can dramatically reduce boilerplate, improve readability and performance, and offers practical guidelines for safe constructor design.

Builder PatternCode RefactoringConstructor
0 likes · 6 min read
Avoid Constructor Pitfalls and Cut Code in Half with Builder Pattern
Code Mala Tang
Code Mala Tang
Jul 7, 2025 · Fundamentals

Simplify Python Conditionals with the Dictionary Dispatch Pattern

This article introduces the dictionary dispatch pattern in Python, showing how to replace verbose if‑elif‑else chains with clean, efficient dictionary‑based function mapping, includes step‑by‑step examples, a calculator case study, and guidance on when to use or avoid the technique.

Code RefactoringPythondictionary dispatch
0 likes · 6 min read
Simplify Python Conditionals with the Dictionary Dispatch Pattern
Top Architect
Top Architect
Jun 21, 2025 · Fundamentals

Why Pushing If‑Conditions Up and For‑Loops Down Boosts Code Quality

The article explains two simple yet powerful rules—"Push Ifs Up" and "Push Fors Down"—showing how moving condition checks out of functions and placing bulk processing loops later can reduce duplicated checks, improve readability, and unlock performance gains.

Code RefactoringIf StatementsPerformance Optimization
0 likes · 9 min read
Why Pushing If‑Conditions Up and For‑Loops Down Boosts Code Quality
JavaScript
JavaScript
May 30, 2025 · Frontend Development

Boost JavaScript Performance: Eliminate Unnecessary else Statements

This article explains how removing unnecessary else clauses and using early return guard statements can streamline JavaScript functions, reduce nesting, cut condition checks, and improve execution speed, illustrated with before-and-after code examples and best‑practice guidelines for loops and async operations.

Code RefactoringEarly ReturnJavaScript
0 likes · 3 min read
Boost JavaScript Performance: Eliminate Unnecessary else Statements
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.

BackendCode RefactoringPHP
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 DevelopmentCode RefactoringJava Records
0 likes · 6 min read
Why Java Records Beat Lombok @Data and How to Simplify Your 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.

Code RefactoringLoop Optimizationfunctional programming
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.

AICode RefactoringReact
0 likes · 12 min read
Leveraging AI and the ReAct Framework for Efficient Code Refactoring
JavaScript
JavaScript
Feb 21, 2025 · Frontend Development

10 Clever Ways to Replace if‑else in JavaScript

This article presents ten practical techniques—including object mapping, Array.includes, ternary chains, logical operators, switch patterns, Proxy, functional programming, state machines, and decorators—to simplify and shorten JavaScript conditional logic, each illustrated with clear code examples.

Code RefactoringConditional LogicDesign Patterns
0 likes · 3 min read
10 Clever Ways to Replace if‑else in JavaScript
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.

Code RefactoringDebugging ToolsSoftware Engineering
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.

Code RefactoringNumPyPerformance Optimization
0 likes · 8 min read
How I Boosted My Python Script Speed by 300%: 10 Proven Optimization Tricks
Architect
Architect
Jan 15, 2025 · Backend Development

How Java 8 Functional Interfaces Can Eliminate Repetitive Validation Code

This article demonstrates how Java 8’s functional interfaces, especially Function and SFunction, can refactor repetitive data‑validation logic into a generic, reusable method, reducing boilerplate, improving readability, and enabling flexible validation scenarios such as checking column values, matching expected values, and verifying values against allowed lists.

Code RefactoringJavaLambda
0 likes · 14 min read
How Java 8 Functional Interfaces Can Eliminate Repetitive Validation Code
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 DevelopmentCode RefactoringPHP
0 likes · 9 min read
Handling PHP Version Compatibility: Common Issues and Effective Solutions
Architect
Architect
Nov 17, 2024 · Backend Development

How to Refactor a Multi‑Tenant Service to Reduce Coupling and Code Bloat

The article presents a real‑world case of a multi‑tenant system whose business logic was tightly coupled across tenants, leading to a massive service class, and demonstrates how applying Domain‑Driven Design, the Dependency Inversion Principle, and the Factory pattern can restructure the code into isolated tenant‑specific actions, improving maintainability and testability.

Backend ArchitectureCode RefactoringDependency Inversion
0 likes · 6 min read
How to Refactor a Multi‑Tenant Service to Reduce Coupling and Code Bloat
Alibaba Cloud Native
Alibaba Cloud Native
Oct 25, 2024 · Fundamentals

How to Tackle Legacy Code: Strategies, Unit‑Testing Pitfalls, and Cost‑Benefit Analysis

This article defines legacy code, categorizes its types, outlines practical handling strategies—including rewriting, refactoring, and targeted unit testing—examines common unit‑testing mistakes, introduces a cost‑benefit quadrant model, and shows how the Tongyi Lingma tool can assist each step.

Code RefactoringLegacy Codecost-benefit analysis
0 likes · 9 min read
How to Tackle Legacy Code: Strategies, Unit‑Testing Pitfalls, and Cost‑Benefit Analysis
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.

Code RefactoringJavadesign pattern
0 likes · 4 min read
Avoiding Low Cohesion Bugs by Centralizing Repayment Logic in Java
JD Cloud Developers
JD Cloud Developers
Sep 6, 2024 · Fundamentals

How to Tame Business System Complexity: Strategies and Best Practices

This article explains what software complexity means, how it is measured and classified, outlines the negative impacts of high business complexity, and presents concrete architectural, coding, and configuration techniques to reduce complexity and improve maintainability.

Code RefactoringConfigurationDomain-Driven Design
0 likes · 13 min read
How to Tame Business System Complexity: Strategies and Best Practices
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.

Code RefactoringConfigurationDomain-Driven Design
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.

Code RefactoringConfigurationSoftware Architecture
0 likes · 13 min read
Overview of System Complexity and Strategies for Reducing Business Complexity
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.

Code RefactoringMulti-Database SupportSoftware Architecture
0 likes · 6 min read
Designing Bugzilla for Multi‑Database Support: A Case Study
21CTO
21CTO
Jun 25, 2024 · Artificial Intelligence

10 Powerful Ways GitHub Copilot Supercharges Your Coding

This article explores the ten key features of GitHub Copilot—from workspace‑wide code suggestions and natural‑language queries to automatic refactoring, bug fixing, unit‑test generation, commit‑message drafting, language translation, rename assistance, and VS Code integration—showing how the AI‑driven assistant can dramatically boost developer productivity.

AI coding assistantCode RefactoringGitHub Copilot
0 likes · 5 min read
10 Powerful Ways GitHub Copilot Supercharges Your Coding
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.

CocoaPodsCode RefactoringLinkMap
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.

Code RefactoringDeploymentVue
0 likes · 12 min read
Integrating Two Large Frontend Applications: Architecture, Deployment, and Code Refactoring
Architect
Architect
Jun 1, 2024 · Mobile Development

How Mobile QQ Overcame 20 Years of Technical Debt with a Multi‑Phase Architecture Revamp

This article details Mobile QQ's 20‑year evolution, the overwhelming technical debt that made its monolithic architecture unsustainable, and the multi‑stage decoupling, refactoring, and NT architecture upgrades that dramatically improved modularity, performance, development efficiency, and user experience across all platforms.

Code RefactoringPerformance Optimizationcross-platform
0 likes · 16 min read
How Mobile QQ Overcame 20 Years of Technical Debt with a Multi‑Phase Architecture Revamp
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 testingCode RefactoringDDD
0 likes · 29 min read
How DataTester’s Architecture Upgrade Uses DDD to Tame Code Complexity
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 24, 2024 · Backend Development

How a Strategy Factory Refactors Complex HSF Checks for Cleaner Backend Code

This article explains how the smart‑auto testing tool’s tangled HSF interface validation logic was refactored using a strategy‑factory pattern, breaking long if‑else chains into modular strategies that improve readability, maintainability, and adherence to the Open/Closed principle.

Backend DevelopmentCode RefactoringDesign Patterns
0 likes · 12 min read
How a Strategy Factory Refactors Complex HSF Checks for Cleaner Backend Code
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.

Code RefactoringDebuggingGit integration
0 likes · 17 min read
Comparative Analysis of VS Code and JetBrains IDEs: Inspection, Refactoring, Debugging, Git Integration, Extensibility, and Collaboration
JD Cloud Developers
JD Cloud Developers
Apr 3, 2024 · Backend Development

Auto‑Replace Java Getters/Setters with Lombok @Data Using JavaParser

This article explains how to build a Maven‑based tool that scans a Java codebase, removes trivial getter and setter methods, adds Lombok’s @Data annotation, and rewrites the source files using JavaParser, complete with implementation steps, code examples, and usage instructions.

Code RefactoringJavaJavaParser
0 likes · 12 min read
Auto‑Replace Java Getters/Setters with Lombok @Data Using JavaParser
Java Backend Technology
Java Backend Technology
Mar 25, 2024 · Fundamentals

5 Powerful Alternatives to If‑Else for Cleaner, Maintainable Code

This article explains why traditional if‑else statements often lead to complex, hard‑to‑read code and presents five practical techniques—including removing unnecessary else blocks, using fast returns, guard clauses, dictionary lookups, and the strategy pattern—to refactor and eliminate if‑else structures for more robust software design.

Code RefactoringStrategy Patternguard-clauses
0 likes · 8 min read
5 Powerful Alternatives to If‑Else for Cleaner, Maintainable Code
Architect's Guide
Architect's Guide
Feb 21, 2024 · Backend Development

Design and Implementation of a Java Rule Engine with Short‑Circuit Evaluation

This article explains a real‑world scenario of extending trial‑user eligibility rules, introduces a refactored Java rule‑engine architecture that separates data, abstract rule templates, concrete rule implementations, and a service supporting AND/OR short‑circuit logic, and evaluates its advantages and drawbacks.

Backend DevelopmentCode RefactoringDesign Patterns
0 likes · 8 min read
Design and Implementation of a Java Rule Engine with Short‑Circuit Evaluation
DaTaobao Tech
DaTaobao Tech
Jan 15, 2024 · Backend Development

Refactoring Java Sale‑Type Parsing: From Simple Method to Design Patterns

Starting from a basic Java method that maps a sale‑type string to an integer, the article incrementally refactors the code by applying null‑safe utilities, constants, static methods, ternary/Optional expressions, enums with lookup maps, a combined relation enum, and finally a Strategy pattern with a container, illustrating how each step improves safety, readability, extensibility, and testability.

Code RefactoringDesign PatternsJava
0 likes · 13 min read
Refactoring Java Sale‑Type Parsing: From Simple Method to Design Patterns
Code Ape Tech Column
Code Ape Tech Column
Dec 5, 2023 · Backend Development

Design and Implementation of a Java Rule Engine with AND/OR Logic

This article explains how to design and refactor a Java rule engine that supports short‑circuit AND/OR logic, demonstrates the abstraction of rules, shows concrete implementations, and provides a chainable service for executing combined rule sets with example code.

AND/OR LogicBackendCode Refactoring
0 likes · 8 min read
Design and Implementation of a Java Rule Engine with AND/OR Logic
Baidu Geek Talk
Baidu Geek Talk
Nov 15, 2023 · Mobile Development

Automated OC Code Refactoring Practice (Part 3): Data Item Read/Write Class Encapsulation and Call Site Adaptation

The third part of the series shows how Python scripts can automatically refactor Objective‑C code by encapsulating each data item’s read/write operations in static wrapper classes and rewriting over 600 call sites to use generated XXXSettingReader and XXXSettingWriter methods, achieving zero bugs.

AutomationCode RefactoringObjective‑C
0 likes · 11 min read
Automated OC Code Refactoring Practice (Part 3): Data Item Read/Write Class Encapsulation and Call Site Adaptation
Architect's Guide
Architect's Guide
Nov 4, 2023 · Backend Development

Eliminating Code Duplication in Java Backend Development with Design Patterns, Annotations, and Bean Mapping

This article explains how to reduce repetitive Java backend code by extracting common logic into abstract classes, applying the Template Method and Factory patterns, using custom annotations with reflection for API serialization, and leveraging bean‑mapping utilities to copy properties between DTOs and DOs.

Code RefactoringDesign PatternsJava
0 likes · 21 min read
Eliminating Code Duplication in Java Backend Development with Design Patterns, Annotations, and Bean Mapping
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
Java Architect Essentials
Java Architect Essentials
Nov 1, 2023 · Backend Development

Understanding Java 8 Optional API: Methods, Usage, and Practical Examples

This article explains how Java 8's Optional class helps avoid NullPointerException by providing a fluent API—including ofNullable, empty, orElse, map, flatMap, filter, and other methods—along with concrete code examples that demonstrate refactoring traditional null‑check logic into concise, functional style.

Code RefactoringJavafunctional programming
0 likes · 10 min read
Understanding Java 8 Optional API: Methods, Usage, and Practical Examples
Baidu Geek Talk
Baidu Geek Talk
Nov 1, 2023 · Fundamentals

Automating Code Refactoring with Python: Implementing Data Path Integration

This article shows how Python scripts can automatically generate the Objective‑C code needed to register, read, and update hundreds of XXXSetting data items within a unified Data Path framework, eliminating manual refactoring errors, cutting development effort, and streamlining cross‑module data integration.

Code RefactoringData Item ManagementData Path Integration
0 likes · 26 min read
Automating Code Refactoring with Python: Implementing Data Path Integration
Baidu Geek Talk
Baidu Geek Talk
Oct 23, 2023 · Mobile Development

How Python Automates iOS Code Refactoring: A Step‑by‑Step Guide

This article explains how to use Python scripts to automate the analysis and refactoring of iOS configuration data items in Baidu App, detailing the extraction of public properties, usage detection across modules, CSV reporting, and the overall refactoring workflow to improve maintainability and reduce risk.

AutomationCSV exportCode Refactoring
0 likes · 16 min read
How Python Automates iOS Code Refactoring: A Step‑by‑Step Guide
Java Backend Technology
Java Backend Technology
Oct 20, 2023 · Fundamentals

5 Better Alternatives to If‑Else for Cleaner, More Maintainable Code

This article explores five practical techniques to replace traditional if‑else statements—removing unnecessary else blocks, using value assignment, applying guard clauses, leveraging dictionaries, and employing strategy patterns—demonstrating how each approach improves readability, maintainability, and adheres to solid design principles.

Code RefactoringStrategy Patternguard-clause
0 likes · 8 min read
5 Better Alternatives to If‑Else for Cleaner, More Maintainable Code
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
DeWu Technology
DeWu Technology
Apr 19, 2023 · Backend Development

Web Project Code Refactoring: Practices, Challenges, and Solutions

The article details a year‑long refactoring case study of a fast‑iteration web project migrated from Python to Java/Go, describing inherited performance bugs, a prioritized migration plan, monitoring integration, concrete optimizations such as query reduction and cache redesign, and the resulting stability and latency gains, while outlining required developer skills and best‑practice recommendations.

Code RefactoringDevOpsGo
0 likes · 19 min read
Web Project Code Refactoring: Practices, Challenges, and Solutions
JD Tech
JD Tech
Feb 16, 2023 · Fundamentals

Principles of Clean Code: Theory and Practical Comparisons in Java

This article presents a theoretical framework for clean code, compares poor and excellent Java implementations across several scenarios, and offers practical recommendations to simplify code, leverage language features, and maintain clear business logic, emphasizing the core philosophy of "the greatest simplicity".

Code RefactoringJavabest practices
0 likes · 12 min read
Principles of Clean Code: Theory and Practical Comparisons in Java
DataFunTalk
DataFunTalk
Jan 31, 2023 · Big Data

SPI Refactoring Practice in Apache InLong Manager to Reduce Maintenance Cost and Enhance Extensibility

This article presents the SPI-based refactoring of Apache InLong Manager, describing the project's background, existing maintenance challenges, the concept of Java Service Provider Interface, the concrete implementation steps, code restructuring, and the resulting benefits such as higher code reuse, easier extension, and reduced DDL changes.

Apache InLongBig DataCode Refactoring
0 likes · 10 min read
SPI Refactoring Practice in Apache InLong Manager to Reduce Maintenance Cost and Enhance Extensibility
Java Architect Essentials
Java Architect Essentials
Jan 12, 2023 · Backend Development

How to Eliminate Repetitive Java Code with Design Patterns, Annotations, and Bean Mapping

This article examines why duplicate code harms maintainability, then demonstrates three practical techniques—using factory and template method patterns, leveraging custom annotations with reflection, and applying bean‑copy utilities—to refactor Java business logic and dramatically reduce redundancy.

Code RefactoringDesign PatternsJava
0 likes · 29 min read
How to Eliminate Repetitive Java Code with Design Patterns, Annotations, and Bean Mapping
Python Programming Learning Circle
Python Programming Learning Circle
Oct 31, 2022 · Fundamentals

Why I Switched from VS Code to JetBrains IDEs: A Comparative Analysis

After five years of using VS Code as my primary IDE, I decided to switch to JetBrains IDEs and this article details the background, code inspection, refactoring, debugging, Git integration, extensibility, and collaboration features that influenced my decision, helping readers choose the right development environment.

Code RefactoringExtensionsGit integration
0 likes · 21 min read
Why I Switched from VS Code to JetBrains IDEs: A Comparative Analysis
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 10, 2022 · Frontend Development

Pure Functions in JavaScript: Concepts, Benefits, and Practical Examples

This article explains the definition of pure functions in JavaScript, illustrates their input‑output behavior, side‑effects, composition, point‑free style, and monadic encapsulation, and demonstrates how writing pure functions improves readability, testability, and refactoring with concrete code examples.

Code RefactoringJavaScriptMonads
0 likes · 15 min read
Pure Functions in JavaScript: Concepts, Benefits, and Practical Examples
dbaplus Community
dbaplus Community
Aug 7, 2022 · Operations

How to Slim Down Application Logs: Practical Techniques and Real‑World Case Study

Developers often flood systems with INFO logs, causing massive files that strain operations; this article outlines practical log‑slimming strategies—printing only essential logs, merging entries, using abbreviations, and context‑aware level switches—illustrated with a concrete case that reduced daily log volume from 5 GB to under 1 GB.

Code Refactoringbackend operationsjava logging
0 likes · 7 min read
How to Slim Down Application Logs: Practical Techniques and Real‑World Case Study
Code Ape Tech Column
Code Ape Tech Column
Jul 15, 2022 · Backend Development

Eliminating Code Duplication in Java Business Logic with Design Patterns, Annotations, and Bean Mapping

This article explains how to reduce repetitive Java business code by applying the factory and template‑method patterns for shopping‑cart processing, using custom annotations with reflection to generate API requests, and leveraging bean‑mapping utilities to copy properties between DTO/DO objects, while illustrating each technique with concrete code examples.

Code RefactoringFactory PatternJava
0 likes · 21 min read
Eliminating Code Duplication in Java Business Logic with Design Patterns, Annotations, and Bean Mapping
Code Ape Tech Column
Code Ape Tech Column
Mar 9, 2022 · Backend Development

Eliminating Code Duplication in Business Logic with Design Patterns, Annotations, Reflection, and Bean Mapping

This article explains how to reduce repetitive business‑level Java code by applying the Template Method and Factory patterns, leveraging custom annotations with reflection, and using bean‑mapping utilities, thereby improving maintainability, extensibility, and overall code quality.

Code RefactoringDesign PatternsJava
0 likes · 20 min read
Eliminating Code Duplication in Business Logic with Design Patterns, Annotations, Reflection, and Bean Mapping
Java Backend Technology
Java Backend Technology
Dec 16, 2021 · Backend Development

Eliminate if…else Chaos in Java 8 with Functional Interfaces

Learn how to replace repetitive if…else statements in Java by leveraging Java 8’s functional interfaces—Supplier, Consumer, Runnable, and Function—through clear examples, custom interfaces, and utility methods that streamline exception handling, branch processing, and null checks for cleaner, more maintainable code.

Code RefactoringException HandlingFunctional Interface
0 likes · 6 min read
Eliminate if…else Chaos in Java 8 with Functional Interfaces
Java Captain
Java Captain
Nov 26, 2021 · Backend Development

Using Java 8 Functional Interfaces to Replace if…else Statements

This article explains how Java 8's functional interfaces such as Supplier, Consumer, Runnable and Function can be used to eliminate repetitive if…else code for exception handling and branching, providing clear examples and reusable utility methods.

Code RefactoringFunctional InterfaceJava
0 likes · 8 min read
Using Java 8 Functional Interfaces to Replace if…else Statements
Xianyu Technology
Xianyu Technology
Nov 18, 2021 · Mobile Development

Optimizing fish_redux 3.0: Architecture, Core Capabilities, and Code Refactoring

Fish_redux 3.0 refactors the framework by collapsing deep inheritance into a BasicComponent base, trimming code from over 3 k to about 1 k lines, streamlining context handling, and preserving core state‑driven UI, middleware, and assembly‑style componentization while adding lightweight extension packages and a roadmap for further Flutter and Dart 2.x enhancements.

Code RefactoringFlutterState Management
0 likes · 9 min read
Optimizing fish_redux 3.0: Architecture, Core Capabilities, and Code Refactoring
ByteFE
ByteFE
Oct 14, 2021 · Fundamentals

Strategy Design Pattern: A Comprehensive Guide

This article explains the Strategy Design Pattern, a behavioral design pattern that enables defining a family of algorithms, encapsulating each one, and making them interchangeable to improve code maintainability and flexibility in software development.

Code RefactoringObject-Oriented DesignSoftware Engineering
0 likes · 7 min read
Strategy Design Pattern: A Comprehensive Guide
JavaEdge
JavaEdge
Oct 13, 2021 · Backend Development

Why Inconsistent Naming Breaks Java Projects and How to Refactor It

The article examines how varied naming conventions and outdated coding practices in Java backend projects cause confusion, illustrates the problem with real code examples, and provides concrete refactoring steps—such as adopting Java 8 date‑time APIs and enforcing consistent service naming—to improve maintainability and team cohesion.

Backend DevelopmentCode RefactoringJava
0 likes · 6 min read
Why Inconsistent Naming Breaks Java Projects and How to Refactor It
Programmer DD
Programmer DD
Sep 4, 2021 · Backend Development

Eliminate Excessive if‑else with Strategy, Factory, and Singleton Patterns

This article demonstrates how to replace tangled if‑else chains in business logic with three techniques—early condition checks, the Strategy pattern, and a combination of Strategy, Factory, and Singleton—using clear examples and code illustrations to make the code more maintainable and elegant.

Code Refactoringif-else
0 likes · 4 min read
Eliminate Excessive if‑else with Strategy, Factory, and Singleton Patterns
Programmer DD
Programmer DD
Jul 24, 2021 · Fundamentals

Why Every Engineer Should Master Code Refactoring: Benefits, Techniques & Tools

Code refactoring—cleaning and restructuring existing code without changing its behavior—offers numerous benefits such as reduced complexity, improved readability, faster performance, lower technical debt, and better maintainability, and this guide explains its definition, advantages, metrics, techniques, tools, and management considerations.

Code RefactoringSoftware Engineeringdevelopment process
0 likes · 11 min read
Why Every Engineer Should Master Code Refactoring: Benefits, Techniques & Tools
Amap Tech
Amap Tech
Jul 16, 2021 · Fundamentals

Code Refactoring: Concepts, Practices, and Techniques

The article shares practical lessons from refactoring a ride‑hailing order system, explaining Martin Fowler’s definition of refactoring, distinguishing small (renaming, deduplication) and large (architectural redesign) efforts, outlining typical code smells, and detailing a structured pre‑, during‑, and post‑refactoring process to improve maintainability, reduce bugs, and accelerate development.

Code RefactoringSoftware ArchitectureSoftware Engineering
0 likes · 19 min read
Code Refactoring: Concepts, Practices, and Techniques
Taobao Frontend Technology
Taobao Frontend Technology
Jun 21, 2021 · R&D Management

Unlock Your Coding Flow: Proven Tactics to Boost Developer Productivity

This article explores how the concept of "flow" can transform software development by addressing distractions, meetings, and mental inertia, and offers practical strategies such as scheduling focused coding time, improving documentation, running efficient meetings, and leveraging data‑driven tools like Time Master to enhance productivity and work‑life balance.

Code RefactoringR&D managementcoding productivity
0 likes · 14 min read
Unlock Your Coding Flow: Proven Tactics to Boost Developer Productivity
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jun 11, 2021 · Backend Development

How to Refactor an Order Service for Better Maintainability and Testability

This article walks through a simple e‑commerce order flow, highlights the drawbacks of tightly coupled service code, and demonstrates step‑by‑step refactorings—introducing repository abstractions, domain entities, an anti‑corruption layer, and a generic message producer—to achieve a clean, extensible, and testable backend architecture.

Clean ArchitectureCode RefactoringJava
0 likes · 9 min read
How to Refactor an Order Service for Better Maintainability and Testability
Java Backend Technology
Java Backend Technology
Jun 8, 2021 · Backend Development

Designing a Flexible Java Rule Engine: From Concept to Code

This article walks through a real‑world Java rule‑engine implementation, covering the business requirements, abstract rule design, executor construction, sample code, and a balanced discussion of its advantages and drawbacks for backend developers.

Code RefactoringDesign PatternsJava
0 likes · 8 min read
Designing a Flexible Java Rule Engine: From Concept to Code
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 7, 2021 · Fundamentals

How to Master Boilerplate Code in Java for Faster, Cleaner Development

This article explains what boilerplate code is, why it speeds up development, and provides practical Java examples and techniques—including annotations, design patterns, and immutable collections—to write, reuse, and reduce repetitive code while maintaining quality and readability.

Boilerplate CodeCode RefactoringDesign Patterns
0 likes · 23 min read
How to Master Boilerplate Code in Java for Faster, Cleaner Development
Architect's Alchemy Furnace
Architect's Alchemy Furnace
May 7, 2021 · Backend Development

Eliminate NullPointerExceptions in Java with Optional: A Practical Guide

This article explains why traditional nested null‑checks cause NullPointerExceptions in Java, introduces the Optional class introduced in Java 8, and demonstrates how its constructors and fluent APIs like ofNullable, orElse, map, flatMap, and filter can replace verbose checks with concise, safe code.

Code RefactoringJavanullpointerexception
0 likes · 10 min read
Eliminate NullPointerExceptions in Java with Optional: A Practical Guide
Top Architect
Top Architect
Apr 29, 2021 · Fundamentals

Five Ways to Replace If‑Else Statements: From Basic Refactoring to Advanced Patterns

This article explores why traditional if‑else constructs often lead to tangled, hard‑to‑maintain code and presents five progressively sophisticated techniques—including removing unnecessary else blocks, using guard clauses, value‑assignment shortcuts, dictionary‑based dispatch, and strategy‑pattern refactoring—to write cleaner, more readable software.

Code RefactoringSoftware Architectureif-else
0 likes · 6 min read
Five Ways to Replace If‑Else Statements: From Basic Refactoring to Advanced Patterns
21CTO
21CTO
Apr 14, 2021 · Fundamentals

Why Mastering Abstraction Is the Secret to Cleaner, More Maintainable Code

This article explains how abstract thinking underpins software design, illustrates abstraction with visual and code examples, shows the pitfalls of duplicated code and forced casts, and offers practical habits—reading, summarizing, naming, and domain modeling—to strengthen a developer's abstraction skills.

Code RefactoringDomain Modelingabstraction
0 likes · 24 min read
Why Mastering Abstraction Is the Secret to Cleaner, More Maintainable Code
Code Ape Tech Column
Code Ape Tech Column
Apr 6, 2021 · Fundamentals

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

The article explains why excessively long classes hinder readability and extensibility, outlines the problems caused by redundant code and violated design principles, and provides a step‑by‑step guide using IntelliJ IDEA to extract methods, move members, and create new classes for cleaner, maintainable code.

Code RefactoringIntelliJ IDEASoftware Engineering
0 likes · 9 min read
Why Overly Long Classes Break Your Code and How to Refactor Them with IDEA
Top Architect
Top Architect
Jan 27, 2021 · Fundamentals

Five Ways to Replace If‑Else Statements: From Basics to Advanced Examples

This article presents five practical techniques for eliminating or simplifying if‑else constructs—including removing unnecessary else blocks, using early returns, applying guard clauses, converting branches to dictionary look‑ups, and employing the strategy pattern—illustrated with progressively more complex code examples to improve readability, maintainability, and adherence to solid design principles.

Code Refactoringclean codeif-else
0 likes · 6 min read
Five Ways to Replace If‑Else Statements: From Basics to Advanced Examples
Selected Java Interview Questions
Selected Java Interview Questions
Dec 1, 2020 · Backend Development

Using Annotations and Reflection to Eliminate Duplicate Java Backend Code

This article demonstrates how to replace repetitive Java backend code for constructing fixed‑length API request strings by defining POJOs, custom annotations, and a reflection‑based utility that formats parameters, pads strings, handles numeric and monetary fields, and appends an MD5 signature, thereby improving maintainability and reducing bugs.

APIBackendCode Refactoring
0 likes · 10 min read
Using Annotations and Reflection to Eliminate Duplicate Java Backend Code
ITPUB
ITPUB
Nov 15, 2020 · Backend Development

Refactoring Java Login Security: A Real-World E-Commerce Case Study

An in-depth case study shows how to refactor a Java e-commerce login module by adding IP-based and time-based security checks, identifying original code flaws, applying systematic extraction of utilities, simplifying nested loops, improving logging, and consolidating logic into a clean backend utility class.

Backend DevelopmentCode RefactoringJava
0 likes · 7 min read
Refactoring Java Login Security: A Real-World E-Commerce Case Study