Mike Pearson

Mike Pearson @mfp22

About: Interested in physics, software engineering and deep learning.

Location:
Utah
Joined:
May 5, 2018

Mike Pearson
articles - 36 total

10 Tips for Scaling Signals

Signals scale very well if you follow the tips in this article.

Learn More 29 6Sep 7 '23

Introducing the auto-signal pattern

Signals are perfect for synchronous reactivity, and observables are perfect for asynchronous reactivity. They are complimentary, but also at odds with each other. In this article I will share a neat trick to get them to play well with each other.

Learn More 46 7Aug 2 '23

RxJS can save your codebase

Sometimes RxJS is the *perfect* tool for the job. If you've used it for the wrong job, you might never want to touch it again. But if you remain open-minded towards it, it can sometimes save your codebase from exploding into overly complex spaghetti-code.

Learn More 43 26Jul 24 '23

Signals make Angular MUCH easier

RxJS has been doing a lot of work in Angular apps since 2016. Now, signals are here to take some of that workload away.

Learn More 99 17Jul 18 '23

Why your folder structure sucks

Inexperienced developers organize their code by technology rather than by feature. This is a mistake.

Learn More 22 14Jun 6 '23

How to not regret useState

useState is great for simple features. But when a feature needs to become more complex, most developers will push the code towards spaghetti instead of refactoring to a declarative style of coding. Here's now to avoid that.

Learn More 10 0Feb 28 '23

Stop managing state

State adapters are objects that contain reusable logic for changing and selecting from state. There are lots of exciting patterns they enable.

Learn More 17 12Jan 5 '23

I changed my mind. Angular needs a reactive primitive

Angular developers have waited 7 years for better integration with RxJS, but this doesn't seem to be happening. This made me angry at first, but after a lot of thinking and talking with other developers, I now believe that a reactive primitive could provide an overall better developer experience than just better RxJS support, even for the most diehard RxJS fans.

Learn More 124 63Dec 7 '22

5 reasons to avoid imperative code

5 reasons to avoid imperative code that are consequences of how imperative code violates separation of concerns

Learn More 86 6Nov 28 '22

How to refactor to reactivity

I just finished rewriting an app from imperative code to completely reactive code. Here's the process I followed.

Learn More 60 0Nov 21 '22

Pushing Angular's Reactive Limits: Event Context & Toasts/Dialogs

I converted a component from an imperative approach using NgRx/Component-Store to a completely reactive approach. I added local state to an event's payload to keep local and global state separate. I also created a declarative toast wrapper component.

Learn More 9 0Nov 16 '22

Pushing Angular's Reactive Limits: Router and Component Store

I converted a component from an imperative approach using NgRx/Component-Store to a completely reactive approach. I decide to create a wrapper component for reactive router navigations. I also decide to define some reactive utilities for NgRx/Component-Store to handle state updates reactively.

Learn More 35 3Nov 14 '22

How I got selectors in Redux Devtools

Redux Devtools is nice for inspecting state. But sometimes it would be nice to be able to inspect derived state too.

Learn More 6 1Nov 10 '22

62% less code: NGXS vs StateAdapt 1. Angular Ionic Movies

I implemented the Angular Ionic Movies app with StateAdapt and the state management code decreased by 62% from what it was using NGXS.

Learn More 2 0Nov 8 '22

52% less code: RxAngular vs StateAdapt 2. Angular Movies 3. Account Menu

YouTube video for this article I implemented the Account Menu in Angular Movies with StateAdapt and...

Learn More 0 2Oct 31 '22

50% less code: RxAngular vs StateAdapt 2. Angular Movies 1. App Shell

I implemented the Angular Movies app shell with StateAdapt and the code decreased by 50%.

Learn More 2 0Oct 27 '22

31% less code: RxAngular vs StateAdapt 1. Todo MVC

I implemented Todo MVC with StateAdapt and the code decreased by 31%.

Learn More 11 2Oct 25 '22

How to use RxJS in Qwik

How to lazy-load RxJS pipelines in Qwik

Learn More 5 0Oct 24 '22

Why RxJS compatibility matters

Why RxJS compatibility matters: declarative async code

Learn More 45 14Sep 30 '22

Is Qwik + RxJS actually possible?

In this article I explore a few ways of using RxJS in Qwik

Learn More 9 0Sep 21 '22

Progressive Reactivity with NgRx/Store and NGXS

Easily guaranteeing consistency with NgRx/Store and NGX

Learn More 16 0Aug 16 '22

Progressive Reactivity with NgRx/Component-Store, Akita, Elf, RxAngular and RxJS

Easily guaranteeing consistency with NgRx/Component-Store, Akita, Elf, RxAngular and RxJS.

Learn More 17 0Aug 13 '22

Choosing a State Management Library for Progressive Reactivity in Angular

Easily guaranteeing consistency with NgRx, NGXS, Akita, Elf, RxJS and StateAdapt.

Learn More 54 0Aug 10 '22

Wrapping Imperative APIs in Angular

Easily guaranteeing consistency by wrapping imperative APIs in Angular.

Learn More 51 1Jul 19 '22

Multi-Store Selectors (Angular)

Easily guaranteeing consistency with multi-store selectors.

Learn More 16 0Jul 18 '22

Multi-Store DOM Events (Angular)

Easily guaranteeing consistency with multi-store DOM events.

Learn More 11 0Jul 13 '22

Asynchronous Sources (Angular)

Easily guaranteeing consistency with asynchronous sources.

Learn More 13 1Jul 12 '22

Reusable State Patterns (Angular)

Easily guaranteeing consistency with reusable state patterns.

Learn More 25 0Jul 8 '22

Complex Changes and Derived State (Angular)

Easily guaranteeing consistency with complex changes and derived state.

Learn More 21 0Jul 7 '22

Simple Derived State (Angular)

Easily guaranteeing consistency with simple derived state.

Learn More 21 3Jul 5 '22