Blog

Learnings about Social Media Marketing

I’m a web developer by day for a large business. Luckily, they are already very well established and they get lots of visits each day. But starting from scratch with promoting my own website has been very daunting, but also very rewarding.

Thoughts from Generate Conference

The other week I was lucky enough to get a ticket to Generate Conference by .net Magazine. There were some really interesting talks, some technical, others more inspirational.

Building the Orkos House website with Foundation

I was recently asked to update the website for Orkos House. The old website was built with a free website creator and used tables for the page layout. It had some great images and I saw a lot of potential for this site.

Adding Twitter cards to Jekyll

Twitter cards are a great way of making links to your site stand out to other twitter users. They can be used to provide additional information and an image about your page, from within twitter when you expand a tweet. Examples include twitter summary cards that provide a title, description and image, or product cards that can provide information such as price or product category.

Upcoming Book Promotions

Just a quick message to let you know of a couple of promotions on my books on the Amazon UK kindle store.

Thinking about design

I was following a bus the other day and it was so slow. It started me thinking about the design of a bus and how could it be imporved with modern technology. Some of the problems with buses include:

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