Tag

Code Reusability

1 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Jun 3, 2025 · Fundamentals

10 Essential Python Design Patterns Every Developer Should Master

Explore ten crucial Python design patterns—from Singleton to Memoization—complete with real-world examples for data pipelines, ETL processes, and scalable systems, helping developers write cleaner, more maintainable, and efficient code across backend and data engineering tasks.

Backend DevelopmentCode ReusabilityPython
0 likes · 9 min read
10 Essential Python Design Patterns Every Developer Should Master
php中文网 Courses
php中文网 Courses
Nov 27, 2024 · Backend Development

Function Object Programming (FOP) in PHP: Compatibility with OOP, Practical Example, and Advantages

Function Object Programming (FOP) in PHP treats functions as first‑class objects, fully compatible with object‑oriented programming, allowing closures and anonymous functions to be used as methods, illustrated by a practical example using array_map, and highlighting cross‑platform support and benefits such as reusability, extensibility, and cleaner code.

Backend DevelopmentCode ReusabilityFunction Objects
0 likes · 3 min read
Function Object Programming (FOP) in PHP: Compatibility with OOP, Practical Example, and Advantages
php中文网 Courses
php中文网 Courses
Oct 14, 2024 · Backend Development

Function Object Programming in PHP: Using Closures for Reusability, Modularity, and Testability

This article explains how PHP's Closure class enables function object programming, detailing creation, invocation, advantages such as code reuse and modularity, and practical examples like higher‑order functions and callbacks, all illustrated with clear code snippets.

Backend DevelopmentClosuresCode Reusability
0 likes · 3 min read
Function Object Programming in PHP: Using Closures for Reusability, Modularity, and Testability
php中文网 Courses
php中文网 Courses
Aug 14, 2024 · Fundamentals

Understanding the Strategy Design Pattern: Principles, Benefits, and PHP Implementations

This article explains the Strategy design pattern, its alignment with SOLID principles such as Single Responsibility and Open/Closed, and demonstrates how it improves code maintainability, reusability, testability, and flexibility through clear PHP examples for payments, sorting, discounts, and shipping.

Code ReusabilityPHPSOLID
0 likes · 11 min read
Understanding the Strategy Design Pattern: Principles, Benefits, and PHP Implementations