Programatic Christmas Hymns

(Printer friendly version)

Have I been doing too much programming lately? (Or maybe I'm just a nerd at heart...?)

I ask because I strongly suspect I was the only person in the congregation today at Church who had the following Tcl-snippet immediately spring to mind when the choir began to sing a particular hymn:

interp alias {} christmas-messagify {} string map -nocase {l {}}

Can you guess the hymn? (Hint: It's a traditional English carol; ca. 16th-century per this source.)

—Michael A. Cleverly

Comments

Roberto Mello: [ mail | www | link ]

Wow, I haven't had a snippet of code come up to my head during a hymn. You must be doing programming AND be a nerd at heart, both of which can be great things!

I haven't done Tcl in too long to guess what the hymn is?

Mon, 22 Dec 2008, 12:31

Michael A. Cleverly: [ mail | www | link ]

A hint; here is the same (or similar) concept using standard Unix command line utilities:

  • sed -e 's/[Ll]//g'
  • grep -iv l
  • awk '!/[Ll]/'

Thu, 25 Dec 2008, 18:26

stevel: [ mail | www | link ]

package forget L

:)

Sat, 27 Dec 2008, 01:41

Instagram photos: [ mail | www | link ]
Thanks for sharing this post.This tutorial will empower you with the knowledge and skills to effortlessly transfer Instagram photos onto your phone, ensuring that your most treasured memories remain conveniently accessible. Moreover, as a bonus, we'll delve into tracking your Instagram followers count along the way, adding an extra layer of insight to your Instagram experience. insatgram photos

Mon, 25 Sep 2023, 04:05

Leave a comment

Name:  
Email: (optional)
URL: (optional)

Your comment: