Categories
Blog Bugfixing How to

Lint PHP version breaking changes with phpcs

Upgrading the php version on your server doesn’t come without risks. With all coding languages, old features can become deprecated or even removed. Trawling through a codebase manually to check it’s still all going to work doesn’t sound fun. So this article shows how to lint php version breaking changes. Prerequisites You’ll need PHP’s equivalent […]

Categories
Blog Front End Development How to Javascript React

How to use TypeScript with React: A Brief Overview

I went bravely from using js to jsx files. Then I overcame the gag reflex to write html in javascript. It was time to cover the final threshold with TypeScript and the tsx filetype. In this article, I cover briefly, how to use TypeScript with React. Defining types within functions If you’re familiar with TypeScript, […]

Categories
Blog How to Web Hosting

Unlimited SSL Subdomains in cPanel (with Cloudflare)

SSL certificates on websites are now the norm. They are also useful for subdomains, such as testing environments etc. This post looks at using unlimited ssl subdomains in cpanel, whilst optionally using cloudflare. It doesn’t have to be hard to set up, but there are some requirements to keep in mind. Prerequisites For hosting, you’ll […]

Categories
Blog Front End Development WordPress

Quick SASS Setup for WordPress Themes

This is my go-to for quickly adding sass functionality to any WordPress theme. Just add the following package.json to your theme folder (assuming you already know how to run npm/node, and have them installed and ready to go): You can grab the package.json code here. I always hate copying and pasting from things like the […]

Categories
Blog Developer Tools WordPress

WordPress Block Editor Core Blocks Demo (Gutenberg)

This is a reference of the Block Editor blocks available in WordPress as of 6.4.3. There is an online resource here: Core Blocks Reference | Block Editor Handbook | WordPress Developer Resources But being the visual person I am, I find it helps to see what the available blocks are. This is especially useful for […]

Categories
Blog Front End Development Self Improvement

Improving My CSS Skills – 6 New Things

Here are some new things that I’ve learned with CSS, which solve common real-word problems. I’m always looking at improving my css skills (who doesn’t!) Here are 6 of the latest things I’ve discovered: Fitting that round image in a square peg Sometimes you want an image to always fill a space, for example as […]

Categories
Blog Front End Development How to Javascript Node

Get Frontend API Data with Javascript

Using the native fetch() to get frontend api data with javascript is easier than ever, and works great alongside frameworks such as vue. Grabbing data the old way Before fetch came along, API requests were made using XMLHttpRequest, which didn’t include the use of Promises. It was a little bit verbose, like so: Grabbing data […]

Categories
Blog How to

How to Update a Raspberry Pi

I’m always forgetting how to update my raspberry pi, this is just short & to the point cheat sheet. If you’re accessing the pi remotely, the following commands can be run within a regular powershell terminal via Windows. Just make sure that you have the OpenSSH Client enabled on your windows machine. You should find […]

Categories
Blog Self Improvement Workflow

A Developer Perspective on AI Art

I thought I’d share some of my personal opinions about the rise of AI art, the debates around it, and how it’s coming to take all the jobs of artists. This focuses on the likes of dalle-2 and midjourney. Which I have used both extensively. As a developer, I can totally sympathise with that fear […]

Categories
Blog Front End Development How to Javascript

Using Arrays in Javascript: Data Power Moves

Arrays are the bread and butter of javascript when it comes to handling data. Especially awhen grabbing data from APIs and filtering results. I’ve noted some super useful built in methods relating to arrays, to help with all sorts of situations. Get to know these, for great power comes great responsibility…