Tag: Modules
5 posts
-
Python Modules and Packages: import, sys.path, pip and venv
Organize Python code into modules and packages: import styles, relative imports, __init__.py, pip, requirements.txt, venv and fixing ModuleNotFoundError.
-
Node.js Module System: CommonJS and ES Modules Explained
CommonJS vs ES modules in Node.js: require vs import, exports vs module.exports, resolution, caching, circular dependencies and "Cannot find module" fixes.
-
JavaScript Modules | ES Modules and CommonJS Explained
JavaScript modules: ES import/export vs CommonJS require, browser type=module, dynamic import(), bundlers (Webpack vs Vite), barrels, and Node type.
-
C++20 Modules: export/import, Partitions and Building with GCC, Clang, MSVC and CMake
C++20 modules: export/import, partitions, global fragments, GCC/Clang/MSVC, CMake 3.28+—parse once, reuse BMIs, faster builds than plain headers.
-
C++ Header Guards: #ifndef vs #pragma once and Portability
How #ifndef guards and #pragma once stop double inclusion, why they cannot prevent multiple definition link errors, macro collisions and circular includes.