Open in app

Sign in

Write

Sign in

Ben Lesh
Ben Lesh

9.3K Followers

Home

About

Jun 7, 2018

Observables are “just functions”, but also collections… How do I name them?

Naming things is hard. Naming things in programming is even harder, IMO. RxJS and observables bring more confusion for some people when it comes to naming because they’re just not sure what to make of them. Observables are a lazy type that, when subscribed to, pushes values at you like…

JavaScript

2 min read

JavaScript

2 min read


Apr 25, 2018

Debugging TypeScript Mocha Tests With VSCode

Visual Studio Code is a powerful IDE, and my editor of choice while working on RxJS. They have some amazing debugging features, but I was having a really hard time getting it to work with TypeScript-based Mocha tests while working on the experimental branch of RxJS. The following is my…

JavaScript

2 min read

JavaScript

2 min read


Mar 21, 2018

“But I Thought You Were Already On The Angular Team?”

TL;DR: No. I wasn’t, but now I am. I’ll have more time to support RxJS. RxJS will remain an independent OSS project, and will not cater only to Angular, but will continue to serve all of our many partners throughout the JavaScript community. I’ve been working at Google for a…

JavaScript

2 min read

JavaScript

2 min read


Aug 23, 2017

RxJS Observable interop with Promises and Async-Await

Every now and then I’m asked a question about how to use async functions or promises with RxJS, or worse, I’m told some “fact” about how async-await and Observables don’t really “work together”. RxJS has, from inception, had a high degree of interoperability with Promises. Hopefully this article will shed…

JavaScript

2 min read

JavaScript

2 min read


Dec 31, 2016

Promise Cancellation Is Dead — Long Live Promise Cancellation!

Not very long ago Domenic Denicola (worth a follow, a very smart guy) withdrew his proposal for promise cancellation from the TC39. A lot of people might think that means that promise cancellation isn’t coming to JavaScript. …

JavaScript

5 min read

JavaScript

5 min read


Dec 10, 2016

On The Subject Of Subjects (in RxJS)

Subjects in RxJS are often misunderstood. Because they allow you to imperatively push values into an observable stream, people tend to abuse Subjects when they’re not quite sure how to make an Observable out of something. The pattern looks a little like this… // What people usually first do with…

JavaScript

7 min read

On The Subject Of Subjects (in RxJS)
On The Subject Of Subjects (in RxJS)
JavaScript

7 min read


Aug 2, 2016

Thoughts On Mentorship In Tech

Over the last 4–5 years I’ve had the amazing opportunity to mentor some even more amazing people. I want to share what I’ve learned. Mentoring comes in all shapes and sizes You might be mentoring someone right now and not realize it! Do people ask your opinion? Do you get hit up for advice? …

Mentorship

5 min read

Mentorship

5 min read


Jul 27, 2016

RxJS: Don’t Unsubscribe

Well… okay, just don’t unsubscribe quite so much. I’m often enlisted to help someone debug an issue with their RxJS code or figure out how to structure an app that is composing a lot of async with RxJS. When doing so, I generally see the same thing pop up over…

JavaScript

4 min read

JavaScript

4 min read


Jun 29, 2016

Observables and Finnish Notation

Once in a while I’m asked what I think about naming observables with an $ suffix. For example: const click$ = Observable.fromEvent(button, 'click'); Well, I personally could take it or leave it, but I know some of you can’t live without it. …

JavaScript

3 min read

Observables and Finnish Notation
Observables and Finnish Notation
JavaScript

3 min read


May 13, 2016

redux-observable

Created by Jay Phelps and myself for use on our projects at Netflix, redux-observable is middleware for redux that is inspired by redux-thunk. redux-observable allows developers to dispatch a function that returns an observable, promise or iterable of action(s). …

Redux

4 min read

redux-observable
redux-observable
Redux

4 min read

Ben Lesh

Ben Lesh

9.3K Followers

RxJS Lead. Views are my own

Following
  • Wil Wheaton

    Wil Wheaton

  • Olivier Combe

    Olivier Combe

  • Mike Brocchi

    Mike Brocchi

  • Brent Vatne

    Brent Vatne

  • Rangle.io

    Rangle.io

See all (297)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams