Tagged articles
100 articles
Page 1 of 1
DeepHub IMBA
DeepHub IMBA
May 13, 2026 · Artificial Intelligence

5 Python Decorators to Stabilize Your Machine Learning Pipeline

The article presents five practical Python decorators—Concurrency Limiter, Structured Logger, Feature Injector, Deterministic Seed Setter, and Dev‑Mode Fallback—explaining their implementation, why they matter for AI workloads, and how they keep ML pipelines maintainable, reproducible, and resilient under load.

AI PipelineDecoratorPython
0 likes · 9 min read
5 Python Decorators to Stabilize Your Machine Learning Pipeline
Test Development Learning Exchange
Test Development Learning Exchange
Apr 16, 2026 · Backend Development

Simplify API Testing with a Python @extract_value Decorator

Learn how to create and use a Python @extract_value decorator that automatically pulls specific fields from API responses, stores them in a global context, and lets subsequent test steps access these values without manual extraction, complete with step-by-step code examples and common pitfalls.

API testingAutomationCode Example
0 likes · 8 min read
Simplify API Testing with a Python @extract_value Decorator
Test Development Learning Exchange
Test Development Learning Exchange
Jan 28, 2026 · Information Security

One-Line Python Decorator to Auto‑Encrypt, Sign, and Secure API Requests

Learn how to replace repetitive manual signing, encryption, timestamp, and nonce handling in API tests with a single Python @secure_request decorator that automatically encrypts specified fields, adds security parameters, generates signatures, and sends the request, improving maintainability and reducing errors.

API SecurityDecoratorencryption
0 likes · 9 min read
One-Line Python Decorator to Auto‑Encrypt, Sign, and Secure API Requests
Code Wrench
Code Wrench
Sep 28, 2025 · Backend Development

Mastering Higher-Order Functions in Go: Decorators, Strategies, and Pipelines

This article explains Go's higher‑order functions, covering their definition, common use‑cases such as decorators, strategy and pipeline patterns, practical implementation details, generic support, and tips for writing clean, performant functional code in real‑world projects.

DecoratorHigher-Order FunctionsStrategy Pattern
0 likes · 7 min read
Mastering Higher-Order Functions in Go: Decorators, Strategies, and Pipelines
Python Programming Learning Circle
Python Programming Learning Circle
Sep 23, 2025 · Fundamentals

Unlock Python Power: Master Decorators in Minutes

This article explains Python decorators—from basic analogies and the underlying concepts of higher‑order functions and closures to practical examples like timing and logging decorators—showing how to enhance functions dynamically without altering their source code while preserving metadata with functools.wraps.

Code ExampleDecoratorHigher-order function
0 likes · 8 min read
Unlock Python Power: Master Decorators in Minutes
Test Development Learning Exchange
Test Development Learning Exchange
Jun 30, 2025 · Backend Development

Master Decorator Factories: Logging, Retry, Permissions & More for API Testing

This article explores how decorator factories can enhance API automation testing by providing reusable solutions for logging, automatic retries, permission checks, performance monitoring, data-driven testing, and environment switching, complete with Python code examples and usage demonstrations.

API testingAutomationBackend Development
0 likes · 8 min read
Master Decorator Factories: Logging, Retry, Permissions & More for API Testing
Test Development Learning Exchange
Test Development Learning Exchange
Jun 28, 2025 · Fundamentals

Master Python Decorators: 10 Advanced Techniques Explained

This article introduces Python decorators, explains their core concept, and walks through ten advanced usage patterns—including parameterized, stacked, class‑based, stateful, memoization, conditional, error‑handling, factory, and method decorators—complete with clear code examples and expected outputs.

AdvancedDecoratorSoftware Engineering
0 likes · 7 min read
Master Python Decorators: 10 Advanced Techniques Explained
Architecture Digest
Architecture Digest
May 30, 2025 · Backend Development

MapStruct for Java Bean Mapping: Features, Expressions, QualifiedByName, NullValueMappingStrategy, and Decorator

MapStruct is a compile‑time Java annotation processor that generates type‑safe mapping code, offering concise, high‑performance conversions with features such as expressions, qualifiedByName methods, null‑value strategies, and decorators, illustrated through detailed code examples and usage guidelines.

DecoratorJavaNullValueMappingStrategy
0 likes · 7 min read
MapStruct for Java Bean Mapping: Features, Expressions, QualifiedByName, NullValueMappingStrategy, and Decorator
Code Ape Tech Column
Code Ape Tech Column
May 21, 2025 · Backend Development

Advanced MapStruct Usage: expression, qualifiedByName, nullValueMappingStrategy, and Decorator

This article introduces MapStruct, a compile‑time Java bean‑mapping framework, and demonstrates advanced features such as expression‑based mappings, qualifiedByName for custom conversions, nullValueMappingStrategy for handling nulls, and the use of Decorator classes to apply global post‑processing logic.

Backend DevelopmentCode GenerationDecorator
0 likes · 6 min read
Advanced MapStruct Usage: expression, qualifiedByName, nullValueMappingStrategy, and Decorator
php Courses
php Courses
Apr 8, 2025 · Fundamentals

Understanding Python Closures and Decorators

This article explains Python closures and decorators, detailing their definitions, formation conditions, practical examples, common use cases, and how decorators rely on closures, while providing code snippets for counters, timing, and repeatable execution.

DecoratorFunction WrappingHigher-Order Functions
0 likes · 14 min read
Understanding Python Closures and Decorators
Python Programming Learning Circle
Python Programming Learning Circle
Mar 5, 2025 · Fundamentals

Implementing a Python Singleton with Decorators

This article explains the singleton design pattern in Python, demonstrates how to implement it using a decorator with a wrapper class, provides step‑by‑step code examples, discusses its advantages, appropriate use cases, and cautions against overuse.

DecoratorPythonSingleton
0 likes · 7 min read
Implementing a Python Singleton with Decorators
MaGe Linux Operations
MaGe Linux Operations
Jan 11, 2025 · Fundamentals

Master Python Iterators and Generators: From Basics to Advanced Usage

This article explains Python iterators, iterables, and generators, detailing their definitions, core methods, advantages, disadvantages, and practical code examples—including iterator objects, generator creation via comprehensions and the yield keyword, decorator integration, and mutable data handling—providing a comprehensive guide for developers.

DecoratorIterableIterator
0 likes · 14 min read
Master Python Iterators and Generators: From Basics to Advanced Usage
Su San Talks Tech
Su San Talks Tech
Dec 11, 2024 · Fundamentals

8 Essential Design Patterns Every Java Developer Should Master

This article introduces eight core design patterns—Singleton, Factory, Strategy, Proxy, Observer, Decorator, Template Method, and Builder—explaining their concepts, providing Java code examples, and showing typical JDK and Spring framework usages to help developers write cleaner, more maintainable code.

BuilderDecoratorDesign Patterns
0 likes · 12 min read
8 Essential Design Patterns Every Java Developer Should Master
Python Programming Learning Circle
Python Programming Learning Circle
Nov 5, 2024 · Fundamentals

Implementing the Singleton Pattern in Python: Multiple Approaches and Thread Safety

This article explains the Singleton design pattern in Python, covering various implementation methods—including modules, decorators, classic classes, __new__ method, and metaclasses—while demonstrating thread‑safety concerns and solutions with locking, and provides complete code examples for each approach.

DecoratorMetaclassSingleton
0 likes · 10 min read
Implementing the Singleton Pattern in Python: Multiple Approaches and Thread Safety
Test Development Learning Exchange
Test Development Learning Exchange
Nov 2, 2024 · Fundamentals

Understanding Python Decorators: Concepts, Examples, and Practical Uses

This article explains Python decorators, covering their definition as higher‑order functions, essential concepts like closures, step‑by‑step examples of basic, parameterized, class‑based, and stateful decorators, as well as practical uses such as logging and caching, all illustrated with clear code snippets.

DecoratorHigher-order functioncaching
0 likes · 6 min read
Understanding Python Decorators: Concepts, Examples, and Practical Uses
Architecture Digest
Architecture Digest
Sep 22, 2024 · Backend Development

Advanced MapStruct Usage: Expressions, qualifiedByName, NullValueMappingStrategy, and Decorator

This article introduces MapStruct, a compile‑time Java bean‑mapping framework, and demonstrates advanced features such as expression mapping, qualifiedByName for custom conversions, null‑value handling strategies, and the use of decorators to extend mapper behavior, complete with code examples.

Backend DevelopmentCode GenerationDecorator
0 likes · 7 min read
Advanced MapStruct Usage: Expressions, qualifiedByName, NullValueMappingStrategy, and Decorator
Tencent Cloud Developer
Tencent Cloud Developer
Aug 30, 2024 · Fundamentals

Overview of 10 Classic Software Design Patterns with Go Examples

The article presents ten classic software design patterns—Singleton, Factory, Observer, Decorator, Strategy, Adapter, Proxy, Command, Composite, and Iterator—explaining each pattern’s features, advantages, disadvantages, typical applications, and providing concrete Go code examples to illustrate their implementation.

DecoratorFactoryGo
0 likes · 36 min read
Overview of 10 Classic Software Design Patterns with Go Examples
Test Development Learning Exchange
Test Development Learning Exchange
Aug 28, 2024 · Fundamentals

Python Decorators for API Testing: Retry, Timeout, Logging, Caching, Validation, and More

This article introduces Python decorators—such as retry, timeout, logging, caching, response validation, parameterization, exception handling, performance monitoring, permission checking, and composite usage—and provides complete code examples showing how they simplify and strengthen automated API testing.

DecoratorRetryTimeout
0 likes · 10 min read
Python Decorators for API Testing: Retry, Timeout, Logging, Caching, Validation, and More
Test Development Learning Exchange
Test Development Learning Exchange
Aug 17, 2024 · Backend Development

Python Decorator Examples for API Testing

This article presents ten practical Python decorator patterns—such as logging, performance measurement, exception handling, retry, status‑code validation, parameter checking, rate limiting, data‑driven testing, environment configuration, and concurrent execution—each illustrated with clear use‑case descriptions and complete code snippets for API testing.

DecoratorError HandlingRetry
0 likes · 9 min read
Python Decorator Examples for API Testing
Test Development Learning Exchange
Test Development Learning Exchange
Jul 8, 2024 · Backend Development

Understanding JSONPath Decorator in Python

This article explains how to create and use a Python JSONPath decorator to simplify extracting data from JSON, covering installation, basic and advanced use cases such as list handling, filtering, aggregation, asynchronous processing, API parsing, validation, dynamic path generation, and nested data extraction, with full code examples.

AsyncDecoratorJsonPath
0 likes · 6 min read
Understanding JSONPath Decorator in Python
Test Development Learning Exchange
Test Development Learning Exchange
Apr 13, 2024 · Fundamentals

Advanced Python Techniques: 10 In-Depth Code Examples

This article presents ten advanced Python techniques—including list comprehensions, lambda functions, decorators, context managers, generators, metaclasses, asyncio coroutines, enums, slicing, and exception handling—each illustrated with detailed code examples to help readers deepen their mastery of Python programming.

AdvancedDecoratorLambda
0 likes · 6 min read
Advanced Python Techniques: 10 In-Depth Code Examples
21CTO
21CTO
Mar 26, 2024 · Frontend Development

5 Exciting JavaScript Features Set to Transform 2024

This article explores five highly anticipated JavaScript proposals—including the Temporal API, Pipe Operator, Record & Tuple, RegExp v flag, and Decorators—detailing their motivations, core syntax, and example code as they move toward inclusion in the upcoming ECMAScript release.

DecoratorECMAScriptJavaScript
0 likes · 15 min read
5 Exciting JavaScript Features Set to Transform 2024
Test Development Learning Exchange
Test Development Learning Exchange
Feb 18, 2024 · Backend Development

Dynamic Environment Switching in Test Frameworks Using Python Decorators

The article explains the importance of dynamic environment switching in testing frameworks for multi‑environment validation, resource isolation, debugging, and CI/CD, and provides Python unittest decorator examples along with best‑practice considerations such as scope, thread safety, resource management, and execution order.

DecoratorPythonci/cd
0 likes · 9 min read
Dynamic Environment Switching in Test Frameworks Using Python Decorators
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 31, 2023 · Fundamentals

JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More

This article introduces JavaScript design patterns—covering creational, structural, and behavioral categories—and provides clear explanations and complete code examples for patterns such as Factory Method, Abstract Factory, Singleton, Builder, Prototype, Adapter, Decorator, Proxy, Facade, Bridge, Composite, Flyweight, Strategy, Template Method, Observer, Iterator, Chain of Responsibility, Command, Memento, State, Visitor, Mediator and Interpreter, helping developers write cleaner, more maintainable code.

AdapterBuilderDecorator
0 likes · 35 min read
JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More
Test Development Learning Exchange
Test Development Learning Exchange
Jun 7, 2023 · Backend Development

Using Python Decorators for API Automation Testing

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.

AutomationDecoratorPython
0 likes · 7 min read
Using Python Decorators for API Automation Testing
Python Programming Learning Circle
Python Programming Learning Circle
May 17, 2023 · Fundamentals

Understanding Python Decorators: Concepts, Usage, and Advanced Examples

This article explains the fundamentals of Python decorators, illustrating their purpose, underlying mechanics, and practical applications through numerous code examples ranging from simple hello‑world wrappers to class‑based, parameterized, and asynchronous decorators, while also discussing side‑effects and best‑practice solutions.

DecoratorHigher-order function
0 likes · 20 min read
Understanding Python Decorators: Concepts, Usage, and Advanced Examples
MaGe Linux Operations
MaGe Linux Operations
Dec 14, 2022 · Fundamentals

Master Python’s @property: Turn Methods into Read‑Only Attributes

Learn how Python’s @property decorator transforms methods into read‑only attributes, enabling attribute‑style access, preventing unintended modifications, and illustrating proper usage with code examples that show correct and incorrect calls, common pitfalls, and best practices for encapsulating data.

DecoratorEncapsulationProperty
0 likes · 4 min read
Master Python’s @property: Turn Methods into Read‑Only Attributes
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Nov 23, 2022 · Backend Development

Redesigning the Internationalization Translation Platform Document Parsing SDK: Architecture, Layers, and Implementation

This article details the motivation, benefits, and technical design of the Document Parsing 2.0 SDK for the internationalization translation platform, describing a three‑layer architecture, the use of Adapter, Decorator, and Proxy patterns, TypeScript implementations, and a high‑performance batch update mechanism.

Adapter PatternDecoratorNode.js
0 likes · 13 min read
Redesigning the Internationalization Translation Platform Document Parsing SDK: Architecture, Layers, and Implementation
ByteFE
ByteFE
Nov 23, 2022 · Backend Development

Redesign of the Internationalization Translation Platform Document Parsing SDK to a Three‑Layer Architecture

This article details the motivation, benefits, and technical implementation of refactoring the document parsing SDK from a monolithic design to a three‑layer architecture using Adapter, Decorator, and Proxy patterns, reducing code size by over 70% and improving extensibility for multiple document formats.

Adapter PatternBackend DevelopmentDecorator
0 likes · 14 min read
Redesign of the Internationalization Translation Platform Document Parsing SDK to a Three‑Layer Architecture
Python Programming Learning Circle
Python Programming Learning Circle
Aug 10, 2022 · Fundamentals

Implementing Thread‑Safe Singleton Pattern in Python

This article explains the purpose of the Singleton design pattern, demonstrates multiple Python implementations—including module‑level singletons, decorators, class‑based approaches, __new__ method, and metaclass techniques—and shows how to add thread‑safety with locks to ensure only one instance exists across concurrent executions.

DecoratorLockMetaclass
0 likes · 10 min read
Implementing Thread‑Safe Singleton Pattern in Python
MaGe Linux Operations
MaGe Linux Operations
May 5, 2022 · Fundamentals

Master Python’s with Statement: Simplify Resource Management

This article explains the purpose and mechanics of Python's with statement, showing how it leverages context managers to replace verbose try‑finally blocks, and demonstrates both class‑based and decorator‑based implementations with clear code examples.

Code ExampleDecoratorPython
0 likes · 6 min read
Master Python’s with Statement: Simplify Resource Management
Python Programming Learning Circle
Python Programming Learning Circle
May 4, 2022 · Fundamentals

Common Python Interview Questions and Answers

This article provides concise explanations of ten fundamental Python topics, covering differences between lists and tuples, arrays and lists, append versus extend, equality operators, shallow and deep copying, loop control statements, variable scopes, range versus xrange, decorators, and the concepts of iterators and generators.

ArrayDecoratorIterator
0 likes · 7 min read
Common Python Interview Questions and Answers
政采云技术
政采云技术
Mar 8, 2022 · Frontend Development

Understanding and Using Decorators in JavaScript (Frontend Development)

This article introduces JavaScript decorators, explains their relation to the decorator design pattern, shows how to configure Babel for decorator support, demonstrates class and method decorator syntax with detailed code examples, and discusses practical usage scenarios and execution order in modern front‑end projects.

ClassDecoratorbabel
0 likes · 13 min read
Understanding and Using Decorators in JavaScript (Frontend Development)
Python Programming Learning Circle
Python Programming Learning Circle
Jan 7, 2022 · Fundamentals

Introduction to Python Decorators: Concepts, Principles, and Practical Examples

Python decorators are a powerful syntactic feature that allow functions, methods, or classes to be wrapped and extended, enabling reusable code for logging, caching, authentication, and more, with detailed explanations of their underlying principles, manual implementations, syntax sugar, and usage with classes and built‑in decorators.

DecoratorPythonTutorial
0 likes · 20 min read
Introduction to Python Decorators: Concepts, Principles, and Practical Examples
Top Architect
Top Architect
Dec 11, 2021 · Backend Development

Proxy vs. Decorator Patterns and DIY Spring AOP Implementation in Java

This article explains the proxy and decorator design patterns using a coffee analogy, provides complete Java code examples for static and dynamic proxies, discusses their differences, and shows how to implement a Spring‑like AOP mechanism with JDK InvocationHandler and cglib, while also warning about their limitations.

DecoratorDynamic ProxyJava
0 likes · 11 min read
Proxy vs. Decorator Patterns and DIY Spring AOP Implementation in Java
Byte Quality Assurance Team
Byte Quality Assurance Team
Sep 1, 2021 · Backend Development

Using Polling Instead of Sleep in Python for Asynchronous Tasks

The article explains why fixed sleep calls are inefficient for asynchronous operations, introduces polling as a flexible alternative, provides Python code examples with the polling library, discusses advantages and disadvantages, and presents decorator and generic‑function abstractions for reusable polling logic.

AsynchronousDecoratorPolling
0 likes · 7 min read
Using Polling Instead of Sleep in Python for Asynchronous Tasks
Tencent Cloud Developer
Tencent Cloud Developer
Aug 25, 2021 · Fundamentals

A Comprehensive Guide to JavaScript/TypeScript Decorators and Their Practical Use

The guide explains JavaScript/TypeScript decorators—an ECMAScript stage‑2 proposal used in frameworks like Angular, Nest.js, and TypeORM—by distinguishing the decorator pattern, function, and @syntax, demonstrating a four‑step manual implementation that logs execution time, and linking decorators to AOP, IoC, and DI concepts.

DecoratorIoCJavaScript
0 likes · 10 min read
A Comprehensive Guide to JavaScript/TypeScript Decorators and Their Practical Use
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 17, 2021 · Fundamentals

Master Python Decorators: From Basics to Advanced Patterns

This article walks Python developers through the concept of decorators, showing simple timing examples, how to handle functions with parameters and return values, advanced techniques like parameterized, class, stateful, and nested decorators, and provides ready-to-use code templates for real‑world use.

AdvancedDecoratorcode
0 likes · 20 min read
Master Python Decorators: From Basics to Advanced Patterns
JD Retail Technology
JD Retail Technology
Aug 10, 2021 · Frontend Development

Building an Enterprise After‑Sales SaaS Portal with Vue 3, NutUI 3.0 and Taro

This article details the development of a JD enterprise after‑sales SaaS portal using Vue 3, NutUI 3.0, Vite, TypeScript and Taro, covering project background, cross‑domain login handling, customizable themes, component migrations, state management with Vuex 4, routing, and decorator‑based loading solutions.

CrossDomainDecoratorTypeScript
0 likes · 19 min read
Building an Enterprise After‑Sales SaaS Portal with Vue 3, NutUI 3.0 and Taro
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 7, 2021 · Fundamentals

Java Structural Design Patterns: Proxy, Adapter, Bridge, Decorator, Facade, Flyweight, Composite

This article provides a comprehensive overview of key structural design patterns—including Proxy, Adapter, Bridge, Decorator, Facade, Flyweight, and Composite—explaining their definitions, advantages, structure, real‑world scenarios, and complete Java implementations with code snippets and diagrams.

AdapterDecoratorFacade
0 likes · 46 min read
Java Structural Design Patterns: Proxy, Adapter, Bridge, Decorator, Facade, Flyweight, Composite
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 11, 2021 · Fundamentals

Unlock Python’s @property: Turn Methods into Seamless Attributes

This article explains how Python’s @property decorator transforms class methods into attribute-like accessors, covering basic usage, setter/getter patterns, error handling, and practical examples such as score validation and temperature conversion, helping developers write cleaner, more encapsulated code.

DecoratorPropertyPython
0 likes · 8 min read
Unlock Python’s @property: Turn Methods into Seamless Attributes
Java Interview Crash Guide
Java Interview Crash Guide
Apr 2, 2021 · Backend Development

How MyBatis Leverages 9 Classic Design Patterns in Its Core

This article explores how MyBatis implements nine fundamental design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—by examining its source code, illustrating each pattern with concrete classes, code snippets, and diagrams to deepen developers' understanding of design patterns in practice.

Backend DevelopmentBuilderDecorator
0 likes · 19 min read
How MyBatis Leverages 9 Classic Design Patterns in Its Core
Python Programming Learning Circle
Python Programming Learning Circle
Mar 29, 2021 · Fundamentals

Understanding Python Context Managers: Basics, Custom Implementations, and Advanced Applications

This article explains Python's context manager mechanism, covering the basic with statement, custom __enter__/__exit__ classes, the contextlib.contextmanager decorator, nesting, combining multiple managers with ExitStack, and practical applications such as SQLAlchemy session handling, exception management, and persistent HTTP requests.

DecoratorPythonResource Management
0 likes · 6 min read
Understanding Python Context Managers: Basics, Custom Implementations, and Advanced Applications
Java Captain
Java Captain
Feb 20, 2021 · Backend Development

Spring Framework Design Patterns: Summary and Implementation Details

This article provides a comprehensive overview of the design patterns used in the Spring framework—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—explaining their implementation, underlying principles, and practical significance with code examples.

AdapterBeanFactoryDecorator
0 likes · 15 min read
Spring Framework Design Patterns: Summary and Implementation Details
Python Crawling & Data Mining
Python Crawling & Data Mining
Dec 17, 2020 · Fundamentals

Boost Your Python Debugging with PySnooper: A Complete Guide

Learn how to enhance Python debugging using the PySnooper library, covering quick installation, simple examples, advanced features like output redirection, variable watching, depth control, thread info, custom representations, and remote debugging tips, all illustrated with clear code snippets and screenshots.

DebuggingDecoratorPython
0 likes · 11 min read
Boost Your Python Debugging with PySnooper: A Complete Guide
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 30, 2020 · Fundamentals

Unlock Cleaner Code: How Design Patterns Transform Business Logic and Boost Developer Joy

This article explores how applying classic design patterns—Chain of Responsibility, Strategy, Template Method, Observer, Decorator, and Bridge—can turn repetitive CRUD business code into clean, robust, and extensible solutions, illustrated with real‑world Java examples, practical experiences, and step‑by‑step code snippets.

Chain of ResponsibilityDecoratorbridge
0 likes · 23 min read
Unlock Cleaner Code: How Design Patterns Transform Business Logic and Boost Developer Joy
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 25, 2020 · Fundamentals

Implementing IoC and DI in TypeScript: A Practical Guide

This guide shows how to build a lightweight Inversion of Control container in TypeScript and use Reflect‑Metadata decorators to register providers and inject dependencies, demonstrating how constructor‑based injection decouples classes, simplifies testing, and mirrors patterns used in frameworks such as NestJS, Midway, and Angular.

DecoratorInversion of ControlIoC
0 likes · 16 min read
Implementing IoC and DI in TypeScript: A Practical Guide
360 Tech Engineering
360 Tech Engineering
Mar 17, 2020 · Fundamentals

Understanding Python Decorators and Their Four Types with Example

This article explains what Python decorators are, describes their four types—function decorating function, function decorating class, class decorating function, and class decorating class—illustrates each with diagrams, and provides a practical example that dynamically passes test case names to a function via a decorator.

DecoratorPythonexample
0 likes · 2 min read
Understanding Python Decorators and Their Four Types with Example
Architecture Digest
Architecture Digest
Jan 11, 2020 · Backend Development

Design Patterns Used in MyBatis Source Code

This article examines how MyBatis implements numerous classic design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—through its source code, explaining each pattern's role, related classes, and code examples to deepen developers' understanding of backend architecture.

AdapterBuilderDecorator
0 likes · 17 min read
Design Patterns Used in MyBatis Source Code
ITPUB
ITPUB
Sep 26, 2019 · Fundamentals

How PySnooper Can Replace Print Statements for Smarter Python Debugging

This article explains why traditional print‑based debugging is cumbersome, introduces the open‑source PySnooper decorator that automatically logs executed lines and variable values, demonstrates its usage with example code and output, and shows how to install and redirect its logs to a file.

DecoratorPrint Replacementpysnooper
0 likes · 6 min read
How PySnooper Can Replace Print Statements for Smarter Python Debugging
Qunar Tech Salon
Qunar Tech Salon
Aug 8, 2019 · Frontend Development

Understanding Design Patterns in JavaScript

This article explains why and how to use various JavaScript design patterns—such as module, revealing module, ES6 modules, singleton, factory, and decorator—by describing their purpose, benefits, and providing clear code examples while warning against over‑use.

DecoratorDesign PatternsFactory
0 likes · 14 min read
Understanding Design Patterns in JavaScript
iQIYI Technical Product Team
iQIYI Technical Product Team
Feb 1, 2019 · Frontend Development

Uniqy: A Vue2‑Based Front‑End Framework for iQIYI PC Web with Hybrid SSR and PJAX

Uniqy replaces iQIYI’s legacy qiyiV2 with a Vue 2‑based framework that combines server‑side rendering, PJAX navigation, decorator‑style class components, and lazy‑loaded modules, delivering faster first‑screen loads, better maintainability, SEO friendliness, and graceful fallback for low‑end browsers.

Component Lazy LoadingDecoratorFront‑end Framework
0 likes · 14 min read
Uniqy: A Vue2‑Based Front‑End Framework for iQIYI PC Web with Hybrid SSR and PJAX
MaGe Linux Operations
MaGe Linux Operations
Jan 31, 2019 · Fundamentals

Master Python Decorators: From Basics to Advanced Techniques

This article provides a comprehensive, code‑rich guide to Python decorators, covering why they are needed, how to write simple and parameterized decorators, class‑based decorators, built‑in decorators like @property and @classmethod, common pitfalls, and best‑practice optimizations using third‑party tools.

AdvancedDecoratorPython
0 likes · 21 min read
Master Python Decorators: From Basics to Advanced Techniques
MaGe Linux Operations
MaGe Linux Operations
Dec 29, 2018 · Fundamentals

Master Python Decorators: From Basics to Advanced Techniques

This comprehensive guide explains why Python decorators are essential, walks through simple and advanced examples—including logging, parameterized, and class-based decorators—covers common pitfalls, and shows how to use tools like functools, decorator.py, and wrapt for clean, reusable code.

DecoratorPythonfunctools
0 likes · 17 min read
Master Python Decorators: From Basics to Advanced Techniques
MaGe Linux Operations
MaGe Linux Operations
May 20, 2018 · Fundamentals

Master Python Closures: Why They Matter and How to Use Them

This article demystifies Python closures, explaining their definition, practical significance, and how they enable functions to retain external variables, with clear examples ranging from simple printers to decorators, and discusses when to apply closures in real-world code.

Decoratorfunctionsprogramming
0 likes · 8 min read
Master Python Closures: Why They Matter and How to Use Them
Java Captain
Java Captain
May 8, 2018 · Backend Development

Understanding Java I/O: Streams, Decorators, and Practical Examples

This article explains Java's I/O system, detailing how streams and decorator patterns enable flexible file reading and writing, and provides clear code examples illustrating BufferedReader, FileReader, InputStream, and OutputStream usage.

BufferedReaderDecoratorFileReader
0 likes · 7 min read
Understanding Java I/O: Streams, Decorators, and Practical Examples
Java Captain
Java Captain
Apr 14, 2018 · Fundamentals

Java Design Patterns: Singleton, Observer, Decorator, Adapter, Factory, Abstract Factory, and Proxy

This article introduces several core Java design patterns—including Singleton (lazy, eager, static inner class, enum, double‑checked locking), Observer, Decorator, Adapter, Factory, Abstract Factory, and Proxy—explaining their intent, providing concise code examples, and showing how they solve common software design problems.

DecoratorDesign PatternsFactory
0 likes · 13 min read
Java Design Patterns: Singleton, Observer, Decorator, Adapter, Factory, Abstract Factory, and Proxy
MaGe Linux Operations
MaGe Linux Operations
Apr 5, 2018 · Fundamentals

Master Python Decorators: From Basics to Advanced Techniques

This comprehensive guide explains Python decorators, covering basic concepts, practical examples, common pitfalls, and advanced patterns such as parameterized, class-based, and built‑in decorators, while showing how to avoid signature issues and improve readability with tools like functools.wraps, decorator, and wrapt.

AdvancedDecoratorPython
0 likes · 16 min read
Master Python Decorators: From Basics to Advanced Techniques
360 Quality & Efficiency
360 Quality & Efficiency
Oct 13, 2017 · Backend Development

Implementing Backend Rate Limiting with a Python Decorator

To prevent excessive user actions such as rapid screenshot requests, this guide shows how to implement a backend rate‑limiting mechanism using a reusable Python decorator that enforces a default 0.3‑second interval, handling exceptions when the limit is exceeded.

APIDecoratorrate limiting
0 likes · 2 min read
Implementing Backend Rate Limiting with a Python Decorator
Qunar Tech Salon
Qunar Tech Salon
Aug 4, 2017 · Frontend Development

Understanding and Implementing Higher-Order Components in React

This article explains the concept of higher‑order components (HOCs) in React, demonstrates basic and advanced implementations—including parameterized HOCs, display‑name handling, composition with compose, and practical examples such as loading and copy utilities—while comparing HOCs with parent components and recommending open‑source libraries.

DecoratorHigher-Order ComponentJavaScript
0 likes · 10 min read
Understanding and Implementing Higher-Order Components in React
MaGe Linux Operations
MaGe Linux Operations
Jul 9, 2017 · Fundamentals

Master Python Decorators: From Basics to Advanced Usage

This article provides a comprehensive guide to Python functions, scopes, variable lifecycles, closures, and decorators, illustrating each concept with clear explanations and runnable code examples, and shows how to create flexible, reusable decorators using @ syntax, *args, and **kwargs.

Decoratorargsclosure
0 likes · 22 min read
Master Python Decorators: From Basics to Advanced Usage
MaGe Linux Operations
MaGe Linux Operations
Jul 7, 2017 · Fundamentals

Unlock Python Power: Master Decorators in Simple Steps

This article demystifies Python decorators by explaining their purpose, illustrating how functions are objects that can be passed, nested, or returned, and providing clear code examples and visual analogies to show how decorators enhance functions without altering their core behavior.

DecoratorPythoncode
0 likes · 6 min read
Unlock Python Power: Master Decorators in Simple Steps
ITPUB
ITPUB
Apr 26, 2016 · Backend Development

Integrating Twisted with Stackless Python: A Practical Guide

This article explains how to combine Twisted's event‑driven reactor with Stackless Python's micro‑threads by setting up a reactor tasklet, creating filtering and wrapper decorators, and providing deferred_tasklet and blocking_tasklet utilities to run asynchronous code synchronously.

AsyncDecoratorStackless
0 likes · 7 min read
Integrating Twisted with Stackless Python: A Practical Guide