Gavin Sykes

Gavin Sykes @gavinsykes

About: Emerging web dev, football fan and devoted husband and father, also enjoys cooking. He/him

Location:
Huddersfield, England
Joined:
Jun 5, 2019

Gavin Sykes
articles - 14 total

For loops in MySQL...kind of

Hi everyone, sorry it's been a while! I had a bit of a breakthrough today, finally achieving (or at...

Learn More 2 2Dec 6 '23

Build a Modern API with Slim 4 - Verify your .env file

Welcome back to this series, it was put on hold some time ago, but I'm now back and ready to go! In...

Learn More 1 0Nov 7 '23

Self-referencing types and generics: what are they and how can I use them in React?

Hi everyone! So I have this React app that I am currently building, and I have a parent component...

Learn More 0 0Oct 30 '23

React Custom Hooks that can take props, but not always, what to do in TypeScript?

Hi everyone, a bit of a shorter article today, but I recently ran into the question of what to do in...

Learn More 0 0Oct 20 '23

Build a Modern API with Slim 4 - Add your First Route

Now that we have our application up and running, we need to make it actually look our for calls on...

Learn More 2 3Mar 5 '23

Build a Modern API with Slim 4 - Create your Index File

Now that we have everything set up we can actually start creating our index file which will handle...

Learn More 1 0Feb 26 '23

Build a modern API with Slim 4 - Generate your keys

By the end of this piece we will have 3 files in our keys folder: - keys - encryption_key -...

Learn More 1 0Feb 19 '23

Build a modern API with Slim 4 - Set up your filesystem

By now you should have a folder structure that looks a bit like the below: -...

Learn More 1 0Feb 12 '23

Build a Modern API with Slim 4 - Set up your .env file

In the last post you may have spotted mention of a .env file. What is it? What does it do? Where does...

Learn More 5 0Feb 5 '23

Build a Modern API with Slim 4 - Introduction

Gretings! I have decided to put together this series on how to create a modern API based on Slim's...

Learn More 28 2Jan 29 '23

Creating a setter function in JavaScript Objects

As part of one of my projects I have had a central object called "layout" with it being to do with ma...

Learn More 5 0Nov 17 '20

Adding a night mode to your web app in pure CSS and JavaScript

Adding a night-mode to your web pages is something that is ever-increasing in popularity, and, like e...

Learn More 7 0Mar 15 '20

Randomising Flex Order of Items

This all stems from a random conversation this week, where a colleague was fiddling with the layout o...

Learn More 9 0Jan 20 '20

Appending a Child to an SVG using Pure Javascript

Why write a blog post about this, Gavin? Well it turns out that appending a child to an SVG, or withi...

Learn More 21 9Dec 30 '19