In this penultimate jq episode of Programming By Stealth, Bart introduces us to three new ways to process arrays and dictionaries without exploding them first. I know that sounds crazy – we’ve always exploded our arrays first. He teaches us how to use the reduce operator which lets us take an entire array or dictionary […]
Continue readingTag: arrays
CCATP #788 — Bart Busschots on PBS 162 of X — jq: Altering Arrays & Dictionaries
Bart Busschots is back to teach us how to alter arrays and dictionaries in JSON files using jq. Bart went through his challenge solution on cleaning up the Nobel Prize database and I learned a lot from it. Maybe he’d already taught all of it to us before but I sure wouldn’t have been able […]
Continue readingCCATP #784 — Bart Busschots on PBS 159 of X – jq: Building Data Structures
In this very meaty episode of Programming By Stealth, Bart Busschots teaches us how to build data structures using jq with JSON files. We’re not just querying existing data, we’re rebuilding the data the way we want to see it. We learn how to build strings with interpolation, which I find is a very odd […]
Continue readingCCATP #762 — Bart Busschots on PBS #147 – Bash Arrays
In this week’s episode of Programming By Stealth, Bart walks us through how to create, add to, and extract from arrays using Bash. It’s a very light episode, which I manage to drag out longer by making him slow down and dig into the syntax used for arrays. It’s not just me being dense (this […]
Continue readingCCATP #698 – Bart Busschots on PBS 124 of X – Chezmoi Templates
Bart has been really excited to teach this next installment of Programming By Stealth where we really dig into learning about Chezmoi templates, including learning functions and arguments, how to declare variables, looping over arrays, and learning the sprig utility functions to extend Chezmoi. I thought he was going to jump out of his chair […]
Continue readingCCATP #613 – Bart Busschots on PBS 85 of X — Objects as Arrays in JavaScript (Redux & Update)
Bart continues his redux and new information by circling back through Objects as Arrays in JavaScript. I don’t know about you, but I get a lot out of the redux episodes because it cements in place concepts that were a bit wiggly before he goes through it again. The one new concept he goes through […]
Continue readingCCATP #522 – Bart Busschots on PBS 49B of X – Object Revision & Improving Our Cellular Automata
As promised last week, Bart Busschots brings us the second half of Programming By Stealth 49. We start by going through a lot of revision on JavaScript objects. It’s really great to have all of this all in one place, and I got to ask a few questions that have been bugging me for a […]
Continue readingCCATP #516 – Bart Busschots on PBS 46 – ES6 Spread Operator, Arrow Functions & Classes
In this installment of Programming By Stealth, Bart adds one more thing to the list of changes to arrays, and that’s the spread operator. Then we’ll learn how to get rid of the “const self = this” kludge for callbacks using the arrow functions. After that, we learn the basics of classes, a concept introduced […]
Continue readingCCATP #514 – Bart Busschots on PBS 45 – ES6 Arrays & Strings
In this week’s Programming By Stealth, Bart starts by actually giving me credit for leading him to rethink his strategy on the use of const and let. He was nudged along in the strategy by the most awesome Jill. Then Bart goes on to reveal even more of the joy that is JavaScript ES6. He […]
Continue readingCCATP #511 – Bart Busschots on PBS 44 – ES6 Arguments & Objects
In this installment of Programming By Stealth, Bart Busschots teaches us new ways to deal with arguments and objects in JavaScript ES6. We learn how to set default argument values for functions in a way that is self-documenting. He explains how variadic (aka Rest) arguments allow you to shove all of the arguments of a […]
Continue reading