This week's code snippet, Baklava in Owl Lisp, is brought to you by Subete and the Sample Programs repo.
(define (string-repeat n str)
(fold string-append "" (make-list n str))
)
(define (baklava-line n)
(define num-spaces (abs n))
(define num-stars (- 21 (* 2 num-spaces)))
(print (string-repeat num-spaces " ") (string-repeat num-stars "*"))
)
(define (baklava n ne)
(if (<= n ne)
(begin
(baklava-line n)
(baklava (+ n 1) ne)
)
)
)
( (args) (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: π)
- π Generative AI Makes It Feel Bad to Be an Educator
- βοΈ The Problem With Centrism: A Case Study
- π Reflecting on My First Two Years as a Lecturer
- βοΈ Why I Left Twitter
- π» A Case Study on the Philosophy of Software Design
- βοΈ Inside the Mind of an Engineer: How to Make Societal Issues Worse
- βοΈ How Attack on Titan Undermines Its Own Message
- π» Migrating to Poetry 2.x With Some Best Practices
- βοΈ Maybe Generative AI Is Just a Symptom of a Broader Problem in Tech
- π Itβs Time to Collect Mid-Semester Feedback
Also, here are some fun links you can use to support my work.
This document was automatically rendered on 2025-05-16 using SnakeMD.