A developer shares their personal C programming conventions for modern projects, including using C23 features, Rust-inspired type aliases (u8, i32, etc.), length-prefixed strings instead of null-terminated ones, and applying "parse, don't validate" principles through opaque types. The post covers creating tuple macros using

10m read time From unix.dog
Post cover image
Table of contents
the basicsparsing, not validatingtuples!returning resultson dynamic memory managementanything else?

Sort: