Typescript

A 2-post collection

Jetbrains Rider vs Webstorm

For the last five or so years, I’ve been using Jetbrains Rider as my primary IDE for C# work, and Webstorm for any Javascript, Typescript, and NodeJS work.

Since Rider has most of the Webstorm features built in, along with Datagrip features, and much more, it initially seemed perfect to consolidate all my work into Rider, since my work is a fairly even mix of C#, Typescript, and Javascript.

For C#, Rider is fantastic.

However for Javascript and Typescript, Rider is mostly great, but with some key annoyances that aren’t present in Webstorm.

Continue Reading...

Redux made easy with Redux Toolkit and Typescript

Using Redux with React can be incredibly challenging for people to get their head around; while the core principles of Redux itself are fairly straightforward and don’t take too long to grasp, a lot of people struggle with using Redux in React apps. Partly because there are so many damn things to integrate:

  1. Redux
  2. React Redux
  3. Redux Thunk
  4. Typescript (getting more common in recent years)
  5. Redux Saga / Redux Observable (in more complex apps)

I spotted this quote which summed it up for me:

Redux was such a mental overhead for me when I started out with it. The amount of boilerplate code that I had to write for the project I worked on was very frustrating.

I struggled with that stuff too, even after I became familiar with the concepts, I often found it difficult to understand the flow of data and events within React Redux apps. This is not uncommon, even the original author of Redux had this to say:

Yup. Can totally relate.

Then I found Redux Toolkit, written by the maintainers of Redux, and recommended by the Redux style guide.

Continue Reading...