Tagged articles
27 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Mar 22, 2026 · Fundamentals

Mastering const and static in C++: When and How to Use Them

This article provides a comprehensive guide to the const and static modifiers in C/C++, covering their distinct purposes, usage with variables, pointers, functions, and class members, and answering common interview questions with clear explanations and practical code examples.

C++constinterview
0 likes · 17 min read
Mastering const and static in C++: When and How to Use Them
Liangxu Linux
Liangxu Linux
Nov 13, 2025 · Fundamentals

How to Define a Custom read() in C Without Hiding the System Call

This article explains how to create a user‑defined read() function in C that coexists with the standard library read() by using the static keyword and separate translation units, providing code examples, compilation steps, and execution results.

CLinuxfunction-overriding
0 likes · 6 min read
How to Define a Custom read() in C Without Hiding the System Call
Liangxu Linux
Liangxu Linux
Aug 31, 2025 · Fundamentals

Mastering C++ static: 6 Powerful Uses You Must Know

This article explains the versatile static keyword in C++ by covering six practical patterns—including local static variables, file‑scope static globals, static class members, static member functions, lazy‑initialized singletons, and compile‑time constants—complete with clear code examples and usage tips.

C++ConstantsSingleton
0 likes · 9 min read
Mastering C++ static: 6 Powerful Uses You Must Know
Deepin Linux
Deepin Linux
Aug 28, 2025 · Fundamentals

Unraveling C++ static: From Variables to Destruction Order

This article explains the many roles of the C++ static keyword—how it affects variables, functions and class members—then dives deep into static object lifetimes, destructor rules, destruction order across translation units, common pitfalls such as resource‑dependency bugs, memory leaks and multithreading issues, and finally offers practical solutions and interview‑style questions.

Cdestructorinitialization-order
0 likes · 28 min read
Unraveling C++ static: From Variables to Destruction Order
php Courses
php Courses
Sep 13, 2024 · Backend Development

Understanding PHP Static Members: self::, parent::, and static::

This article explains PHP static members, how self::, parent::, and static:: differ in inheritance contexts, when to use static members, and provides clear code examples illustrating their distinct behaviors for method and property access.

InheritanceOOPparent
0 likes · 7 min read
Understanding PHP Static Members: self::, parent::, and static::
Open Source Tech Hub
Open Source Tech Hub
Jun 13, 2024 · Backend Development

When to Use parent::, self::, and static:: in PHP OOP

This guide explains the differences between PHP's parent::, self::, and static:: keywords, shows how they behave in inheritance hierarchies with concrete code examples, and offers practical advice on when to choose each form to avoid common pitfalls.

InheritanceOOPPHP
0 likes · 10 min read
When to Use parent::, self::, and static:: in PHP OOP
Liangxu Linux
Liangxu Linux
Feb 29, 2024 · Fundamentals

Master static, volatile, sizeof, and I2C for Embedded C

This guide explains the purposes and effects of the C/C++ static and volatile keywords, compares the sizeof operator with strlen, describes reliable methods for comparing floating‑point numbers, outlines how floating‑point operations affect STM32 interrupt performance, and provides a concise overview of the I²C protocol and address configuration on STM32 devices.

C++I2CSTM32
0 likes · 9 min read
Master static, volatile, sizeof, and I2C for Embedded C
php Courses
php Courses
Jun 29, 2023 · Backend Development

Understanding the static Keyword in PHP: Properties, Methods, and Use Cases

This article explains PHP's static keyword, covering static properties and methods, memory management, common use cases such as utility functions and the singleton pattern, and important considerations for visibility and inheritance, accompanied by clear code examples.

BackendDesign PatternsSingleton
0 likes · 8 min read
Understanding the static Keyword in PHP: Properties, Methods, and Use Cases
AI Cyberspace
AI Cyberspace
Mar 4, 2023 · Fundamentals

Master C Variables, Constants, and Scope: From #define to static

This article explains C variables and constants, their three components, key differences, how to define symbolic constants with #define, use the const keyword, understand various scopes, the static storage class, and the distinction between declarations and definitions, all illustrated with code examples.

CConstantsVariables
0 likes · 12 min read
Master C Variables, Constants, and Scope: From #define to static
Sohu Tech Products
Sohu Tech Products
Dec 8, 2021 · Mobile Development

Understanding UIKIT_EXTERN and Macro Usage in iOS Development

This article explains the purpose, syntax, and underlying principles of UIKIT_EXTERN and related macros such as extern, static, and const in iOS, demonstrates how __attribute__ and visibility modifiers affect symbol linkage, and outlines practical scenarios and extensions for safer, more efficient code across dynamic libraries.

MacrosUIKIT_EXTERNconst
0 likes · 11 min read
Understanding UIKIT_EXTERN and Macro Usage in iOS Development
php Courses
php Courses
Nov 6, 2020 · Backend Development

Understanding and Implementing the Facade Pattern in ThinkPHP 5.1

This article explains the Facade feature introduced in ThinkPHP 5.1, demonstrates how to use it for static‑style method calls, shows step‑by‑step code examples, discusses the underlying __callStatic and createFacade mechanisms, and provides best‑practice recommendations for managing multiple facades in complex projects.

Facadedependency-injectiondesign pattern
0 likes · 11 min read
Understanding and Implementing the Facade Pattern in ThinkPHP 5.1
Selected Java Interview Questions
Selected Java Interview Questions
May 13, 2020 · Fundamentals

Understanding Java Serialization and serialVersionUID: Concepts, Usage, and Common Pitfalls

This article explains Java serialization and deserialization, the role of the Serializable interface and serialVersionUID, demonstrates how to implement and test them with code examples, and discusses related features such as transient and static fields, providing practical insights for Java developers.

DeserializationJavaserialVersionUID
0 likes · 11 min read
Understanding Java Serialization and serialVersionUID: Concepts, Usage, and Common Pitfalls
Java Backend Technology
Java Backend Technology
Mar 10, 2020 · Backend Development

Unlock Java Serialization: Why Serializable Matters and How to Master It

This article dives deep into Java's serialization mechanism, explaining the theory behind the Serializable interface, demonstrating practical examples with code, exploring the impact of static and transient fields, comparing Serializable with Externalizable, and clarifying the role of serialVersionUID in version compatibility.

ExternalizableJavaObjectInputStream
0 likes · 14 min read
Unlock Java Serialization: Why Serializable Matters and How to Master It
Java Backend Technology
Java Backend Technology
Jun 29, 2019 · Backend Development

Mastering Java Serialization: From Basics to Advanced Pitfalls

This article explores Java's serialization mechanism in depth, covering its history, the Serializable and Externalizable interfaces, practical code examples, the impact of static and transient fields, serialVersionUID nuances, and common pitfalls to help developers write robust, version‑compatible Java code.

ExternalizableJavaserialVersionUID
0 likes · 14 min read
Mastering Java Serialization: From Basics to Advanced Pitfalls
21CTO
21CTO
Dec 1, 2017 · Backend Development

Boost PHP‑FPM Performance: Why pm‑static Beats Dynamic & ondemand

This article explains how to fine‑tune PHP‑FPM by choosing the optimal Process Manager mode—static, dynamic, or ondemand—combined with CPU governor settings to achieve higher throughput, lower latency, and stable CPU/memory usage on web servers.

cpu governorperformancephp-fpm
0 likes · 9 min read
Boost PHP‑FPM Performance: Why pm‑static Beats Dynamic & ondemand
ITPUB
ITPUB
Jun 1, 2016 · Fundamentals

Comprehensive Guide to Java Methods: Types, Modifiers, Overloading & Overriding

This article systematically outlines the six-step process for defining complete Java class methods, covering access modifiers, static and abstract keywords, return types, naming conventions, parameter lists, method bodies, as well as method overloading, overriding, and various invocation techniques.

abstractmethodsoverloading
0 likes · 13 min read
Comprehensive Guide to Java Methods: Types, Modifiers, Overloading & Overriding