This week's code snippet, Baklava in Wyvern, is brought to you by Subete and the Sample Programs repo.
require stdout
def strRepeat(n:Int, s:String): String
if (n < 1) { "" } else { s + strRepeat(n - 1, s) }
def abs(n:Int): Int
if (n < 0) { -n } else { n }
def baklava(n:Int, end:Int): Unit
// This is definitely the weirdest formatting for an if-else statement that I've ever seen
if (n > end)
unit
else
val numSpaces:Int = abs(n)
stdout.print(strRepeat(numSpaces, " ") + strRepeat(21 - 2 * numSpaces, "*") + "\n")
baklava(n + 1, end)
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: 🍎)
- ✒️ 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
- ✒️ Human Review of AI Output Is Not the Path Forward
- ✒️ I Made the Mistake of Visiting the Vibe Coding Subreddit
- ✒️ You’ve Fallen for the Red/Blue Button Trap
- 🍎 Another Year, Another Japan Trip
- 🍎 The Importance of Getting Summers Off
- ✒️ Practicing My Toddler-like Japanese in Japan
Also, here are some fun links you can use to support my work.
This document was automatically rendered on 2026-07-24 using SnakeMD.