Tagged articles
global variables
13 articles · Page 1 of 1
Global variables are convenient in embedded projects but can cause memory waste, tight module coupling, hard‑to‑track bugs, and portability issues, especially in RTOS multitasking; this article explains the underlying memory layout, common traps, and practical techniques to use globals safely.
Best PracticesConcurrencyRTOS
0 likes · 19 min read

This article explains how an operating system divides a C/C++ program's virtual address space into four distinct regions—code, global, stack, and heap—detailing their lifetimes, permissions, management rules, and common pitfalls such as memory leaks, dangling pointers, and stack overflow.
C++Heapcode segment
0 likes · 13 min read

A C++ service that crashes after a harmless log module addition is traced back to undefined cross‑file global initialization order, revealing the static initialization order fiasco and how linking order and compiler‑generated init arrays can cause runtime failures.
C++Initialization FiascoMeyers Singleton
0 likes · 7 min read

This article explains the distinction between global and local variables in Python, demonstrates how to use the global keyword to modify variables across scopes, provides detailed examples, best‑practice guidelines, common pitfalls, and exercises to help you write cleaner, more maintainable code.
Pythoncoding practiceglobal variables
0 likes · 12 min read

This guide explains the purpose and naming rules of local variables, walks through creating a calculator page with named inputs and button click events, shows how to combine logical conditions using && and ||, and contrasts local variables with global variables for cross‑page data sharing.
event handlingfrontendglobal variables
0 likes · 3 min read

This guide explains how to create a login and success page in Axure, define global variables for username and password, bind them to input fields, configure button click events, and control action order so that variable assignment occurs before page navigation.
Axureevent handlingglobal variables
0 likes · 3 min read

This article explains why C programs can sometimes compile and run correctly even when global variables or functions are defined multiple times, by introducing symbol tables, the distinction between strong and weak symbols, and the linker rules that decide which definition is used.
compilationglobal variableslinker
0 likes · 7 min read

This article explains the C language memory segmentation—including stack, heap, global/static, constant, and code areas—illustrates their behavior on STM32F103 with Keil V5, and provides detailed example code that prints the addresses of variables in each region to demonstrate allocation and lifetime.
C++EmbeddedHeap
0 likes · 9 min read

The article warns that overusing global variables in os‑less embedded C projects creates tangled code, blurs system layers, and leads to maintenance nightmares, then offers two core principles and practical tips to limit, encapsulate, and manage globals for more reliable firmware.
Best Practicesembedded Cglobal variables
0 likes · 7 min read

This article explains the concepts and practical usage scenarios of global and local variables in Python, illustrating their roles in data sharing, configuration, temporary storage, scope isolation, and exception handling with clear code examples for interface automation and general programming.
Code ExamplesPythonglobal variables
0 likes · 5 min read

During a weekend browsing session, I discovered Chrome's offline Dino game, inspected its global JavaScript objects, filtered out native properties using a fresh window, identified the Runner constructor, and manipulated its methods to control the dinosaur's behavior—all without altering the source code.
ChromeDino GameJavaScript
0 likes · 6 min read

GrowingIO’s frontend team transformed its monolithic SaaS product into a micro‑frontend architecture to support on‑premise deployments, detailing the motivations, design principles, code adaptations, integration strategies, and challenges such as dependency conflicts, global variables, and style isolation.
Frontend Architectureglobal variablesmicro-frontend
0 likes · 11 min read

JavaScript global variables can be created either explicitly with var or implicitly without it, but only the implicit globals are deletable; this article explains the underlying property descriptor differences, demonstrates delete behavior, and shows how to modify configurability using Object.defineProperty.
delete operatorglobal variablesproperty descriptor
0 likes · 3 min read
