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.
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.
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.
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.
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.
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
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.
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.
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.