Tagged articles
macros
21 articles · Page 1 of 1

21CTONov 17, 2026 · Fundamentals
A developer reflects on six years of Rust, explaining how its sum types, pattern matching, static dispatch, type-driven development, macros, ownership model, and arena pattern transformed their approach to software design and performance.
Rustarena patternmacros
0 likes · 19 min read

This article explores the purpose and implementation of UIKIT_EXTERN and related macros in iOS, explaining how they manage global constants, control symbol visibility across dynamic libraries, and provide practical examples of extern, static, and const usage for compilation optimization and conflict resolution.
UIKIT_EXTERNconstextern
0 likes · 12 min read

This article walks through C static keyword meanings, struct size calculations, macro definitions, hexadecimal conversion functions, a full‑featured Linux I2C driver example, and a list of common interview questions for embedded and kernel development, providing clear explanations and code snippets.
C++EmbeddedI2C
0 likes · 13 min read

This article explains C preprocessor macros in depth, covering simple constant replacement, parameterized macros, stringification, token‑pasting, predefined macros, variadic macros, conditional compilation tricks, common pitfalls, and best‑practice recommendations for safe usage.
C++Preprocessorcode generation
0 likes · 11 min read

This guide explores C preprocessor macros in depth, covering basic constant and function‑like macros, stringification, token‑pasting, predefined macros, variadic macros, and practical tricks like conditional logging and simulated try‑catch, while warning about common pitfalls.
C++Preprocessorcode generation
0 likes · 10 min read

This article outlines a Rust programming book that starts with fundamental syntax, variables, and memory management, then progressively explores ownership, lifetimes, error handling, concurrency, async programming, traits, macros, and practical examples, providing code snippets and core concepts for each topic.
Advanced ConceptsConcurrencyRust
0 likes · 16 min read

This article explains how Laravel developers can use Laravel Macros to encapsulate repetitive data‑handling logic, attach custom methods to core classes such as Collections and Eloquent models, improve code reuse, maintainability, and development efficiency, while also covering best practices and potential pitfalls.
LaravelService Providercode reuse
0 likes · 10 min read

This guide explains core C programming concepts—including bitwise operators, macro definitions, conditional compilation directives, extern declarations, typedef aliases, struct usage, and the static keyword—providing clear examples and code snippets to help developers write more efficient and maintainable code.
C++Conditional CompilationStruct
0 likes · 10 min read

This guide explains how to use Laravel macros and Mixins to extend the Str and Arr helper classes, providing reusable methods such as fullName, initials, camelToSnake, snakeToCamel, and filterNulls, and demonstrates registration via AppServiceProvider for cleaner, maintainable backend code.
BackendLaravelPHP
0 likes · 8 min read


21CTOOct 14, 2023 · Mobile Development
Swift 5.9 introduces expressive macros, parameter packs, ownership‑based memory management, and limited C++ interop, while also allowing if and switch to be used as expressions, bringing powerful new tools to iOS developers.
C++ interopSWIFTSwift 5.9
0 likes · 8 min read

This article explains the three common techniques for wrapping C function‑like macros—plain braces, do{…}while(0), and the GNU ({}) extension—detailing their syntax, usage pitfalls, advantages, disadvantages, and recommendations for safe macro design.
C++Code safetyGNU extension
0 likes · 8 min read

This article provides a comprehensive guide to C functions—including their categories, signatures, parameter passing, pointer parameters, variadic arguments, callbacks, and recursion—and delves into the C preprocessor, covering directives, macro definitions, operators, and practical macro examples for safer and more expressive code.
C++Preprocessorfunctions
0 likes · 17 min read

This article walks through essential C concepts for embedded development, including macro definitions for constants and MIN, the use of #error, infinite loops, variable declaration patterns, the roles of static, const, and volatile, bit‑mask operations, absolute address access, ISR constraints, unsigned‑int quirks, safe typedef usage, and tricky expressions like a+++b.
Const keywordPointer typesVolatile keyword
0 likes · 19 min read

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.
UIKIT_EXTERNconstextern
0 likes · 11 min read

Rust 1.54.0 introduces support for invoking function‑like macros within attributes, enabling inclusion of external documentation via include_str! and nested macro usage, while also stabilizing many wasm32 intrinsics—including safe SIMD functions like v128_bitselect—expanding WebAssembly capabilities.
RustSIMDWebAssembly
0 likes · 3 min read


ByteFEMay 6, 2021 · Frontend Development
This article explains how to write a Babel macro that fetches JavaScript libraries from a URL at compile time, covering macro concepts, limitations of JavaScript macros, preparation steps, a full importURL macro implementation, AST handling, synchronous requests, and post‑processing details.
Babelmacrosnodejs
0 likes · 11 min read

This article explains how Tubi customizes Spark SQL using lightweight macro‑based extensions to simplify column exclusion, JSON path queries, and other complex operations without modifying Spark's source code, detailing the two‑stage processing, example macros, and benefits for big‑data workloads.
Custom SQLScalaSpark SQL
0 likes · 9 min read

This guide explains how to use Vim macros to record and replay sequences of commands, enabling you to quickly repeat text insertion, generate numbered lists, or prepend identical strings to multiple lines, dramatically reducing manual editing effort.
Text Editingmacrosprogramming fundamentals
0 likes · 8 min read

This article presents five practical PyCharm techniques—including code folding shortcuts, refactoring with scope awareness, macro recording for repetitive tasks, multi‑row tab management, and advanced search—to help developers work faster and keep their codebase clean and organized.
IDEPyCharmcode folding
0 likes · 6 min read

This article explains C macro fundamentals, covering object-like and function-like macros, advanced techniques such as variadic macros, token pasting, and practical examples like NSLog, singleton, and weak/strong patterns in ReactiveCocoa in iOS development.
C++Objective-C++Preprocessor
0 likes · 16 min read


ITPUBApr 25, 2016 · Fundamentals
This article compiles a comprehensive set of embedded‑C interview questions covering preprocessors, macros, infinite loops, data declarations, static, const, volatile, bit manipulation, fixed‑address memory access, interrupts, code snippets, dynamic allocation, typedefs and obscure syntax, each with detailed explanations and example code.
C++Interview questionsMemory
0 likes · 19 min read
