---
title: "Alex Chadwick (@alexchadwick) | Hashnode"
description: "I'm a TypeScript developer working in the private mental healthcare sector. Read the latest articles by Alex Chadwick on Hashnode."
url: "https://hashnode.com/@alexchadwick"
---

@alexchadwick

# Alex Chadwick

@alexchadwick · Joined March 2022

I'm a TypeScript developer working in the private mental healthcare sector

### [What is Primitive Obsession, and how do you fix it?](https://alexchadwick.hashnode.dev/what-is-primitive-obsession-and-how-do-you-fix-it?utm_source=hashnode&utm_medium=feed)

Primitive obsession is an extremely common code smell, and when identified and fix, it greatly helps to reduce the amount of bugs that you may find in your code. This code smell is one that most developers can't intuitively indetify. What are primiti...

3 min read · [alexchadwick.hashnode.dev](https://alexchadwick.hashnode.dev/what-is-primitive-obsession-and-how-do-you-fix-it?utm_source=hashnode&utm_medium=feed)

[Jul 19, 2022](https://hashnode.com/posts/what-is-primitive-obsession-and-how-do-you-fix-it/62d6b46cd3af5e3713d60242)

### [How to mock mssql in NodeJS using Jest](https://alexchadwick.hashnode.dev/how-to-mock-mssql-in-nodejs-using-jest?utm_source=hashnode&utm_medium=feed)

To mock MSSQL you need to mock the mssql npm module, then create mock implementations of connection, query, close and any other functions that you use.

2 min read · [alexchadwick.hashnode.dev](https://alexchadwick.hashnode.dev/how-to-mock-mssql-in-nodejs-using-jest?utm_source=hashnode&utm_medium=feed)

[Jul 15, 2022](https://hashnode.com/posts/how-to-mock-mssql-in-nodejs-using-jest/62d15e4220797904269d6cdd)

### [Why I've switched from .NET to TypeScript for most of my development](https://alexchadwick.hashnode.dev/why-ive-switched-from-net-to-typescript-for-most-of-my-development?utm_source=hashnode&utm_medium=feed)

A story about future-proofing the business and software

2 min read · [alexchadwick.hashnode.dev](https://alexchadwick.hashnode.dev/why-ive-switched-from-net-to-typescript-for-most-of-my-development?utm_source=hashnode&utm_medium=feed)

[Mar 24, 2022](https://hashnode.com/posts/why-ive-switched-from-net-to-typescript-for-most-of-my-development/623c7881b6813c8a18c2012d)
