This week's code snippet, Reverse String in Ocaml, is brought to you by Subete and the Sample Programs repo.
let reverse s =
let len = String.length s in
String.init len (fun i -> s.[len - i - 1])
let () =
print_endline
(match Sys.argv with [||] | [| _ |] -> "" | args -> reverse args.(1))
(* Any additional arguments are ignored, following the example of other samples in this repo *)Below you'll find an up-to-date list of articles by me on The Renegade Coder. For ease of browsing, emojis let you know the article category (i.e., blog: ✒️, code: 💻, meta: 💭, teach: 🍎)
- ✒️ I Don’t Really Trust Surveys
- ✒️ AI Literacy, Shame, and Nuance
- 🍎 Recommended Reading: “To teach in the time of ChatGPT is to know pain” by Scott K. Johnson
- 🍎 Writing Code on Paper Is Good Actually
- ✒️ People Don’t Like to Be Deceived (by AI)
- 🍎 Generative AI in Education is Pay-to-Lose
- ✒️ My First “I Have a Toddler” Moment
- ✒️ LLMs Got Everyone Sounding the Same Now
- ✒️ 6v6 Overwatch Is a Joke
- ✒️ I Genuinely Don’t Understand Why People Tolerate Hallucinations in AI
Also, here are some fun links you can use to support my work.
This document was automatically rendered on 2026-09-04 using SnakeMD.





