Tagged articles
129 articles
Page 2 of 2
ITPUB
ITPUB
Nov 12, 2020 · Backend Development

How to Refactor a Java E‑commerce Login Module for IP and Time Restrictions

This article walks through a real‑world Java code refactor that adds login IP and allowed‑time security checks to an e‑commerce platform, highlighting problems in the original implementation and detailing step‑by‑step improvements such as utility extraction, loop simplification, constant usage, and enhanced logging.

Code RefactoringJavalogging
0 likes · 7 min read
How to Refactor a Java E‑commerce Login Module for IP and Time Restrictions
Java Architecture Diary
Java Architecture Diary
Oct 13, 2020 · Backend Development

Master IntelliJ IDEA: Highlighting, Batch Replace, and Advanced Streams Debugging

This tutorial demonstrates how to use IntelliJ IDEA’s powerful features—including string highlighting with regex validation, batch replacement shortcuts, interactive Java Streams debugging, enhanced auto‑completion for stream APIs, and document block rendering—to boost productivity when developing Java applications.

Code RefactoringIDE TipsIntelliJ IDEA
0 likes · 3 min read
Master IntelliJ IDEA: Highlighting, Batch Replace, and Advanced Streams Debugging
JD Cloud Developers
JD Cloud Developers
Oct 9, 2020 · Fundamentals

4 Programming Habits to Unlearn for Cleaner, More Efficient Code

This article identifies four common programming patterns—loops, conditional statements, vague variable names, and global scope—that hinder code clarity and maintainability, and shows how to replace them with higher‑order functions, data‑driven structures, purposeful naming, and encapsulation techniques.

Code RefactoringJavaScriptfunctional programming
0 likes · 9 min read
4 Programming Habits to Unlearn for Cleaner, More Efficient Code
Programmer DD
Programmer DD
Sep 25, 2020 · Fundamentals

Why Your Code Is Overrun by if‑else and How to Refactor It Effectively

The article explains why developers often end up with excessive if‑else statements, outlines the drawbacks of deep nesting, and presents practical refactoring techniques—including condition merging, early exits, and polymorphism—to produce cleaner, more maintainable code.

Code RefactoringPolymorphismif-else
0 likes · 12 min read
Why Your Code Is Overrun by if‑else and How to Refactor It Effectively
Java Captain
Java Captain
Sep 12, 2020 · Backend Development

Java Function Refactoring Practices: Common Utilities, Large Function Splitting, and Code Simplification

This article presents a comprehensive guide for Java developers on improving code quality by introducing common utility functions, splitting oversized methods, ensuring consistent block levels, encapsulating repeated logic, reducing nesting depth, and eliminating unnecessary null‑checks, each illustrated with concrete code examples and clear recommendations.

Backend DevelopmentCode RefactoringJava
0 likes · 18 min read
Java Function Refactoring Practices: Common Utilities, Large Function Splitting, and Code Simplification
21CTO
21CTO
Jun 7, 2020 · Fundamentals

How to Eliminate Redundant Code: A Practical DRY Refactoring Guide in PHP

This article explains the DRY (Do Not Repeat Yourself) principle, demonstrates how duplicated PHP code in a Report class can be refactored by extracting shared logic into reusable methods, and shows the final clean implementation that improves readability and maintainability.

Code RefactoringDRYPHP
0 likes · 7 min read
How to Eliminate Redundant Code: A Practical DRY Refactoring Guide in PHP
Programmer DD
Programmer DD
May 19, 2020 · Backend Development

30+ Java Refactoring Tricks to Write Cleaner, Faster Code

This article presents a comprehensive collection of Java code‑simplification techniques—from ternary operators and enhanced for‑loops to streams, Optional, design patterns, and aggressive dead‑code removal—showing how each shortcut can reduce boilerplate, improve readability, and boost performance in backend development.

Code RefactoringJavaclean code
0 likes · 32 min read
30+ Java Refactoring Tricks to Write Cleaner, Faster Code
macrozheng
macrozheng
Apr 26, 2020 · Backend Development

9 Proven Ways to Eliminate Excessive if‑else in Java Code

This article examines why overusing if‑else statements makes Java code hard to read and presents nine practical techniques—including early returns, maps, ternary operators, combined conditions, enums, Optional, streamlined logic, polymorphism, and switch statements—to refactor and simplify conditional logic for cleaner, more maintainable code.

Code RefactoringJavaPolymorphism
0 likes · 11 min read
9 Proven Ways to Eliminate Excessive if‑else in Java Code
Programmer DD
Programmer DD
Apr 7, 2020 · Operations

How Uber’s Open‑Source Piranha Automates Stale Code Removal

Uber open‑sourced Piranha, an automated tool that scans codebases, generates refactoring diffs, and removes obsolete feature‑flag code, helping teams reduce technical debt, improve performance, and accelerate development cycles across mobile platforms.

Code RefactoringPiranhaUber
0 likes · 4 min read
How Uber’s Open‑Source Piranha Automates Stale Code Removal
FunTester
FunTester
Feb 3, 2020 · Backend Development

Enhancements to Marking, Recording, and Thread Initialization in a Performance Testing Framework

This article details recent updates to a performance testing framework, including moving the mark feature into ThreadBase, changing method signatures, introducing two virtual thread limit classes for count‑based and time‑based execution, optimizing after() handling, and abandoning deep‑copy cloning for thread objects.

Code RefactoringJavaPerformance Testing
0 likes · 10 min read
Enhancements to Marking, Recording, and Thread Initialization in a Performance Testing Framework
Java Captain
Java Captain
Jan 21, 2020 · Backend Development

Reducing Excessive if‑else Nesting in Java Sharing Modules

This article explains why deep if‑else nesting harms code readability and maintenance, and demonstrates three practical techniques—interface layering, polymorphism, and map‑based dispatch—to refactor Java sharing logic into cleaner, more extensible structures while preserving functionality.

Code RefactoringJavaPolymorphism
0 likes · 11 min read
Reducing Excessive if‑else Nesting in Java Sharing Modules
WecTeam
WecTeam
Dec 31, 2019 · Frontend Development

Why You Should Switch to TypeScript: Benefits, Pitfalls, and Real‑World Examples

This article chronicles a developer's transition from plain JavaScript to TypeScript, illustrating how static typing improves code robustness, debugging, and documentation while also discussing migration steps, common pitfalls, and practical examples across frontend projects.

Code RefactoringJavaScriptTypeScript
0 likes · 19 min read
Why You Should Switch to TypeScript: Benefits, Pitfalls, and Real‑World Examples
Python Crawling & Data Mining
Python Crawling & Data Mining
Dec 25, 2019 · Fundamentals

35 PyCharm Power‑Tips to Boost Your Python Productivity

This article shares 35 practical PyCharm shortcuts and features—including clipboard history, JSON formatting, Linux command integration, quick code refactoring, and Git version control—to help Python developers work faster and more efficiently, with step‑by‑step instructions and visual examples.

Code RefactoringGit integrationIDE Tips
0 likes · 7 min read
35 PyCharm Power‑Tips to Boost Your Python Productivity
vivo Internet Technology
vivo Internet Technology
Nov 6, 2019 · Fundamentals

Writing High‑Quality JavaScript Functions with Functional Programming Techniques

The article demonstrates how to write high‑quality JavaScript functions by applying functional‑programming concepts such as composition, higher‑order functions, immutability, declarative array methods, reusable utilities like a curried tap, and memoization, showing refactored examples that replace hard‑coded DOM manipulation and imperative loops with clean, reusable code.

Code RefactoringCurryingHigher‑Order Functions
0 likes · 22 min read
Writing High‑Quality JavaScript Functions with Functional Programming Techniques
Amap Tech
Amap Tech
Jul 23, 2019 · Fundamentals

Java Function Refactoring Guidelines and Best Practices

The article outlines Java function refactoring guidelines—using utility methods, splitting large functions, keeping consistent block levels, extracting repeated logic, encapsulating parameter retrieval and conditions, parameterizing interfaces, reducing nesting with early returns, and avoiding unnecessary null checks—to improve code readability, maintainability, and performance.

Code RefactoringJavabest practices
0 likes · 15 min read
Java Function Refactoring Guidelines and Best Practices
Programmer DD
Programmer DD
Jul 15, 2019 · Backend Development

Master Java Optional to Eradicate NullPointerExceptions and Write Cleaner Code

This article explains why NullPointerExceptions occur in Java, introduces the Optional class from Java 8 as a type‑safe alternative to null, and provides practical tips, code examples, and real‑world cases for using Optional to simplify error handling and improve API design.

Backend DevelopmentCode RefactoringJava
0 likes · 7 min read
Master Java Optional to Eradicate NullPointerExceptions and Write Cleaner Code
Java Backend Technology
Java Backend Technology
Mar 3, 2019 · Backend Development

How to Eliminate Deep if‑else Nesting in Java Backend Code

The article explains why excessive if‑else nesting harms readability and maintainability, then presents three practical techniques—interface layering, polymorphism, and using a Map—to refactor Java backend sharing logic, reduce nested branches, and improve code clarity and extensibility.

BackendCode RefactoringJava
0 likes · 7 min read
How to Eliminate Deep if‑else Nesting in Java Backend Code
Java Captain
Java Captain
Jan 23, 2019 · Backend Development

How to Reduce Excessive if-else Nesting in Java: Interface Layering, Polymorphism, and Map-based Dispatch

This article explains why deep if‑else nesting harms code readability and maintainability, and presents three practical techniques—interface layering, polymorphism, and using a Map for dispatch—to simplify Java sharing logic, reduce branches, and improve extensibility while avoiding repeated null and type checks.

Code RefactoringJavaMap Dispatch
0 likes · 11 min read
How to Reduce Excessive if-else Nesting in Java: Interface Layering, Polymorphism, and Map-based Dispatch
AutoHome Frontend
AutoHome Frontend
Nov 19, 2018 · Frontend Development

5 Practical JavaScript Tricks to Write Cleaner Conditional Logic

This article presents five useful JavaScript techniques—using Array.includes, early returns, default parameters with destructuring, object literals or Map instead of switch, and Array.every/Array.some—to simplify and make conditional statements more readable and maintainable.

Code RefactoringDefault ParametersJavaScript
0 likes · 10 min read
5 Practical JavaScript Tricks to Write Cleaner Conditional Logic
Java Backend Technology
Java Backend Technology
Oct 5, 2018 · Fundamentals

Why Code Refactoring Is Ignored in Chinese IT Companies – 8 Common Reasons

The article examines eight prevalent reasons why many Chinese IT firms avoid refactoring code, including compressed timelines, high risk, lack of recognition, insufficient skills, short‑term focus, low developer status, rapid product turnover, and high staff turnover, highlighting systemic pressures that hinder sustainable software improvement.

Chinese ITCode RefactoringSoftware Engineering
0 likes · 10 min read
Why Code Refactoring Is Ignored in Chinese IT Companies – 8 Common Reasons
Java Captain
Java Captain
Sep 9, 2018 · Fundamentals

Essential IntelliJ IDEA Shortcuts and Tips for Boosting Development Efficiency

This guide introduces a comprehensive collection of IntelliJ IDEA shortcuts, navigation tricks, Alt+Enter actions, live templates, postfix completions, and refactoring utilities, showing how mastering these features can dramatically increase coding speed, code quality, and overall developer productivity.

Code RefactoringIDE shortcutsIntelliJ IDEA
0 likes · 8 min read
Essential IntelliJ IDEA Shortcuts and Tips for Boosting Development Efficiency
21CTO
21CTO
May 3, 2018 · R&D Management

Why Bigger Software Teams Often Slow Down Projects: Lessons from a Decade of Refactoring

The author reflects on a ten‑year‑old Windows application, recounts rewriting it from tens of thousands of lines to a few thousand, shares insights on programmer productivity, the Mythical Man‑Month, and why larger software teams can hinder rather than help development.

Code RefactoringSoftware Engineeringmythical man-month
0 likes · 12 min read
Why Bigger Software Teams Often Slow Down Projects: Lessons from a Decade of Refactoring
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 21, 2018 · Backend Development

20 Essential Java Coding Practices to Boost Performance and Prevent Memory Leaks

This article presents a comprehensive list of Java coding guidelines—including using final classes, reusing objects, favoring local variables, avoiding unnecessary initializations, and optimizing collections—to reduce resource consumption, improve execution speed, and mitigate memory‑leak risks.

Code RefactoringMemory Managementbest practices
0 likes · 14 min read
20 Essential Java Coding Practices to Boost Performance and Prevent Memory Leaks
21CTO
21CTO
Apr 2, 2016 · Backend Development

Boost C++ Performance: 20% Gains with gprof Profiling and Smart Optimizations

This article explains how to apply the Pareto principle and gprof profiling to identify and fix costly C++ code patterns—such as large object initialization and inefficient map usage—resulting in up to a 10% overall performance improvement with minimal code changes.

C++Code RefactoringProfiling
0 likes · 7 min read
Boost C++ Performance: 20% Gains with gprof Profiling and Smart Optimizations
21CTO
21CTO
Dec 14, 2015 · Fundamentals

Mastering Clean Code: Practical Tips for Writing Elegant and Maintainable Software

This article shares practical programming philosophy and concrete techniques—such as iterative code refinement, modular design, readable naming, avoiding unnecessary language features, and clear control flow—to help developers consistently produce elegant, maintainable, and bug‑free code.

Code RefactoringSoftware Engineeringbest practices
0 likes · 27 min read
Mastering Clean Code: Practical Tips for Writing Elegant and Maintainable Software
21CTO
21CTO
Oct 21, 2015 · Backend Development

Boost PHP Performance: Practical Tips to Speed Up Your Scripts

This guide explains how to improve PHP script performance by upgrading the PHP version, leveraging caching and output buffering, avoiding unnecessary getters/setters and variable copies, and replacing per‑iteration SQL queries with batch operations, all illustrated with clear code examples.

Code RefactoringPHPoptimization
0 likes · 6 min read
Boost PHP Performance: Practical Tips to Speed Up Your Scripts
21CTO
21CTO
Aug 23, 2015 · Fundamentals

Why Engineers Should Be Project Partners, Not Just Code Monkeys

The article reflects on an engineer's experience updating a signature system, highlighting the pitfalls of quick patches, the importance of requirement analysis, resource testing, realistic time estimation, and proactive communication, and advocates for a refactor to improve maintainability and role perception.

Code RefactoringProject ManagementSoftware Engineering
0 likes · 8 min read
Why Engineers Should Be Project Partners, Not Just Code Monkeys
Baidu Tech Salon
Baidu Tech Salon
Jul 23, 2014 · Fundamentals

Guidelines for Refactoring and Cleaning Up Legacy Code

When inheriting tangled legacy code, first decide if you’re responsible and willing to invest, then establish comprehensive tests, use version control, make incremental changes, separate cleaning from bug fixing, remove dead code and comments, avoid mutable shared state, and eliminate unnecessary complexity to improve maintainability.

Code RefactoringLegacy CodeSoftware Engineering
0 likes · 14 min read
Guidelines for Refactoring and Cleaning Up Legacy Code