Showing a naive split-on-comma parser fail 4 out of 5 real-world edge cases—quoted commas, doubled escape quotes, embedded newlines inside fields, and trailing CR bytes from CRLF files—is a crisp reminder that CSV is a stateful grammar, not a flat delimiter format. Replacing it with a small character-by-character state machine immediately makes the parsing rules explicit.
In production data ingestion, two extra quirks routinely bite teams even after handling quotes and CRLF: UTF-8 BOM prefixes glued onto the very first column header name, and inconsistent delimiters like semicolons from European Excel exports. Using a battle-tested RFC 4180 parser avoids re-discovering all of those in production.