Off the Path
by in CodeSOD on 2026-06-29File path separators are a common pain point when writing cross platform software. Of course, not every programming language has a graceful API for handling that. For example, prior to C++ 17, you had to do some #ifdef preprocessor magic to handle that. Which people usually did (or they'd use the Boost suite of libraries).
Code like this wouldn't be out of place or incorrect:
