Skip to Main Content
Js typewriter

TypeScript - PHP style error checking in JS

421899024 10160014929187201 3541990577107788219 n 2024 06 19 120204 sylo
By Matt on

What is it and should you be using it? Does it replace other libraries or work alongside them? We take a look and find all the answers in this deep dive / tutorial.

Latest Code Posts

Ecologi Eden Reforestation Tree Planting Projects
Andrew profile

Planting Trees with Code

A Digital are supporting tree planting projects through a partnership with Ecologi. For every piece of code we commit to our version control system, we're planting a tree!

By Andrew on A Digital , Code
Fibre Optic Cables
421899024 10160014929187201 3541990577107788219 n 2024 06 19 120204 sylo

Integrating External Database Connections

Exploring database connection methods in CraftCMS and Yii. We connect to a Microsoft Azure database and show examples of how we can handle the data in a number of different ways between our plugin code and templates

By Matt on Craft CMS , Code
Loading screen
421899024 10160014929187201 3541990577107788219 n 2024 06 19 120204 sylo

Refactoring a slow search page with ajax to load faster

When connecting to enterprise systems we need to return the most recent data, this means we can't use caching but we end up with a slow loading page as a result. In this article we explain how to improve the speed whilst keeping the data fresh.

By Matt on Craft CMS , Code
Hidden bug
421899024 10160014929187201 3541990577107788219 n 2024 06 19 120204 sylo

How higher traffic and sales exposed hidden performance issues and bugs

An honest look into some weaknesses in a site we've built, exposed by the perfect storm of situations. We set the scene and describe how we fixed it.

By Matt on Craft CMS , eCommerce , Code
Jigsaw puzzle
Mark profile

Compiling Tachyons CSS with Gulp

Following up on a previous post, this is how we implemented Tachyons into our CSS build process with Gulp.

By Mark on Code
Queue from above
Mark profile

Setting up a service to clear Craft's job queue

Using Redis for higher availability is great, but there is a potential pitfall.

By Mark on Craft CMS , Code
Lego heads
Laura profile

Understanding and organising your page headings

Getting to grips with HTML headings on each page of your website is a surprising simple, yet powerful way to improve both accessibility and technical SEO.

By Laura on Code
Emma svalstad 1273069 unsplash
421899024 10160014929187201 3541990577107788219 n 2024 06 19 120204 sylo

Page Speed Optimisation - Latest Techniques

Optimising our font loading and htaccess file. Includes image manipulations using srcset, webp and lazy loading. Make your sites load faster!

By Matt on Craft CMS , Code
Suraj patil 1104516 unsplash
421899024 10160014929187201 3541990577107788219 n 2024 06 19 120204 sylo

Simplifying Local Development for Craft CMS

Setting up local development with MAMP and composer without the need for valet, homestead, docker, etc. We also make use of project config and automation.

By Matt on Craft CMS , Code
High availability scalable tree
421899024 10160014929187201 3541990577107788219 n 2024 06 19 120204 sylo

High Availability Hosting for CraftCMS

We look at how to build and configure a HA server environment using the command line. We also configure Craft to use external Redis and Database servers.

By Matt on Craft CMS , Code