rails activeform - put accepts_nested_attributes_for in its place

I don’t know about you, but the amount of successes I had with accepts_nested_attributes_for were few and far between. It always felt like a clunky API. If you’ve ever worked on a large rails project you also know the benefits of giving a form its own proper class, instead of...


introduction to liquidsoap's programming language

I’d like to write a post to try to understand liquidsoap’s own scripting language. Liquidsoap is a functional language, which you may find confusing if you have not programmed much before. In functional languages you can’t do things you might be used to doing in other languages like mutating values,...


liquidsoap fallbacks explained

Preventing Radio Castatrophy In liquidsoap, the last thing you want is your users to hear silence. There are many reasons this could happen, the DJ fell asleep/got drunk, there’s a bad file in the playlist that cannot be played, etc. The fallback function In liquidsoap you can prevent disasters with...


liquidsoap dynamic playlist

In my liquidsoap getting started guide I show you how to use a simple text based playlist. In this guide I wanted show you how to use request.dynamic to build a playlist that is based on any function at all, not just reading a simple text file. You could determine...


docker containers vs docker images

Docker is often portrayed as a beautiful blue whale shipping containers full of rails apps. The ‘container’ metaphor is pretty easy to grasp I think. What you might not realize is there is the concept of ‘images’ as well. Think of images as a blueprint or plan for creating a...