This week's code snippet, Baklava in Ferret, is brought to you by Subete and the Sample Programs repo.
(defn print-repeat-string
([s n]
(if (> n 0)
(do
(print s)
(print-repeat-string s (dec n))
)
)
)
)
(defn baklava-line
([n]
(let [
num-spaces (abs n)
num-stars (- 21 (* 2 num-spaces))
]
(print-repeat-string " " num-spaces)
(print-repeat-string "*" num-stars)
(println)
)
)
)
(defn baklava
([n ne]
(if (<= n ne)
(do
(baklava-line n)
(baklava (inc n) ne)
)
)
)
)
(do
(baklava -10 10)
)
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: 🍎)
- ✒️ Life Update: I’m Doing Well
- ✒️ The Worst Use Cases for Generative AI That Are Already Mainstream
- ✒️ ChatGPT Is Stack Overflow for the Lazy and Helpless
- ✒️ The Acceleration of the Enshittification of Everything
- 🍎 4 Values We Have to Stop Pushing in Engineering Education
- ✒️ Generative AI Has a Short Shelf Life
- ✒️ Reflecting on My First Trip to Japan
- 🍎 SB1 Is the Death of Higher Education in Ohio
- ✒️ No, Generative AI Is Not Just Another Innovation
- 🍎 Generative AI Makes It Feel Bad to Be an Educator
Also, here are some fun links you can use to support my work.
This document was automatically rendered on 2025-07-18 using SnakeMD.