DEV Community


Discussion on: When do you think it’s the right time to create your own coding language? Answer for the chance to be featured on our podcast!

andrewbrown profile image
Andrew Brown 🇨🇦

When you have no other choice but to do so.

I created my own template language for working with PSQL Queries because we used to just use handlebars but the ruby implementation was actually just wrapping the nodejs implementation, and fun fact, that wasn't thread-safe.

I couldn't just move to a pure ruby handlebars implementation because the snytax was too different, so I had to reimplement what I used using Parslet.

I created it by finding a handlebars implementation in Parslet and I walked through the commit messages until I could make sense of how to build my own langauge.