Tagged articles
9 articles
Page 1 of 1
Code Wrench
Code Wrench
Oct 23, 2025 · Backend Development

Master Go Conditional Compilation: Build Constraints, Tags & Examples

Learn how Go’s powerful conditional compilation system—using file suffixes and build tags—enables precise control over platform-specific code, debug/release modes, and feature toggles, with detailed explanations, common pitfalls, a full-featured logger example, Makefile automation, and CI/CD integration.

GoMakefileconditional compilation
0 likes · 10 min read
Master Go Conditional Compilation: Build Constraints, Tags & Examples
BirdNest Tech Talk
BirdNest Tech Talk
Jul 30, 2024 · Fundamentals

Master Conditional Compilation in Rust with cfg_if: A Practical Guide

This article explains how the Rust cfg_if crate simplifies conditional compilation by providing a macro that replaces nested #[cfg] attributes with clear if‑else or match structures, shows step‑by‑step usage, advanced patterns, and compares cfg_if to raw #[cfg] for readability and maintainability.

BackendRustcfg_if
0 likes · 8 min read
Master Conditional Compilation in Rust with cfg_if: A Practical Guide
Alibaba Terminal Technology
Alibaba Terminal Technology
Aug 11, 2023 · Frontend Development

Mastering Conditional Compilation for Efficient Cross‑Platform Mini‑Program Development

This article explains how conditional compilation can eliminate redundant code in cross‑platform mini‑program projects, describes the syntax and implementation details in MorJS, and shows practical examples for code‑level and file‑level compilation strategies that improve performance, maintainability, and product consistency.

Code OptimizationMini ProgramMorJS
0 likes · 15 min read
Mastering Conditional Compilation for Efficient Cross‑Platform Mini‑Program Development
Liangxu Linux
Liangxu Linux
Jul 30, 2023 · Fundamentals

5 Little‑Known C Tricks That Can Boost Your Code

This article explores five obscure yet useful C language features—enum bit‑fields, label‑and‑goto error handling, varargs functions, unconventional union usage, and conditional compilation—providing clear explanations and code examples to help programmers write more flexible and efficient code.

Advanced TechniquesEnum BitfieldsGoto
0 likes · 5 min read
5 Little‑Known C Tricks That Can Boost Your Code
BaiPing Technology
BaiPing Technology
Jan 31, 2022 · Frontend Development

On-Demand JS Imports: async import(), Babel plugin, Tree Shaking, Conditional Compilation

This article explains various on-demand import techniques for modern JavaScript projects, covering the native async import() syntax, the Babel plugin-import for selective library loading, Tree Shaking to eliminate dead code, and conditional compilation using tools like uglify-js-plugin and js-conditional-compile-loader.

conditional compilationdynamic importfrontend
0 likes · 11 min read
On-Demand JS Imports: async import(), Babel plugin, Tree Shaking, Conditional Compilation
Qunar Tech Salon
Qunar Tech Salon
May 10, 2016 · Fundamentals

Best Practices for Deleting Code and Managing Dead Code

The article explains why and how to properly delete or disable unused code, emphasizing the use of source‑control systems, clear commenting, conditional compilation, and disciplined cleanup to reduce noise, uncertainty, and maintenance overhead in software projects.

code deletioncommentingconditional compilation
0 likes · 10 min read
Best Practices for Deleting Code and Managing Dead Code