Nick Raphael

Nick Raphael @nickraphael

About: Brought to you by Nick Raphael. Fullstack azure architect and tech lead. Currently neck deep in dotnet core - azure stack - microservices.

Location:
Sydney, Australia
Joined:
Oct 21, 2019

Nick Raphael
articles - 26 total

Redux: Uncaught TypeError: Cannot read properties of undefined (reading 'mySlice')

Oh man, I just had a really annoying redux-toolkit error... Uncaught TypeError: Cannot read...

Learn More 8 1Jun 21 '22

List git branches ordered by date of last commit

First day back after Christmas break and I'm a bit hazy on what I was working on. I know I was...

Learn More 5 0Jan 10 '22

How to change the url of a remote git repo...

Hi all, I recently got myself into the situation where all my local git repos had the wrong remote...

Learn More 6 0Dec 7 '21

Fixing VSCode terminal font

I just noticed that my vscode terminal window was having font issues. Especially obvious when it sho...

Learn More 15 5Jun 11 '20

With the ngrxLet directive we could get rid of that *ngIf trick that we lovehated

Note: As of writing (22-04-2020), ngrx/components is still experimental. First, I'll go ov...

Learn More 8 1Apr 22 '20

c# quicky. Should we 'throw;' or 'throw e;'?

This is a bit of an oldie. Very old, in fact, since this question has been around since c# was born....

Learn More 7 1Apr 6 '20

Getting the min or max value from an array of numbers in javascript

Turns out this is simple. Well, it was simple anyway, but it's also quite concise. I'll provide my...

Learn More 15 6Mar 27 '20

Got a 'git' conflict and just want to blow away your local changes and take 'theirs'?

I just did a 'git merge' with another branch and I have a merge conflict. I'm happy to lose my chang...

Learn More 10 0Mar 19 '20

Did you just say you want to 'git add' all those files except 1?

You run a 'git status' and see that you've updated a heap of files. One of those files you don't wan...

Learn More 12 1Mar 11 '20

Oops, I just pushed a git commit to the wrong branch. What now?

We are currently running off two active branches in our git repository. And by accident I just commi...

Learn More 161 18Jan 23 '20

Angular's providedIn: "root". What if two lazy modules provided the same service?

Sheesh, I'm not sure about that title. Let's unpack it a little. The modern way for an angular appl...

Learn More 12 0Dec 18 '19

The common misconception of @Injectable() in angular

What exactly does @Injectable() do? It might not be what you think...

Learn More 8 0Dec 11 '19

git assume-unchanged. For when you want git to ignore an edit for a while

Quite often, I find myself in the situation where I've updated a file but I don't want git to track t...

Learn More 34 2Dec 5 '19

How to use 'Suggest a Tweet' effectively

Hopefully you already know this, but bloggers on the dev.to platform can submit a tweet suggestion to...

Learn More 27 4Nov 26 '19

Typescript Partial<T>, where have you been my whole life?

Oh boy, how did I not know about Partial until now? This is something all Typescripters need to know...

Learn More 337 19Nov 25 '19

Got a simple webpage you want to host on localhost?

Using NPM to host an html page with lite-server

Learn More 9 1Nov 18 '19

C#8 changes to using

The 'using' block has been a mainstay in c# since the beginning. C-SharpCorner has a nice desciption...

Learn More 6 0Nov 13 '19

The hardest won skill in software development

If I had to give you one skill that separates an experienced developer from a junior it’s this... Re...

Learn More 3 0Nov 10 '19

C# 8.0 static local functions

Here is a quote from the offical microsoft docs... https://docs.microsoft.com/en-us/dotnet/csharp/pr...

Learn More 12 3Nov 8 '19

Introduction to C#7 tuples in readiness for C#8

Who uses tuples? No? Well, I can’t say I really use them either. But that’s likely to change in...

Learn More 9 1Nov 7 '19

ngOnChanges best practice - always use SimpleChanges - always

ngOnChanges(): "A lifecycle hook that is called when any data-bound property of a directive changes....

Learn More 73 17Nov 5 '19

Managing rxjs subscriptions with takeUntil()

Whenever posible we should resist the temptation to subscibe to our observables. If we want to accc...

Learn More 8 1Nov 5 '19

Mocking your ngrx store in a unit test

I hope you're all avidly unit testing all your code. Yes, cough, sure, of course we are. Look, we'v...

Learn More 10 0Nov 3 '19

What is the rxjs tap function used for?

Official documentation state that the tap operator will: Perform a side effect for every emission on...

Learn More 15 0Oct 23 '19

Updating multiple areas of your ngrx redux store with a single action

Any pedants out there may take exception to the title of this post. How can we update state when sta...

Learn More 12 0Oct 22 '19

Combine many ngrx selectors with combineLatest in Angular

Let us suppose we have an area of store that hold the status of a save operation. Our status can hav...

Learn More 15 0Oct 21 '19