Skip to content
PBS 160 of X — jq as a Programming Language episode artwork

Feb 5, 2024 1 hr 24 min

PBS 160 of X — jq as a Programming Language

from Programming By Stealth

In this week's installment of Programming By Stealth, Bart Busschots teaches us how to use jq as a programming language. Before we get into the new stuff, Bart takes us through his solution to the challenge, and I have to say I was pretty chuffed when he said my solution to the extra credit portion was more elegant than his. To be fair, it took a buddy programming session with him for me to get the _first_ part of the challenge figured out. When we got into the programming language part of the lesson, there were so many times that I said, "I needed this last week!" I think finding out these options are available after understanding the problems they solve was fantastic. We learned how to run jq filters from files, which means no more looking at our filters all on one line - we can put line feeds and indents into our filters to make them more readable. We can even add comments. Bart tells us about a couple of handy plugins for VS Code to give us syntax highlighting which will be swell. My favorite thing I learned was how to add debugging to our filters. This one is a life changer. We explore a few functions for exploring data filters that will make life easier. We wrap up with an introduction to jq variables, which the developers of jq really don't want you to use unless absolutely necessary.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

PBS 160 of X — jq as a Programming Language

0:00 1:24:53

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Programming By Stealth?

This episode is 1 hour and 24 minutes long.

When was this Programming By Stealth episode published?

This episode was published on February 5, 2024.

Can I download this Programming By Stealth episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.