Sign in

Ben Lesh

@benlesh.bsky.social
3.3K followers 149 following 210 posts

RxJS lead. Dad. Art lover. I’ve worked at the NG in FAANG.

PostsRepliesMedia
Ben Lesh @benlesh.bsky.social · 21/02/2025
✨Heads up! Observables are shipping natively to a browser near you soon! Huge thank you and congrats to @domfarolino.com ❤️ I've helped / worked on / watched this through different standards bodies for more than 10 years now. ☠️ (I'm going to have a lot of work now to adapt RxJS to this 😅)
1321447
Ben Lesh @benlesh.bsky.social · 07/02/2025
🚨PSA: When copying GitHub URLs, always hit "Y" first! Hitting "Y" adds the current SHA to the URL. This ensures your link doesn't break as the repository changes over time.
An image highlighting the SHA in the URL after hitting the "Y" key on GitHub
35910
Ben Lesh @benlesh.bsky.social · 24/01/2025
I'm not sure why I never realized this, but it makes sense. JSX doesn't treat new lines in text the same way that the browser interprets them in HTML text content It's just interesting, in HTML the outcomes below would be the same.
440
Ben Lesh @benlesh.bsky.social · 03/01/2025
Progress photos part 2: I used a simple 3 color palette: Ultramarine blue, cadmium yellow light, and alizarin crimson. I used a relatively thin medium for the lower layers: 2:1 turpenoid to safflower oil. Getting heavier with more raw paint as I worked up.
120
Ben Lesh @benlesh.bsky.social · 03/01/2025
Progress photos part 1: The wash/underpainting is just burnt sienna and turpenoid.
120
Ben Lesh @benlesh.bsky.social · 03/01/2025
This is the first oil painting I've finished in 25 years. A long overdue gift for my parents. Although there's a lot to improve, I've never been happier with a painting. I'm not really an "artist" anymore, but a hobbyist. So I'll take it
4550
Ben Lesh @benlesh.bsky.social · 01/01/2025
Watching Ghostbusters 2. My favorite New Year's Eve movie. 🍻
060
Ben Lesh @benlesh.bsky.social · 20/12/2024
Oh no. I can’t see the controls on iPhone.
100
Ben Lesh @benlesh.bsky.social · 06/12/2024
000
Ben Lesh @benlesh.bsky.social · 06/12/2024
This is what happens when you try to use AI for professional art work. This is a Call of Duty: Black Ops loading screen. 🤣
Zombie Santa Claus with six fingers on his right hand
130
Ben Lesh @benlesh.bsky.social · 03/12/2024
#TypeScript PSA: If you're using `for..of` to do all of your iteration, you don't need to pass/type things as Array, use Iterable! `for..of` does iteration, so any Iterable will work. Passing `Item[]` here would be a unnecessarily restrictive:
5533
Ben Lesh @benlesh.bsky.social · 26/11/2024
Haha. So like... None of them?
4180
Ben Lesh @benlesh.bsky.social · 22/11/2024
I'm very impressed by Microsoft Edge's built-in shopping features. If you browse to an item on a retail site, Edge will give you price trend information and prices for other retailers! Super handy, IMO.
141
Ben Lesh @benlesh.bsky.social · 18/11/2024
lol... if only I contributed to open source. 😿 (It seems like this is off a little)
020
Ben Lesh @benlesh.bsky.social · 18/11/2024
It's been ages, but I swear that sometime in 2017 or so, @danr.bsky.social (TS team) told me "Use interfaces, not types, for objects". I've also seen people whom I trust less tell everyone to "use types, not interfaces". What is everyone doing now? cc @mattpocock.com
16371
Ben Lesh @benlesh.bsky.social · 17/11/2024
Spotted wild parakeets while waiting in line for barbecue here in Austin. 🦜🦜
2100
Ben Lesh @benlesh.bsky.social · 15/11/2024
In the minivan like...
130
Ben Lesh @benlesh.bsky.social · 15/11/2024
PSA: Use `crypto.randomUUID()` and not the `uuid` package. It's supported in all modern browsers and in Node >19.
// Old and busted
import { v4 as uuid } from 'uuid';
uuid();

// New hotness
crypto.randomUUID();
47513
Ben Lesh @benlesh.bsky.social · 14/11/2024
Side note: “danabra mov” reads like part of a Harry Potter spell.
020
Ben Lesh @benlesh.bsky.social · 08/11/2024
Does BlueSky have their own emojis? Or is this my new Windows machine showing me really lame looking emojis?? 🤪🫡🦆 Okay, I actually like the duck though...
6162
Ben Lesh @benlesh.bsky.social · 08/11/2024
I guess I don't spell Shawarma very often... Also, I feel like when that's what I'm ordering, I already know it's what I want when I walk in, so I probably don't even really read the menu. 🤔
010
Ben Lesh @benlesh.bsky.social · 07/11/2024
While perusing BlueSky, I came across this meme. I feel so included! 🥰 😂⚰️
5494
Ben Lesh @benlesh.bsky.social · 07/11/2024
Okay... here's a primitive example. Let's say that the expected version number updates 3 times in a row, but the actual only updates 1 time after all of that. What's ACTUALLY rendered here only changed twice. Which is fine in isolation. But the component has a lot of other hooks/logic to execute.
export function SomeComponent() {
  // ... up here there's a bunch of other hooks and logic
  // maybe a lot. Because "yay tech debt!".

  const expectedVersion = useExpectedVersion();
  const actualVersion = useActualVersion();

  const isUpToDate = expectedVersion === actualVersion;

  return <>
    {/* ... a lot of other stuff */}
    <div>{isUpToDate ? 'up to date' : 'out of date'}</div>
  </>
}
100
Ben Lesh @benlesh.bsky.social · 02/05/2023
And after looking through some GraphQL related stuff, I decided to checkout tRPC's offering for streaming data... and look! Another observable implementation. No RxJS here.
020
Ben Lesh @benlesh.bsky.social · 02/05/2023
More observables in the wild. Note that there's no RxJS here. That observable is yet another flavor of observable. This time from Facebook's Relay library.
260
Ben Lesh @benlesh.bsky.social · 27/04/2023
Wait! The orchid set?! We have that. Even have a light kit for it.
210
Ben Lesh @benlesh.bsky.social · 25/04/2023
I always think of the scene in Commando as the quintessential “gearing up” sequence. But I think you and Sam Raimi did it better. (No idea is this gif will work on this platform)
330
Ben Lesh @benlesh.bsky.social · 25/04/2023
I'll be honest, I'm disappointed but unsurprised here.
My name is Harry Potter.

Hello, Harry Potter! It's nice to meet you. How can I help you today?
110
Ben Lesh @benlesh.bsky.social · 24/04/2023
Today’s lunch bag art was just a quick one for my youngest.
250