This site runs best with JavaScript enabled.johnlindquist.com

Building a Privacy VS Code Extension

Goal The goal of this stream was to build a VS Code extension that could hide all of the values displayed in a .env file. The Outcome We got so close to getting everything working, but when using the event system in VS Code, the file would completely render out the values of the .env file for…

Read Article →

Customize Karabiner With Goku

I love keyboards and I super love keyboard shortcuts. The #1 reason that I use a Mac is due to a single piece of software: Karabiner . I've been using Karabiner for many years now and it's something that you set once and expect it to work every day that you open up your computer. A 2242 Line Config…

Read Article →

Rolling Your Own Creation Operators in RxJS

The Value of Writing Your Own Operators When you import {Observable} from "rxjs" , you open up a world of possibility. Granted, RxJS ships a lot of operators that handle a lot of edge cases, but we've seen many people abandon lodash/underscore to write their own array utils. So why not RxJS…

Read Article →

Simplifying mergeMap in RxJS

What Does mergeMap Do? Let's take the example of "click to start a timeout". In vanilla JavaScript, you would write it like this: If you understand that, you can understand mergeMap . mergeMap starts with source #1 (the document clicks) then inside the callback, starts source #2 (the timeout…

Read Article →

Why are RxJS Operators and Pipe So Confusing?

What Does Pipe Do Anyway? Let's take a quick look at the most common RxJS example. This code will log out MouseEvents from clicking on the documuent: So what happens when we add a pipe into the mix: As it turns out, our MouseEvent s are still logged out. This is the exact same behavior as…

Read Article →

Subject in RxJS vs. Subject in the Observer Pattern

The Observer Pattern had Subjects... 🤔 True, true, we've seen subjects already . But, in RxJS-land, Subjects are a combination of Observables and Observers! 🤯 So that means we need to combine our previous concept of a subject: with our new concept of an Observable and Observers: Let's see how…

Read Article →

Is an Observable Part of the Observer Pattern?

TL;DR No. Goodbye State 👋 In our previous post we defined observers as objects that take a subject and can pull the state in. With Observables , the concept of "state" is gone. We're now thinking in events (AKA "pushing values over time"). Because state is gone, we can rip most everything…

Read Article →