#Christmas #coding #challenge: write a program that prints the full lyrics to the Twelve Days of Christmas, but be #weird about it.

Choose whatever programming language you like. Use the language’s idiosyncrasies to your advantage.

For example, in C you might blend a for-loop with a switch-statement and liberally use case fallthrough. In BASIC you might use computed GOTO. In HTML+CSS you might use counters and selectors to do the numbering. In SQL you might use SQL.

Go.

Submissions so far in: awk, C, Clojure, Haskell, JavaScript, LINQ, Lua, nu, Perl, PostgreSQL, Powershell, Python, Ruby, Rust, Terraform, XQuery, XSLT, as well as a hardware implementation on an Arduino and a couple of very cool visualizations.

@futzle
Ok, so I don't "write code" exactly, I use code to visualise things. And I thought one way to visualise the 12 days of Christmas lyrics was with a Sankey diagram. I am sorry, this is an abomination.
@futzle Ok this is my second terrible idea on the same theme, using a chord diagram. I switched to R for this because Python was annoying. I think I like this version better than the sankey diagram.

@pelagikat @futzle

This is clearly better, and also it will really annoy David McCandless.

@pelagikat Haha this one I think earns the cursed moniker. These are both awesome and I think they're useful educational tools for how these diagrams are constructed and how to interpret them.
@pelagikat @futzle this is awesome, and i like the small touch of the colour choice for 5.

@pelagikat @futzle I was baffled for a while about how small the partridge in a pear tree segment was until I realised the relevance of the line thickness.

This is glorious. Hat's off.

@pelagikat I don't know if this is better or not, but it is more aesthetically pleasing
@pelagikat @futzle This delights me so much. Thank you.
Unexpected postscript to these plots: I shared these plots in the vintage sewing discord's Exhibition channel and people are saying it is cool inspo for embroidery projects 
@pelagikat Actual gold thread, please!
Second unexpected postscript to these plots: I shared them in my work's team Teams chat and someone responded by doing a Principal Component Analysis on the lyrics. I can't share any of the output though because work blocks screenshots, copying text, and downloads on work apps on my phone and I've shut down my laptop.
@pelagikat @futzle (edit: these are apparently called "atomic foil baubles", in case anyone recognises them and wants to find some)
@pelagikat @futzle
Absolutely gorgeous! I' m so happy over this version. Thank you!
@pelagikat
That would be a great ornament!
@futzle
@pelagikat oh yes this is xmas to me 😃