Tagged articles
Variable Scope
12 articles · Page 1 of 1
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.3Parameters
0 likes · 8 min read

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

This article explores Python function nesting, covering its basic concepts, practical applications, code examples, and important considerations for effective implementation in programming.
PythonVariable Scopecode encapsulation
0 likes · 7 min read

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

This article walks through a common Python beginner issue where a variable is undefined, shows the error screenshots, explains why the problem occurs inside a function's scope, and provides the corrected code to resolve the error.
Variable Scope
0 likes · 4 min read

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.
PythonVariable Scopelambda
0 likes · 6 min read

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

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

The article explains why Java’s anonymous inner classes still forbid modifying captured primitive variables after Java 8, how the compiler enforces this by copying values, and why Kotlin can modify them by using reference‑style wrappers.
Anonymous Inner ClassJavaKotlin
0 likes · 5 min read

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

This article explores why Python’s for‑loop index variables remain visible after the loop, examines the underlying bytecode and AST handling, and explains why this behavior persists and can be useful in real‑world code.
ASTPythonVariable Scope
0 likes · 11 min read

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.
ES6Variable Scopefrontend
0 likes · 10 min read
