Tag

Module

0 views collected around this technical thread.

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.

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

Understanding the Purpose of if __name__ == '__main__' in Python

This article explains how the if __name__ == '__main__' construct distinguishes between running a Python file as a script versus importing it as a module, prevents unintended execution, and provides practical examples for testing, main logic, and avoiding side effects.

@ImportModulePython
0 likes · 5 min read
Understanding the Purpose of if __name__ == '__main__' in Python
Test Development Learning Exchange
Test Development Learning Exchange
Jun 11, 2024 · Fundamentals

Deep Understanding of __main__ and __name__ in Python

This article explains the special built‑in identifiers __main__ and __name__ in Python, describing how they indicate a module's execution context, how to use them to separate script and library code, and provides multiple practical code examples.

Module__name__code
0 likes · 6 min read
Deep Understanding of __main__ and __name__ in Python
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 22, 2023 · Frontend Development

Front‑End API Management Strategies Using Mapping Tables and Export Patterns

The article presents a front‑end API management approach that organizes CRUD functions into unified export statements, object‑oriented modules, and a central mapping table, demonstrating how these patterns improve code readability, maintainability, and development efficiency for large backend‑driven projects.

APIExportModule
0 likes · 11 min read
Front‑End API Management Strategies Using Mapping Tables and Export Patterns
Python Programming Learning Circle
Python Programming Learning Circle
Jul 18, 2022 · Fundamentals

Five Practical Uses of Python’s -m Option

This article explains five practical ways to use Python's -m option, including launching a simple HTTP server, generating documentation with pydoc, debugging with pdb, timing code snippets via timeit, and reliably installing packages with python -m pip, especially in multi‑version environments.

ModulePythoncommand line
0 likes · 4 min read
Five Practical Uses of Python’s -m Option
System Architect Go
System Architect Go
Mar 27, 2022 · Cloud Computing

Terraform: Infrastructure as Code

Terraform enables declarative, code‑driven provisioning of cloud resources such as VPCs, virtual hosts, load balancers, databases, and storage across multiple providers, simplifying infrastructure management through reusable providers and modules, version control, and state tracking, thereby reducing manual configuration effort.

IaCInfrastructure as CodeModule
0 likes · 4 min read
Terraform: Infrastructure as Code
58 Tech
58 Tech
Dec 31, 2021 · Mobile Development

Swift and Objective‑C Mixed Development in 58 Group’s Real‑Estate Business: Architecture, Module Integration, and Reflection Issues

This article details the background, current status, and engineering architecture of introducing Swift into 58 Group’s real‑estate iOS apps, explains the two main mixed‑compilation approaches (bridging header and module), presents practical module setup, discusses reflection pitfalls, binding solutions, and performance comparisons between Swift and Objective‑C implementations.

Mixed DevelopmentModuleSwift
0 likes · 21 min read
Swift and Objective‑C Mixed Development in 58 Group’s Real‑Estate Business: Architecture, Module Integration, and Reflection Issues
Python Programming Learning Circle
Python Programming Learning Circle
Nov 20, 2021 · Fundamentals

Understanding Implicit and Explicit Relative Imports in Python Packages

This article explains Python's implicit and explicit relative import mechanisms, demonstrates directory structures, shows how to use __init__.py, and provides practical code examples illustrating import statements, common pitfalls, and best practices for managing package imports in larger projects.

Moduleexplicit-importimplicit-import
0 likes · 8 min read
Understanding Implicit and Explicit Relative Imports in Python Packages
58 Tech
58 Tech
Oct 26, 2021 · Mobile Development

Swift and Objective‑C Interoperability: Moduleization and Mixed‑Language Integration Practices at 58.com

This article details 58.com’s Swift migration initiative, describing the background of Swift adoption, the objectives of the mixed‑language project, the practical steps for SDK module‑ization, bridging techniques, nullability annotations, macro handling, +load replacements, and future plans for improving Objective‑C to Swift integration.

ModuleSDKSwift
0 likes · 29 min read
Swift and Objective‑C Interoperability: Moduleization and Mixed‑Language Integration Practices at 58.com
Kuaishou Tech
Kuaishou Tech
Aug 3, 2021 · Mobile Development

Practical Experience of Swift/Objective‑C Binary Mixed Compilation at Kuaishou Overseas Client Team

This article shares the Kuaishou overseas client team's practical experiences and solutions for improving compilation efficiency through Swift/Objective‑C binary mixed compilation, covering single‑target and multi‑target strategies, moduleization challenges, binary compatibility, and future directions for mobile development.

CocoaPodsMixed CompilationModule
0 likes · 18 min read
Practical Experience of Swift/Objective‑C Binary Mixed Compilation at Kuaishou Overseas Client Team
Kuaishou Frontend Engineering
Kuaishou Frontend Engineering
Aug 2, 2021 · Mobile Development

Mastering Swift/ObjC Binary Mixed Compilation: Practical Tips for Mobile Teams

This article shares the Kuaishou overseas client team's experience of improving Swift/Objective‑C mixed compilation through binary packaging, covering single‑target and multi‑target strategies, moduleization challenges, solutions for C++ and header issues, and future best‑practice recommendations for iOS development.

Mixed CompilationMobile DevelopmentModule
0 likes · 18 min read
Mastering Swift/ObjC Binary Mixed Compilation: Practical Tips for Mobile Teams
IT Architects Alliance
IT Architects Alliance
Jun 30, 2021 · Fundamentals

Understanding Software Architecture: Systems, Subsystems, Modules, Components, Frameworks, and Architecture

This article explains the fundamental concepts of software architecture—including systems, subsystems, modules, components, frameworks, and architecture itself—by defining each term, illustrating their relationships with real‑world examples, and clarifying common misconceptions for technical professionals.

ComponentModulearchitecture fundamentals
0 likes · 10 min read
Understanding Software Architecture: Systems, Subsystems, Modules, Components, Frameworks, and Architecture
Python Programming Learning Circle
Python Programming Learning Circle
Jun 28, 2021 · Fundamentals

Understanding Python's __name__ Variable: Purpose, Values, and Practical Examples

This article explains the built‑in __name__ variable in Python, how its value differs when a script is run directly versus imported as a module, and demonstrates both scenarios with clear code examples and visual diagrams.

@ImportModulePython
0 likes · 5 min read
Understanding Python's __name__ Variable: Purpose, Values, and Practical Examples
IT Architects Alliance
IT Architects Alliance
May 23, 2021 · Fundamentals

Understanding Software Architecture: History, Concepts, and Definitions

This article explains the evolution of software development from machine language to high‑level languages, describes the two software crises and the emergence of structured, object‑oriented, and component‑based design, and clarifies key architectural concepts such as systems, subsystems, modules, components, frameworks, and architecture itself.

ComponentModulesoftware architecture
0 likes · 11 min read
Understanding Software Architecture: History, Concepts, and Definitions
Architects' Tech Alliance
Architects' Tech Alliance
Apr 3, 2021 · Fundamentals

Understanding Software Architecture: History, Concepts, and Definitions

This article explores the evolution of software development from machine language to high‑level languages, explains the two software crises, and defines software architecture by distinguishing systems, subsystems, modules, components, and frameworks, emphasizing architecture as a top‑level structural solution for managing complexity.

ComponentModuleobject-oriented
0 likes · 11 min read
Understanding Software Architecture: History, Concepts, and Definitions
Python Programming Learning Circle
Python Programming Learning Circle
Mar 16, 2021 · Fundamentals

Understanding Python import Statements: Importing Modules and Specific Members

This article explains the two primary Python import syntaxes—importing an entire module versus importing selected members—detailing their differences, usage of aliases, multiple module imports, and includes runnable code examples that illustrate how each form affects name resolution.

@ImportModuleSyntax
0 likes · 3 min read
Understanding Python import Statements: Importing Modules and Specific Members
Python Programming Learning Circle
Python Programming Learning Circle
Jun 29, 2020 · Fundamentals

Understanding Python import: absolute vs. relative imports and common pitfalls

This article explains Python's import system, covering absolute and relative import syntax, package structure, execution contexts, and typical errors, while providing clear code examples and practical guidelines for correctly organizing and running modules.

@ImportModulePEP 328
0 likes · 11 min read
Understanding Python import: absolute vs. relative imports and common pitfalls
Didi Tech
Didi Tech
Oct 8, 2019 · Frontend Development

Understanding Webpack Module Creation: Stages and Dependency Handling

Webpack transforms entry files into modules through four stages—create, add, build, and processDep—where it generates a module instance via factory hooks, registers it in the compilation, runs loaders and parses the source into an AST, groups and resolves dependencies, and finally prepares the modules for bundling.

DependencyJavaScriptModule
0 likes · 18 min read
Understanding Webpack Module Creation: Stages and Dependency Handling