Tagged articles
code reuse
98 articles · Page 1 of 1
This article explains software scaffolding as a meta-programming approach that generates boilerplate code, details why principles like reuse, DRY, and open-closed make scaffolding essential, and compares tools like Vue CLI, Maven, Netty, and Spring Boot with a real-world case study of replacing a custom persistence layer with Spring Data.
DropwizardMavenNetty
0 likes · 14 min read

The article explains how every line of code adds constraints and maintenance cost, turning code into technical debt, examines why developers often avoid repaying it, and offers practical strategies such as writing less, reusing existing components, and regularly removing dead code to keep debt under control.
code qualitycode reuserefactoring
0 likes · 13 min read

The article examines Go’s ten‑year commitment to minimalism, explains why generic methods were previously rejected due to complexity and interface issues, details the precise design of Go 1.27’s struct‑only generic methods, and demonstrates with code how they eliminate redundancy while preserving performance.
GoGo 1.27code reuse
0 likes · 14 min read

The article shows how duplicating 20‑40 lines of request‑building code for each low‑code table operation leads to maintenance risk, and demonstrates extracting two generic Java methods that encapsulate invariant logic while parameterising fields, tables, and apps, dramatically reducing code and clarifying responsibilities.
API DesignDRY PrincipleJava
0 likes · 8 min read

The article shows how repetitive CRUD code in Gin can be refactored with Go 1.18 generics by defining a Creatable interface, writing a single generic CreateHandler, using factory functions and type constraints, and registering routes in one line, resulting in zero duplicate code and clearer responsibilities.
Backend DevelopmentCRUDGORM
0 likes · 11 min read


liandkMay 11, 2026 · Fundamentals
This tutorial teaches beginners how to define and invoke Python functions, handle parameters and return values, use default arguments, avoid common pitfalls, and apply functions to lists and dictionaries for effective code reuse, all within a short hands‑on session.
ParametersPythonReturn Values
0 likes · 6 min read


liandkMay 9, 2026 · Frontend Development
This tutorial explains Uniapp’s built‑in UI components, demonstrates how to quickly create and use them, and walks through building a custom goods‑card component with parent‑child communication via props and $emit, enabling reusable code and improved development efficiency.
Component DevelopmentCustom ComponentsParent-Child Communication
0 likes · 8 min read

The article explains how repeated loops for printing numbers 1‑10 cause code duplication and maintenance issues, then teaches Python function syntax, naming rules, and usage through clear examples that encapsulate the logic into reusable functions.
PythonTutorialcode reuse
0 likes · 3 min read

This guide shows how to replace repetitive print or logging calls in automated test suites by creating a reusable @log_test decorator that automatically records start, success, failure, timestamps, and execution time for each test function.
DecoratorLoggingPython
0 likes · 6 min read

The article clarifies that the DRY principle targets hidden knowledge duplication rather than superficial code similarity, explains why over‑abstraction can be harmful, and provides concrete Java examples of both violations and correct applications, while also discussing how to balance DRY with YAGNI.
DRYJavaYAGNI
0 likes · 10 min read

This guide explains PHP's two autoload mechanisms—the legacy __autoload function and the SPL spl_autoload_register approach—showing how to implement each, their parameters, advantages, and practical code examples.
BackendPHPautoload
0 likes · 3 min read

The article explains the advantages of encapsulating device drivers and peripheral code into reusable libraries, outlines best practices for creating clean, platform‑independent libraries, and discusses the trade‑offs such as slight performance overhead and code‑size considerations for embedded systems.
Driver Developmentcode reuselibrary-design
0 likes · 7 min read

This article explains PHP Traits—a reusable code mechanism that lets developers share methods and properties across classes, detailing their definition, usage with the `use` keyword, advantages like avoiding multiple inheritance and reducing redundancy, and important considerations such as method conflicts and priority.
Traitscode reuseobject-oriented programming
0 likes · 5 min read

Using Python's functools.partial, you can pre‑fill common arguments to create concise, readable wrappers that eliminate repetitive parameter passing, improve safety, and streamline code in scenarios ranging from email utilities to Flask handlers and machine‑learning pipelines, while avoiding over‑use pitfalls.
Best PracticesPythoncode reuse
0 likes · 6 min read

This article walks you through Python closures step by step, starting with nested functions, explaining how closures capture outer variables, providing clear code examples, and highlighting practical use cases such as data hiding, factory functions, and decorators to make your code more modular and reusable.
Nested Functionsclosurescode reuse
0 likes · 5 min read

This article explains C++ polymorphism, shows how virtual functions and inheritance break tight coupling, improve code reuse, simplify extensions, and enhance maintainability, and demonstrates its role in common design patterns such as Strategy and Factory Method with clear code examples.
C++OOPPolymorphism
0 likes · 20 min read

This article explains what Python's functools.partial is, shows its basic syntax, outlines its advantages such as reducing code duplication and improving readability, and provides multiple practical code examples—including simple addition, keyword arguments, complex use cases, comparisons with lambda, and real‑world applications in GUI and multithreading contexts.
Pythoncode reusefunctools
0 likes · 7 min read

This article examines common challenges of sharing user interaction logic across multiple Android screens using ViewModel, compares four reuse strategies—including base class inheritance, helper classes, Kotlin class delegation, and interface default functions—and recommends the interface default‑function approach as the most flexible and maintainable solution.
AndroidKotlinMVI
0 likes · 14 min read

This article explains how PHP closures can capture external variables, demonstrates practical examples of wrapping reusable logic in anonymous functions, and shows how to combine closures with object‑oriented programming to improve code reuse and maintainability.
Anonymous FunctionsPHPclosure
0 likes · 5 min read

This article describes how reusable H5 marketing activity pages can be quickly built using five technical solutions, introduces a centralized workspace and monorepo structure with example configurations, and explains the benefits and considerations of central repository management for front‑end development.
H5code reusedevelopment efficiency
0 likes · 4 min read

This article explains Python decorators—how they wrap functions to add behavior without modifying the original code—provides clear syntax examples, a practical timing decorator, a class‑diagram illustration, and shows how the @tool decorator integrates functions into LangChain agents.
DecoratorDesign PatternLangChain
0 likes · 6 min read

This guide explains why encapsulating HTTP request methods in Pytest improves code reuse and maintainability, and provides complete Python examples for GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, and custom requests, plus advanced tips on logging, exception handling, and session management.
API TestingHTTP requestsLogging
0 likes · 12 min read

This article explains PHP functions and modular programming, covering definitions, parameters, scope, anonymous functions, best practices, and real-world examples to help developers write more maintainable and efficient backend code in modern web applications.
Backend DevelopmentBest PracticesModular Programming
0 likes · 6 min read

This article explores how Python decorators can eliminate repetitive code, improve performance, enforce type safety, simplify debugging, and implement rate limiting, offering five custom decorator examples with clear explanations and ready-to-use implementations.
code reusedecoratorsperformance
0 likes · 8 min read

This article provides a comprehensive guide to Python decorators, covering their basic concepts, practical examples including logging, multiple decorators, parameterized decorators, metadata preservation, class decoration, and performance monitoring applications.
Metadata PreservationPerformance MonitoringPython
0 likes · 5 min read

The article argues that classes and functions serve as fundamental structural elements rather than mere tools for reuse, contending that excessive reuse can increase complexity while intentional redundancy simplifies maintenance, and advocating deep modules over shallow ones, illustrated by examples from Supercell, DingTalk, and a trivial shallow‑module code snippet.
DDDDRY Principlecode reuse
0 likes · 8 min read

The article demonstrates how combining Java generics with functional programming—using lambda‑based callbacks and generic pagination utilities—can transform repetitive data‑access code into a concise, reusable structure, while also discussing the benefits, trade‑offs, and potential debugging challenges of this approach.
GenericsJavaPagination
0 likes · 11 min read

The article argues that while code reuse and DRY can boost productivity, over‑abstracted, duplicated logic often inflates maintenance costs, so developers should apply DRY cautiously, favor YAGNI and heuristics like the Rule of Three, and prefer clean‑architecture boundaries to keep complexity manageable.
DRY PrincipleYAGNIcode reuse
0 likes · 12 min read


JD TechSep 23, 2024 · Backend Development
This article outlines the step‑by‑step architectural evolution of JD's advertising platform, describing how the system progressed from a simple, tightly coupled codebase through context‑based designs to a domain‑driven, capability‑oriented architecture that improves extensibility, reuse, stability, and knowledge transfer.
System Designcode reusedomain-driven design
0 likes · 24 min read

This article explains how PHP closures can be used to encapsulate reusable code blocks, demonstrates practical examples including simple closures, passing closures as callbacks, and combining closures with object‑oriented programming to improve code reuse and maintainability.
closurecode reuse
0 likes · 5 min read

This article explains how Laravel developers can use Laravel Macros to encapsulate repetitive data‑handling logic, attach custom methods to core classes such as Collections and Eloquent models, improve code reuse, maintainability, and development efficiency, while also covering best practices and potential pitfalls.
LaravelService Providercode reuse
0 likes · 10 min read

This article explains PHP traits as a code‑reuse mechanism, compares them with classes and multiple inheritance, demonstrates their syntax and conflict‑resolution operators, and offers advanced usage examples and best‑practice guidelines for backend development.
OOPTraitscode reuse
0 likes · 11 min read

This article introduces Python's functools.partial, explaining how fixing certain function arguments creates new callable functions, and demonstrates ten practical examples ranging from mathematical calculations and file handling to HTTP request wrapping, decorator parameterization, multiprocessing, GUI event binding, logging, data validation, and configuration parsing.
Pythoncode reusefunctools
0 likes · 7 min read

The project consolidates three separate detail‑page implementations into a single, reusable framework that separates business, component, and framework layers, employs dependency‑injection and scoped lifecycles to support diverse scenarios while ensuring stability through comprehensive logging, monitoring, and staged gray‑release testing.
architecturecode reusedependency-injection
0 likes · 11 min read

This guide explains how to use PHP Traits within the Symfony framework to encapsulate reusable functionality, demonstrating the creation of a LoggerTrait, its integration into a UserService, and the injection of that service into a controller for clean, modular, and DRY code.
Backend DevelopmentPHPTraits
0 likes · 5 min read

This article explains Python decorators, covering their definition as higher‑order functions, basic syntax, practical examples such as logging, authorization, caching, and nested decorators, and demonstrates how they enhance code modularity, readability, and reusability without altering original functions.
Cachingauthorizationcode reuse
0 likes · 5 min read

This article explains what Vue 3 custom hooks (Composition API) are, why they are useful for logic reuse, shows how to create both business‑specific and highly reusable hooks with practical code examples, and lists popular open‑source hook libraries for developers.
Composition APICustom HooksVue3
0 likes · 8 min read

This guide explains how to use Laravel macros and Mixins to extend the Str and Arr helper classes, providing reusable methods such as fullName, initials, camelToSnake, snakeToCamel, and filterNulls, and demonstrates registration via AppServiceProvider for cleaner, maintainable backend code.
BackendLaravelPHP
0 likes · 8 min read

This article explains how inheritance in object‑oriented programming can simplify PHP code by refactoring duplicated product and book classes into a reusable base class, demonstrating improved code reuse, maintainability, and polymorphic behavior through clear examples and explanations.
OOPPHPcode reuse
0 likes · 5 min read

The article examines the role of independent (free) functions in object‑oriented programming, outlining how they can reduce complexity, improve reuse, and promote modularity while warning against overuse, namespace pollution, and the need to balance procedural and OOP approaches.
OOPcode reuseindependent functions
0 likes · 5 min read

This article explains the core concept of inheritance in object‑oriented programming using PHP, illustrating how child classes extend parent classes, inherit properties and methods, avoid code duplication, and can override functionality, with complete code examples for workers and tax calculations.
Backend DevelopmentOOPPHP
0 likes · 13 min read

This article explains how PHP traits enable code reuse across multiple classes, illustrating the problem of duplicated methods in Person‑derived classes like Student, Guardian, and Teacher, and showing step‑by‑step refactoring to eliminate redundancy while maintaining clear inheritance structures.
PHPTraitscode reuse
0 likes · 6 min read

This article explains Java generics, covering type parameters, generic classes and interfaces, bounded types, wildcards, and generic methods, while highlighting benefits such as type safety, code reuse, readability, and performance, and provides multiple code examples demonstrating generic usage across different data types.
GenericsJavacode reuse
0 likes · 15 min read

This article explains PHP Traits, covering their concept, definition, usage examples, advantages such as avoiding multiple inheritance and reducing code duplication, as well as important considerations like method conflicts and precedence, providing a comprehensive guide for backend developers.
Backend DevelopmentOOPPHP
0 likes · 5 min read

This article provides a comprehensive explanation of the Composite Reuse Principle (CRP), covering its definition, background, advantages over inheritance, UML representation, practical Java code examples, and guidelines for choosing between composition and inheritance in object‑oriented design.
Composite Reuse PrincipleComposition Over InheritanceJava
0 likes · 11 min read

This article describes the design, implementation, and benefits of a low‑intrusion micro‑module framework that enables cross‑stack code reuse, dynamic loading, fast deployment, and robust monitoring for large‑scale front‑end applications, while addressing challenges such as React version compatibility and incremental packaging.
Reactcode reusefrontend
0 likes · 18 min read

This article explains how PHP traits enable code reuse by allowing reusable method blocks to be incorporated into classes, covering trait definition, simple examples, method priority rules, conflict resolution with multiple traits, and trait composition for flexible functionality sharing.
OOPPHPTraits
0 likes · 5 min read

This article explains how Python decorators can abstract common functionalities such as logging, authentication, and performance monitoring in API automation testing, providing code examples, recommended use‑cases, and a complete demonstration that integrates logging and MySQL data storage to improve test efficiency and maintainability.
DecoratorLoggingMySQL
0 likes · 7 min read

This article explains how to improve code readability, reusability, and extensibility by adopting a componentized workflow architecture, detailing three‑layer structures, node abstraction, parameter mapping, and practical Java/Spring XML examples for scalable backend systems.
BackendComponent ArchitectureJava
0 likes · 13 min read

This article presents a comprehensive overview of component-based development at ZhaiZhai, detailing the background, current challenges, the component model, classification, design, deployment process, performance gains, supporting ecosystem, and concluding insights, all supported by references and practical examples.
BFFComponent-based Developmentbackend architecture
0 likes · 29 min read

This article analyzes the growing need for a unified Unity framework at AutoHome, evaluates existing open‑source Unity architectures, proposes a four‑layer design (logic, middle, base, data), demonstrates a native‑message example, and quantifies quality, efficiency, performance, and reuse gains.
Open Source FrameworksUnityarchitecture
0 likes · 12 min read

The Template Method pattern defines an algorithm’s fixed skeleton in an abstract class while delegating variable steps to subclasses via abstract or hook methods, enabling reusable, maintainable code through a final template method, concrete implementations, and practical examples such as online shopping and JDK’s AbstractList, with benefits of encapsulation and extensibility but potential complexity from inheritance.
Design PatternJavaTemplate Method
0 likes · 10 min read

To eliminate duplicated checkout logic and cumbersome npm publishing, the team migrated multiple React Native apps into a Yarn‑workspace monorepo, configuring Metro watch folders, hoisting dependencies, and CI linting, while using git‑subtree for integration, achieving easier code reuse, debugging, and dependency management despite RN‑specific build complexities.
Dependency ManagementMetroReact Native
0 likes · 15 min read

The article examines why programmers frequently copy and paste code, argues that responsible reuse of open‑source snippets can boost productivity while respecting intellectual property, and emphasizes that the key is understanding what to copy, how to integrate it, and ensuring it solves real project problems.
Productivitycode reuseprogramming ethics
0 likes · 5 min read

Retool’s 2022 survey of 600 engineers reveals that open‑source code is now essential, developers copy hundreds of lines weekly, and major frustrations include testing, slow SQL, and lengthy code‑review delays, leaving engineers with only about ten hours of deep work each week.
Developer Productivitycode reuseengineering survey
0 likes · 5 min read

This tutorial explains how to design and structure Django templates using a base.html layout, block inheritance, and reusable includes to keep the UI organized, eliminate duplicated code, and make future maintenance of a Django web project much easier.
Backend DevelopmentDjangoHTML
0 likes · 27 min read

The article explains how higher‑order functions such as every, map, and filter can replace repetitive loops over arrays or lists, reducing code duplication, improving readability, and lowering the chance of bugs while warning against over‑using functional style when it harms clarity.
JavaScriptLoopscode reuse
0 likes · 3 min read

This article details Alibaba’s experience building and deploying Flutter‑Web pages for the ICBU seller platform, covering version selection, code reuse, build optimization, deployment workflow, debugging, native JS integration, performance tuning, and compatibility fixes across various H5 containers.
FlutterWebcode reuse
0 likes · 25 min read

React2X, launched by Meituan Waimai’s technology team in 2019, is a container‑agnostic, multi‑terminal framework that unifies development across Webview, Mini Programs, MRN, Flutter, Mach and PC browsers, achieving over 90% code reuse and saving thousands of person‑days while simplifying architecture and enhancing cross‑platform efficiency.
MeituanReact2XWaimai
0 likes · 22 min read

The article examines a real‑world scenario where a developer tried to reuse existing stored procedures to merely check the presence of Job, Certification, and Disclosure records, discusses the pitfalls of such an approach, and explains why storing this logic in T‑SQL is often fragile and hard to maintain.
SQLcode reusedatabase
0 likes · 6 min read

The article recounts a recent project where reusing existing stored procedures to check a user's Job, Certification, and Disclosure data led to maintenance headaches, prompting a discussion of alternative approaches, their drawbacks, and why duplicating the query sometimes becomes the only viable solution.
C++SQLcode reuse
0 likes · 6 min read

This article examines the pitfalls of reusing existing SQL stored procedures to determine the presence of Job, Certification, and Disclosure data for a user, illustrating maintenance challenges with temporary tables, output parameters, and code‑reuse limitations through concrete code examples.
BackendSQLcode reuse
0 likes · 5 min read

Meituan Homestay built a custom cross‑platform reuse framework converting React Native code to mini‑programs, achieving up to 90% code reuse, reducing bundle size, improving performance, and establishing strict processes for quality, thus cutting development effort and enhancing productivity across iOS, Android, and mini‑programs.
Frontend ArchitectureReact Nativecode reuse
0 likes · 35 min read

The article examines why truly reusable code is hard to achieve by contrasting functional programming in F# with object‑oriented programming in C# through a FizzBuzz implementation, highlighting differences in fragmentation, coupling, and flexibility that affect component reuse.
C#F*code reuse
0 likes · 11 min read

This article explains PHP traits—a code‑reuse mechanism for single‑inheritance languages—covering their definition, basic syntax, how to use them with the use keyword, resolving property and method conflicts, visibility adjustments, and abstract method support, all illustrated with clear examples.
PHPTraitscode reuse
0 likes · 7 min read

This article explains what Python decorators are, why they are useful for extending functions without modifying original code, and provides step‑by‑step examples—including simple, parameterized, and custom decorators—along with practical usage patterns and tips for preserving function metadata.
code reusedecoratorsfunctools
0 likes · 6 min read

A developer recounts how blindly copying code snippets from sites like CSDN and StackOverflow led to bugs, explains the hidden risks of reusing code without understanding, and offers practical advice on testing and comprehending third‑party code to avoid security and functionality issues.
Best PracticesCSDNSecurity Vulnerabilities
0 likes · 7 min read

The article details vivo Mall’s shift to a multi‑end unified frontend architecture using uni‑app, highlighting how a single technical stack reduces development and maintenance costs, accelerates H5 feature migration to mini‑programs, and introduces innovations such as code conversion tools, conditional compilation, advanced Vuex namespace handling, and component‑page decoupling via @vivo/smartx to meet current and future endpoint demands.
Frontend ArchitectureVuexcode reuse
0 likes · 12 min read

The article examines the difficulties of reusing SQL Server stored procedures to obtain simple boolean checks, illustrates a concrete example of counting jobs with temporary tables, discusses maintenance pitfalls, and concludes that business logic is often better implemented outside stored procedures.
SQLT-SQLcode reuse
0 likes · 6 min read

This article explains how to employ custom Java annotations together with reflection to mask sensitive fields in logs, define flexible desensitization rules, and dramatically reduce repetitive code when building fixed‑length, signed bank API requests, improving maintainability and extensibility of backend services.
AnnotationsBackend DevelopmentBank API
0 likes · 21 min read

This article explains the concept of PHP Traits, how they overcome single inheritance limitations, provides clear code examples of defining and using Traits in plain PHP, and demonstrates practical integration of Traits within Laravel applications for reusable functionality.
BackendOOPTraits
0 likes · 4 min read

An engineer recounts a real‑world challenge of reusing existing SQL stored procedures to check a user's job, certification, and disclosure status, explores why inserting results into temporary tables can cause maintenance headaches, and concludes that moving business logic out of the database often yields cleaner, more maintainable code.
SQLcode reusedatabase design
0 likes · 6 min read

The article examines the drawbacks of reusing stored procedures for business logic, illustrates maintenance challenges with example code, and argues that moving simple existence checks to the database while keeping complex logic in application code yields better readability, extensibility, and performance.
SQLT-SQLcode reuse
0 likes · 6 min read

The article discusses a real‑world scenario where a developer tried to reuse existing stored procedures to determine the presence of Job, Certification, and Disclosure records, explores various T‑SQL techniques such as temporary tables and output parameters, and concludes that stored procedures are often unsuitable for simple boolean logic due to maintenance and reuse challenges.
C++SQLcode reuse
0 likes · 6 min read

This article explains the concept of Python decorators, demonstrates how they can replace repetitive input‑type checks in multiple string‑manipulation functions, and shows both the explicit decorator implementation and the concise @ syntax with clear code examples.
Pythoncode reusedecorators
0 likes · 7 min read

This article describes how Ctrip's Play team tackled fragmented front‑end stacks, unified product requirements across PC, H5, Hybrid and React Native, and implemented a component‑driven, multi‑repo architecture that enables single‑source code to be built, tested, and released for multiple platforms simultaneously.
Component ArchitectureReactReact Native
0 likes · 11 min read

The article outlines essential automation testing practices for beginners, covering test design maintenance, false‑positive avoidance, code reusability, realistic automation expectations, big‑picture planning, exploratory testing, UI change handling, and provides curated technical resources.
Automation Testingcode reuseexploratory testing
0 likes · 7 min read

The article explains the challenges of growing codebases in frontend projects and presents componentization as a systematic approach to achieve modular, reusable, and low‑coupled code, improving development efficiency, collaboration, and maintainability for long‑term, multi‑team applications.
Best PracticesComponentizationcode reuse
0 likes · 9 min read

This article presents a reusable Java verification class that centralizes common validation logic for automated testing, handling JSON responses, code checks, numeric and boolean assertions, array detection, and regex matching, while also fixing hidden bugs and extending array validation capabilities.
Automation TestingJSONJava
0 likes · 7 min read

The article explains how Serverless brings cloud‑native back‑end capabilities to front‑end developers, outlining its advantages, architectural concepts, code examples, and the practical challenges they must consider.
BaaSDevOpsFaaS
0 likes · 19 min read

This article recounts the evolution of the Class Optimization Master Android project—from a dual‑end, no‑design prototype to an MVP‑based implementation and finally a modularized architecture—highlighting pain points, solutions, and practical steps for improving code boundaries, build times, and reusable modules.
AndroidMVParchitecture
0 likes · 12 min read

This article explains why learning Python decorators is essential, covering their impact on code readability, logging, validation, framework integration, reuse, and career advancement, while providing clear examples and practical guidance for developers of all levels.
FlaskPythonRetry
0 likes · 9 min read

Meituan Waimai Android unified the divergent codebases of the standalone Waimai app and the Waimai channel in the Meituan app by introducing a layered architecture—base services, components, business modules, and host—combined with Gradle flavor and a fine‑grained “pins” project, achieving 88 % code reuse, over 70 % productivity improvement, and paving the way for broader platform reuse.
Androidcode reuseflavor
0 likes · 17 min read

Meituan Waimai iOS achieved an 84 % code‑reuse rate across its standalone app, Meituan channel, and Dianping channel by progressively componentizing business logic into layered CocoaPods, flattening dependencies, using binary pods for fast builds, and employing a robust toolchain and coordination among PM, RD, and QA.
CocoaPodsComponentizationContinuous Integration
0 likes · 22 min read

FinTech firms should replace monolithic systems with microservices because the modular style delivers greater agility, maintainability, scalability, availability, and code reuse—crucial for rapid market demands and regulatory change—while acknowledging migration costs, monitoring complexity, and the need for phased refactoring of legacy assets.
code reusefintechmicroservices
0 likes · 13 min read

This article explains how design patterns, frameworks, software architecture, and platforms each contribute to different levels of code reuse—from class-level patterns to system-wide architectures—while also detailing key design principles, framework basics, and Java platform classifications for developers seeking deeper engineering insight.
Frameworkscode reusedesign patterns
0 likes · 13 min read

This article explains why learning to write Python decorators is essential, covering benefits such as improved logging, validation, framework integration, code reuse, retry logic, and career advancement, while providing clear examples and practical code snippets.
FlaskLoggingcode reuse
0 likes · 8 min read

Facing duplicated codebases as Meituan Waimai expanded from a single app to multiple channels, the team iteratively tried split libraries, componentization, and MVP layers before settling on a three‑layer platform architecture—platform, business, and host—isolated via Gradle projects, product flavors, and tooling to achieve sustainable, cross‑product code reuse.
AndroidGradlecode reuse
0 likes · 25 min read

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

This article introduces Python decorators, explains their underlying principles, demonstrates practical examples such as logging and retry mechanisms, and shows how to combine multiple decorators and class‑based decorators to create reusable, non‑intrusive enhancements for functions and methods.
DecoratorPythonRetry
0 likes · 8 min read

This article explores how applying inheritance concepts to HTML structure can reduce duplicated code, simplify maintenance, and improve front‑end development efficiency by extracting common elements into a base template and using build‑time tools to generate page‑specific pages.
code reusefrontendhtml inheritance
0 likes · 6 min read

Meituan Dianping’s iOS development seminar presented expert insights on performance monitoring with Hertz, explored Swift monads through source‑code analysis, tackled dynamic‑library implementation hurdles, and shared cross‑platform code‑reuse strategies, offering practical solutions for functional programming and large‑scale mobile app optimization.
Dynamic LibrariesMonad ConceptSwift Programming
0 likes · 3 min read

This article outlines the rapid growth of Baidu Takeaway's operations backend, analyzes the limitations of the FIS‑based modular approach, describes the transition to React‑Redux componentization, and presents a third‑generation, model‑driven component sharing platform designed to reduce repetitive development and improve developer happiness.
ComponentizationReactUI
0 likes · 12 min read

This article explains what currying is, its advantages, and provides a generic JavaScript currying function, demonstrating how to transform multi‑parameter functions into single‑parameter chains to improve code reuse, enable lazy evaluation, and enhance overall code quality in functional programming.
JavaScriptcode reusefunctional programming
0 likes · 10 min read

This article explores how applying inheritance concepts to HTML structure can reduce duplicated code, streamline front‑end development across the five stages, and improve product quality and efficiency by using a base template and build‑time processing to automate reuse.
code reusedevelopment efficiencyhtml inheritance
0 likes · 6 min read


21CTOMay 8, 2016 · Backend Development
This article explains PHP Traits—introduced in PHP 5.4—as a fine‑grained code‑reuse mechanism, illustrates their definition, shows practical examples of extracting reusable methods into traits, compares trait usage with inheritance, and offers tips for effective trait design.
Backend DevelopmentPHPTraits
0 likes · 7 min read


21CTOOct 18, 2015 · Fundamentals
Copy‑pasting code from Stack Overflow may save time, but retyping each snippet forces deeper understanding, encourages critical evaluation of solutions, and leads to cleaner, more maintainable code, making you a better developer rather than a mere “Stack Overflow‑style” coder.
Learningcode reusecoding practice
0 likes · 5 min read

The article reflects on fifteen years of Linux experience, highlighting how open‑source culture, incremental ideas, developer‑driven needs, code reuse, and a collaborative attitude have shaped Linux’s success and offer broader lessons for software development and project management.
Community ManagementLinuxcode reuse
0 likes · 9 min read
