Tagged articles
20 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Jun 7, 2025 · Fundamentals

Unlock the Hidden Power of C Macros: From Basics to Advanced Tricks

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.

MacrosPreprocessorc++
0 likes · 11 min read
Unlock the Hidden Power of C Macros: From Basics to Advanced Tricks
BirdNest Tech Talk
BirdNest Tech Talk
Jan 1, 2025 · Fundamentals

Master Rust: From Basics to Advanced Concepts in One Comprehensive Guide

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 ConceptsAsyncMacros
0 likes · 16 min read
Master Rust: From Basics to Advanced Concepts in One Comprehensive Guide
php Courses
php Courses
Aug 6, 2024 · Backend Development

Leveraging Laravel Macros to Extend Framework Functionality

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.

LaravelMacroscode-reuse
0 likes · 10 min read
Leveraging Laravel Macros to Extend Framework Functionality
php Courses
php Courses
Apr 9, 2024 · Backend Development

Laravel Mixins: Extending Str and Arr Helpers with Macros

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.

BackendLaravelMacros
0 likes · 8 min read
Laravel Mixins: Extending Str and Arr Helpers with Macros
Liangxu Linux
Liangxu Linux
Sep 21, 2023 · Fundamentals

When to Use {} vs do{…}while(0) vs ({}) in C Function‑like Macros

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.

GNU extensionMacrosc++
0 likes · 8 min read
When to Use {} vs do{…}while(0) vs ({}) in C Function‑like Macros
AI Cyberspace
AI Cyberspace
Mar 6, 2023 · Fundamentals

Master C Functions and Macros: From Basics to Advanced Preprocessor Tricks

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.

MacrosPreprocessorc++
0 likes · 17 min read
Master C Functions and Macros: From Basics to Advanced Preprocessor Tricks
Liangxu Linux
Liangxu Linux
Sep 10, 2022 · Fundamentals

Master C Preprocessor Tricks, Static/Const/Volatile Keywords, and Common Embedded Pitfalls

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.

C ProgrammingConst keywordMacros
0 likes · 19 min read
Master C Preprocessor Tricks, Static/Const/Volatile Keywords, and Common Embedded Pitfalls
Sohu Tech Products
Sohu Tech Products
Dec 8, 2021 · Mobile Development

Understanding UIKIT_EXTERN and Macro Usage in iOS Development

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.

MacrosUIKIT_EXTERNconst
0 likes · 11 min read
Understanding UIKIT_EXTERN and Macro Usage in iOS Development
ByteFE
ByteFE
May 6, 2021 · Frontend Development

Creating a Babel Macro to Import Remote Modules (importURL)

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.

Macrosbabelnodejs
0 likes · 11 min read
Creating a Babel Macro to Import Remote Modules (importURL)
Liangxu Linux
Liangxu Linux
Oct 17, 2019 · Fundamentals

Master Vim Macros: Automate Repetitive Text Editing in Seconds

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.

MacrosText Editingprogramming fundamentals
0 likes · 8 min read
Master Vim Macros: Automate Repetitive Text Editing in Seconds
ITPUB
ITPUB
Apr 25, 2016 · Fundamentals

Essential C Interview Questions for Embedded Systems: Preprocessor, Macros, and More

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.

MacrosMemoryPreprocessor
0 likes · 19 min read
Essential C Interview Questions for Embedded Systems: Preprocessor, Macros, and More