Thomas Rigby

Thomas Rigby @hryggrbyr

About: When I'm not building things for the internet, I take photos of stuff. Code Janitor. 1x Engineer.

Location:
Manchester, UK
Joined:
Nov 2, 2017

Thomas Rigby
articles - 25 total

Using Zustand to manage application state in React

One of the downsides to Controller/Reducer-based state management is that a single piece of state...

Learn More 0 0Jul 26 '23

Quick and dirty server 2

I wrote last year about spinning up a quick and dirty server using Python. Since then, I have...

Learn More 0 0Jul 26 '23

Trim trailing slash

Sometimes a URL has a trailing slash, sometimes it doesn't. If we can't be certain, we need to...

Learn More 0 0Jul 26 '23

How to create a global .gitignore file

Unfortunately, this has happened to the best of us at some point, amirite?! Inspired by this...

Learn More 0 0Aug 31 '21

WordPress forgotten password localhost hack

I have lost count of the number of times I've forgotten the password to the local or development...

Learn More 3 2Jun 11 '21

Semantic HTML

Semantic HTML is the process of using HTML5 tags to reinforce the meaning of the information...

Learn More 0 0Jul 19 '21

I am a lazy developer or How to write 438 lines of nginx redirects

When I say "I am a lazy developer", I don't mean to imply that I cut corners and churn out shoddy...

Learn More 6 0Jun 9 '21

You have a better laptop than your users

I have a fairly decent laptop provided by my employer and I'm lucky enough to have a strong, reliable...

Learn More 1 0May 23 '21

Generate a random alphanumeric string using JavaScript

Today I had to send an "ID" in the body of my POST request. It turns out that the API doesn't care...

Learn More 7 0Apr 29 '21

Wait!

Why the rush…?! Whether you're faking an API response, introducing deliberate cognitive drain, or...

Learn More 6 0Apr 20 '21

Quick and dirty carousel

One thing I find myself looking up time and time again, is; How do I move the first item of an...

Learn More 7 0Apr 13 '21

Increase WordPress uploads limit in Docker

I've recently moved over to using Docker to manage my WordPress builds. It has many advantages and,...

Learn More 9 0Apr 1 '21

Quick and dirty server

I often find myself working on proof of concepts that consist of (at most) an index.html, style.css,...

Learn More 2 2Mar 11 '21

Numberize a value

If you get a CSS value but you want to do maths with it, what do you do? const width =...

Learn More 2 0Mar 10 '21

Inclusive Design is more important than Accessibility

We tend to think of accessibility as being something we add to websites to help the disabled. This is a mindset we need to get out of.

Learn More 3 0Feb 8 '21

Using Slots in React

Having multiple almost identical components is just very bad and wrong - let's fix it properly!

Learn More 9 0Feb 2 '21

Human-readable Numbers

Convert a JavaScript number to a human-readable number the easy way

Learn More 2 0Jan 20 '21

Write Jira-flavoured Markdown the easy way!

Jira markdown is different, use this extension to convert your vanilla markdown to Jira-flavoured

Learn More 3 0Jan 12 '21

Pre- and Post- NPM Scripts

I've been working on a project at work recently that takes data from a CMS, builds into a React app,...

Learn More 14 0Jan 4 '21

Alternatives to `master`

In an effort to remove unnecessary references to slavery and replace them with more inclusive terms, many companies are opting to replace the term `master` as their main git branch name.

Learn More 0 0Dec 14 '20

The semantics of interaction vs navigation

It is commonplace for designers to style both links and buttons to look like “buttons”. But just because something looks like a button, doesn’t mean it is a `<button>`.

Learn More 1 0Dec 7 '20

Crafting the ideal line length

How to achieve the ideal line length using css

Learn More 5 0Dec 4 '20

Warning: Each child in a list should have a unique "key" prop

To prevent ugly errors in your console when you loop through an array, React likes you to use a...

Learn More 13 5Nov 27 '20

Git-less development

Too much of the DX (developer experience) is negatively impacted by a dependency on build tools and deployment pipelines.

Learn More 3 3Nov 24 '20

Gutenberg Components: "I only need one"

Gutenberg comes with an awful lot of default components most of which will never be used in our websites. Here's how to disable the ones you won't use.

Learn More 9 0Apr 12 '19