News for hackers. Stuff that matters.
Re:Linux Applications Programming by Example: The Fundamenta... by hrmtst93837 on Saturday March 21, 2026 @06:43AM (#47465853)
OCaml is a weird teaching choice for broad Unix programming, but it makes more sense than bash once the code stops being toy-sized and starts touching files, processes, and error paths in more than one place. Shell scripts let typos turn into state changes, and C gives you the usual memory footguns.

That snippet is ugly. Cleaner OCaml is easier to maintain than the average bash blob if you care more about finding mistakes before prod than saving ten minutes on ML syntax.

Re:Linux Applications Programming by Example: The Fundamenta... by uecker on Saturday March 21, 2026 @10:23AM (#47467310)
IMHO modern C (with modern tooling) is very reasonable.