Mike Pearson

Author profile

Mike Pearson

Interested in physics, software engineering and deep learning.

@mfp22UtahView on DEV

Articles by @mfp22

Browse the latest writing surfaced through DevArt.

Introducing the auto-signal pattern
#angular#rxjs#signals

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.

Mike PearsonMike Pearson6 min read
46 reactions7 commentsRead full article
RxJS can save your codebase
#angular#signals#rxjs

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.

Mike PearsonMike Pearson7 min read
45 reactions26 commentsRead full article
How to not regret useState
#react#stateadapt#rxjs

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.

Mike PearsonMike Pearson11 min read
10 reactions0 commentsRead full article
Stop managing state
#stateadapt#angular#react#redux

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.

Mike PearsonMike Pearson9 min read
17 reactions12 commentsRead full article
I changed my mind. Angular needs a reactive primitive
#angular#rxjs#solidjs

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.

Mike PearsonMike Pearson16 min read
126 reactions63 commentsRead full article
Mike Pearson developer articles | DevArt