Tagged articles
12 articles
Page 1 of 1
php Courses
php Courses
Sep 22, 2025 · Backend Development

Master PHP 8.3 Functions: Parameters, Return Types, and Scope Explained

This article explores PHP 8.3 functions in depth, covering their basic structure, parameter passing (including type declarations, default values, variadic and named arguments), return value handling, variable scope rules, and the newest language improvements such as stricter type checking and readonly properties.

PHPPHP 8.3Return Types
0 likes · 8 min read
Master PHP 8.3 Functions: Parameters, Return Types, and Scope Explained
Code Mala Tang
Code Mala Tang
Mar 30, 2025 · Fundamentals

Master Python’s locals() and globals(): When and How to Use Them

Learn the essential differences between Python’s locals() and globals() functions, how they reveal variable scopes, how to modify them safely, and practical use cases such as dynamic variable creation, debugging, and performance considerations, all illustrated with clear code examples.

DebuggingPythonVariable Scope
0 likes · 7 min read
Master Python’s locals() and globals(): When and How to Use Them
Test Development Learning Exchange
Test Development Learning Exchange
Jul 31, 2024 · Fundamentals

Introduction to Variable Scope in Python

This article explains Python's four variable scope types—local, enclosing, global, and built‑in—through clear descriptions and runnable code examples that illustrate how each scope affects variable accessibility and program behavior.

PythonVariable Scopeprogramming fundamentals
0 likes · 4 min read
Introduction to Variable Scope in Python
MaGe Linux Operations
MaGe Linux Operations
May 19, 2021 · Fundamentals

Python Variable Scope, References, Lambdas & Recursion Explained

This article explains the differences between local and global variables in Python, how to modify globals with the global keyword, the behavior of mutable and immutable objects, demonstrates variable scope with code examples, and also covers references, lambda anonymous functions, and recursive implementations such as factorial calculations.

LambdaPythonRecursion
0 likes · 6 min read
Python Variable Scope, References, Lambdas & Recursion Explained
Python Programming Learning Circle
Python Programming Learning Circle
Mar 15, 2021 · Fundamentals

Understanding the global Statement in Python

The article explains how Python's global statement declares variables as global within a function, allowing modification of module‑level variables and preventing UnboundLocalError, with examples of incorrect usage, correct usage, multiple globals, and class‑based alternatives.

Variable Scopefundamentalsglobal
0 likes · 4 min read
Understanding the global Statement in Python
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 9, 2020 · Fundamentals

Master Go Functions: Scope, Defer, Panic & Recover Explained

This article delves into advanced Go function concepts, illustrating memory allocation diagrams, variable scopes, the use of const for globals, the behavior of defer statements, and handling errors with panic and recover, complete with code examples and visual outputs to deepen your understanding.

GoVariable Scopeconst
0 likes · 8 min read
Master Go Functions: Scope, Defer, Panic & Recover Explained
Python Programming Learning Circle
Python Programming Learning Circle
Jan 17, 2020 · Fundamentals

Master Python Variable Scope: The LENGB Guide Explained

This article explains Python’s static variable scope, introducing the LENGB model (Local, Enclosing, nonlocal, Global, Built‑in) and demonstrates how Python resolves names through examples that illustrate common pitfalls such as NameError and the correct use of global and nonlocal keywords.

LENGBVariable Scopeglobal
0 likes · 4 min read
Master Python Variable Scope: The LENGB Guide Explained
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Sep 3, 2017 · Frontend Development

Why Does let Appear Not to Be Hoisted? Unraveling JavaScript’s Variable Lifecycle

This article chronicles the author’s two‑month journey of understanding JavaScript’s let declaration, exploring its block scope, temporal dead zone, per‑iteration bindings, and the nuanced differences from var and function hoisting, while debunking common misconceptions with code examples and spec references.

Variable Scopees6frontend
0 likes · 10 min read
Why Does let Appear Not to Be Hoisted? Unraveling JavaScript’s Variable Lifecycle