Blog

How to become a web developer - Part 2

In my last post I introduced my experience of becomming a web developer, but now I would like to share with you how I would recommend to get started if I was starting now. A lot has changed over the past 10 years and I woud definitley do things differently.

How to become a web developer - Part 1

Part 1

Christmas is the season of giving

Everyone loves a freebie, especially at Christmas. That’s why I’ve decided to make my books free on the 25th December.

Speeding up decision making

We’ve all been there, asked someone a question and instead of answering your question they ask you another question. I’m guilty of it myself, I’ll freely admit it. So what’s the best way of getting a quick decision out of someone?

The ROAD to an Eco-Friendly Future

What’s the most non environmentally friendly thing you can think of? How about the road. Let’s change that!

Going into Aeroplane Mode

Last week I went on holiday abroad and as data was not included on my contract for that country I had to turn data roaming off. I also had to go into aeroplane mode on the flights there and back. The result was no app notifications for a week.

Latest Posts

Mocking window.location in Jest
Mocking window.location in Jest

Recently I had to write some tests for a piece of JavaScript code that used window.location. This left me trying to figure out how to mock the window.location so that I could pass in dummy data and ensure that the data I got back was what was expected. Here was how I managed to solve the issue.

Considerations for Incremental Static Regeneration in Next.js
Considerations for Incremental Static Regeneration in Next.js

Next.js offers a feature called Incremental Static Regeneration (ISR) that allows you to generate a static page when the page is first visited, rather than generating a static copy at build time. This is a really handy feature as it allows you to reduce your build time, but still benefit from having a cache of a page generated so future visitors will have a faster response time.

Mocking axios in Jest tests with Typescript
Mocking axios in Jest tests with Typescript

Recently I wanted to write a test for a React component that uses axios to retrieve information from an API. To do this I had to mock jest, but I ran into some issues with the types as I was using typescript. This article explains how I managed to get it to work.

How NOT to make a website

How NOT to make a Website

By C.S. Rhymes

From £8.99

Nigel's Intranet Adventure

Nigel's Intranet Adventure

By C.S. Rhymes

From £2.69