Tag

Scope

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Apr 21, 2025 · Fundamentals

Unlock Python’s Secrets: Master Namespaces and Scope Explained

This article demystifies Python namespaces, explaining how names map to objects, distinguishing them from scope, detailing the LEGB rule, illustrating built‑in, global, local, and nested namespaces, their lifecycles, and showing practical debugging techniques with locals() and globals().

NamespacesPythonScope
0 likes · 9 min read
Unlock Python’s Secrets: Master Namespaces and Scope Explained
Test Development Learning Exchange
Test Development Learning Exchange
May 23, 2024 · Fundamentals

Understanding Python Scopes: Local, Global, Built‑in, and Enclosing

This article explains Python's four scope types—local, global, built‑in, and enclosing—detailing their definitions, lookup rules, and how to access or modify variables within each, supplemented by clear code examples illustrating typical usage and the role of the nonlocal and global keywords.

ScopeVariablescode examples
0 likes · 5 min read
Understanding Python Scopes: Local, Global, Built‑in, and Enclosing
Test Development Learning Exchange
Test Development Learning Exchange
Mar 22, 2024 · Fundamentals

Understanding Python Scope Rules: Global, Local, Enclosing, and Built‑in

This article explains Python's four scope levels—global, local, enclosing (non‑local), and built‑in—describes how the LEGB lookup order works, and provides clear code examples demonstrating variable access and modification in each scope.

LEGBPythonScope
0 likes · 5 min read
Understanding Python Scope Rules: Global, Local, Enclosing, and Built‑in
IT Services Circle
IT Services Circle
Nov 16, 2023 · Frontend Development

Upcoming CSS Features: text-wrap, @scope, form-sizing, view-transition, light-dark(), and Nesting

This article introduces several upcoming CSS specifications—including text-wrap with balance and pretty values, the @scope rule for scoped styling, form-sizing for auto‑resizing textareas, view‑transition for seamless page transitions, the light‑dark() function for theme‑aware colors, and native CSS nesting—explaining their purpose, usage, and browser support.

CSSScopeWeb Development
0 likes · 6 min read
Upcoming CSS Features: text-wrap, @scope, form-sizing, view-transition, light-dark(), and Nesting
Cognitive Technology Team
Cognitive Technology Team
Jul 23, 2023 · Backend Development

How to Resolve Maven JAR Dependency Conflicts

This article explains common Maven JAR dependency conflict scenarios and presents four practical solutions—including using Exclusions, configuring dependency scopes, applying the Maven Shade plugin for class relocation, and employing class‑loader isolation strategies—to help developers choose the appropriate method for their build and runtime environments.

ClassLoaderExclusionsJAR conflict
0 likes · 4 min read
How to Resolve Maven JAR Dependency Conflicts
php中文网 Courses
php中文网 Courses
Jul 5, 2023 · Frontend Development

Understanding var, let, and const in JavaScript

This article explains the differences between JavaScript's var, let, and const declarations, covering their scopes, hoisting behavior, and mutability, and provides clear code examples for each. It also highlights how const variables can still be modified when they hold objects or arrays, helping developers choose the right keyword for reliable code.

JavaScriptScopeVAR
0 likes · 5 min read
Understanding var, let, and const in JavaScript
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 28, 2023 · Backend Development

Mastering Spring @Bean: Declaration, Dependencies, Lifecycle & Scopes

This guide explains how to use Spring's @Bean annotation to declare beans, configure dependencies, control lifecycle callbacks, set custom scopes, assign names, aliases, and descriptions, providing Java code examples that parallel equivalent XML configurations.

BeanConfigurationJava
0 likes · 9 min read
Mastering Spring @Bean: Declaration, Dependencies, Lifecycle & Scopes
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2022 · Fundamentals

Understanding JavaScript Variable Lookup and Scope from the ECMAScript Specification and V8 Engine Perspective

The article explains how JavaScript variable lookup and lexical scope are determined during compilation by the V8 engine, covering the language's compiled‑and‑interpreted nature, JIT optimizations, AST generation, lazy parsing, dynamic lookups, and bytecode creation to demystify runtime performance.

CompilationECMAScriptJIT
0 likes · 14 min read
Understanding JavaScript Variable Lookup and Scope from the ECMAScript Specification and V8 Engine Perspective
Python Programming Learning Circle
Python Programming Learning Circle
Sep 24, 2022 · Fundamentals

Common Python Pitfalls: Dynamic Typing, Mutable Default Arguments, Scope, and List Modification

This article examines several confusing behaviors in Python—including implicit variable declarations, mutable default arguments, class variable inheritance, scope rules, and list‑modification during iteration—illustrating each with code examples and offering practical solutions for developers.

Dynamic TypingPythonScope
0 likes · 9 min read
Common Python Pitfalls: Dynamic Typing, Mutable Default Arguments, Scope, and List Modification
Top Architect
Top Architect
Mar 14, 2022 · Backend Development

Understanding Spring Controller Scope: Singleton vs Prototype and Best Practices

This article explains why Spring MVC controllers are singleton by default, demonstrates the thread‑unsafe behavior of using instance fields, shows how applying @Scope("prototype") changes the behavior, and provides practical recommendations such as avoiding mutable fields, using prototype scope or ThreadLocal for safe controller design.

ControllerJavaPrototype
0 likes · 6 min read
Understanding Spring Controller Scope: Singleton vs Prototype and Best Practices
Architect's Tech Stack
Architect's Tech Stack
Aug 29, 2021 · Backend Development

Mastering Maven: 7 Essential Topics for Java Project Build Management

This article explains Maven’s repository types, dependency declaration, conflict resolution strategies, best‑practice tips, standard directory layout, lifecycle phases, and scope definitions, providing Java developers with the knowledge needed to use Maven confidently in multi‑module projects.

JavaProject StructureRepository
0 likes · 10 min read
Mastering Maven: 7 Essential Topics for Java Project Build Management
ByteDance ADFE Team
ByteDance ADFE Team
Aug 25, 2021 · Fundamentals

Understanding V8 JavaScript Engine: Scopes, Execution Contexts, and Runtime Process

This article explains how the V8 engine parses JavaScript source code into an AST, establishes scope rules, creates isolates, handle scopes and contexts, and manages the execution context stack during interpretation and execution, illustrated with detailed code examples and diagrams.

ExecutionContextJavaScriptScope
0 likes · 11 min read
Understanding V8 JavaScript Engine: Scopes, Execution Contexts, and Runtime Process
360 Tech Engineering
360 Tech Engineering
Aug 3, 2021 · Fundamentals

Common Go Pitfalls: Loop Variable Capture, := Scope, Goroutine Pools, and Struct Memory Alignment

This article examines several subtle Go programming issues—including unexpected loop variable addresses, the scope nuances of the := operator, proper handling of goroutine concurrency with worker pools, and how struct field ordering affects memory alignment—providing code examples and practical solutions to avoid these pitfalls.

ConcurrencyGoLoop Variable
0 likes · 15 min read
Common Go Pitfalls: Loop Variable Capture, := Scope, Goroutine Pools, and Struct Memory Alignment
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 1, 2021 · Backend Development

Mastering Spring @Scope: Custom Scopes, Prototypes, and Injection Techniques

This guide explains how Spring's @Scope annotation determines bean lifecycles, shows the underlying source code handling singleton and prototype scopes, demonstrates creating and registering a custom scope, and provides practical examples of using custom and prototype-scoped beans with proper proxy configuration in Spring Boot.

Custom ScopePrototypeScope
0 likes · 7 min read
Mastering Spring @Scope: Custom Scopes, Prototypes, and Injection Techniques
Python Programming Learning Circle
Python Programming Learning Circle
May 18, 2021 · Fundamentals

Understanding Python Variables, Scope, References, Lambda Functions, and Recursion

This article explains Python's local and global variables, how to modify globals within functions, demonstrates variable referencing, introduces anonymous lambda functions, and illustrates recursion with factorial examples, providing code snippets for each concept.

PythonScopeVariables
0 likes · 6 min read
Understanding Python Variables, Scope, References, Lambda Functions, and Recursion
Practical DevOps Architecture
Practical DevOps Architecture
Mar 23, 2021 · Fundamentals

Understanding Python Functions: Definition, Scope, and Calls

This article explains how Python functions enhance modularity and code reuse, covering their definition syntax, variable scope rules, and both positional and keyword calling conventions with clear examples and code snippets.

FunctionsPythonScope
0 likes · 4 min read
Understanding Python Functions: Definition, Scope, and Calls
Java Captain
Java Captain
Feb 15, 2021 · Backend Development

Understanding Spring Boot Controller Scope: Singleton vs Prototype and Thread Safety

This article explains why Spring MVC controllers are singleton by default, demonstrates the thread‑safety issues caused by non‑static member variables, shows how applying @Scope("prototype") changes behavior, and summarizes the five Spring bean scopes with practical recommendations.

ControllerPrototypeScope
0 likes · 5 min read
Understanding Spring Boot Controller Scope: Singleton vs Prototype and Thread Safety
Top Architect
Top Architect
Dec 8, 2020 · Backend Development

Understanding Thread Safety of Spring Beans: Singleton vs Prototype Scope

This article explains why Spring beans are not inherently thread‑safe, compares the singleton and prototype scopes, shows how stateless beans can be safe, demonstrates the impact of static fields and injected beans, and provides practical code examples and recommendations for achieving thread safety in Spring applications.

BeanJavaPrototype
0 likes · 11 min read
Understanding Thread Safety of Spring Beans: Singleton vs Prototype Scope
Selected Java Interview Questions
Selected Java Interview Questions
Jul 27, 2020 · Backend Development

Understanding Spring Controller Scope and Thread Safety

The article explains why Spring MVC controllers are singleton by default, demonstrates the resulting thread‑unsafe behavior with example code, shows how applying @Scope("prototype") makes them prototype scoped, and provides best‑practice recommendations and a summary of Spring bean scopes.

BeanControllerPrototype
0 likes · 5 min read
Understanding Spring Controller Scope and Thread Safety