<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>David Beesley - Posts</title><description>The ramblings and musings of David Beesley - Web Developer</description><link>https://davidbeesley.co.uk/</link><language>en-gb</language><item><title>&lt;![CDATA[#DaveGoesLinux - Part 0]]&gt;</title><link>https://davidbeesley.co.uk/posts/dave-goes-linux-part-0/</link><guid isPermaLink="true">https://davidbeesley.co.uk/posts/dave-goes-linux-part-0/</guid><description>&lt;![CDATA[undefined]]&gt;</description><pubDate>Wed, 18 Feb 2026 16:00:00 GMT</pubDate><content:encoded>&lt;![CDATA[A few weeks ago, I decided it was time to put my trusty 2017 13&quot; MacBook Pro (MBP) out to pasture.

I first bought this MacBook to be my work machine when I left a job to go freelance back in, you guessed it, 2017. It was the model which was fraught with issues - in particular a keyboard which was prone to dust invasion which would cause keys to double type or not work entirely. I was particularly lucky in that it didn&apos;t impact me until late last year.

The main issue I have with this laptop is that the battery is shot. It doesn&apos;t hold any kind of charge, and only runs off a charger if I use a higher wattage one than the 67W charger it was sold with. That comes with the obvious issue that the laptop is no longer mobile, but also I have recently learned that macOS throttles at low charge levels. This means the computer is basically unusable for the first five minutes after turning it on.

I do have two other computers
- A Dell XPS laptop running Windows 11, issued by my employer, which I use for 8+ hours a day
- A self-built &quot;gaming PC&quot; also running Windows 11

So my MBP has mainly been used for casual web browsing, personal coding and the odd web project.

### The replacement

As is fairly normal with me, being a nerd, I fell down a research rabbit hole in looking for a replacement. I knew I wasn&apos;t going down the Mac route again - with both of my other daily use computers being Windows based. And also modern MacBooks aren&apos;t user serviceable (more on that later).

I ended up watching a lot of YouTube content on user serviceable laptops, and was originally airing towards a [Framework 13&quot;](https://frame.work/gb/en/laptop13) - but the rising cost of computer components due to the AI ~boom~ bubble, made it very difficult to justify for a &quot;hobby&quot; device.

This is where I started looking into used laptops, refurbishment, and generally saving perfectly good computers from becoming e-waste.

For those who don’t know, Microsoft have ended support for Windows 10, and a lot of otherwise capable devices don’t meet the upgrade requirements for Windows 11. That means a huge number of still-functional machines are being retired, recycled, or thrown away entirely.

So I started digging into what the best, most robust PC laptops in this category were — and it turns out the Lenovo ThinkPad has a bit of a reputation for longevity and repairability.

Naturally, once you start watching ThinkPad repair videos on YouTube, the algorithm begins gently nudging you towards Right to Repair content… and then Linux… and then more Linux.

At some point along the way, I’d decided I wasn’t going to buy new if I could help it. And maybe it was time to decorporatise (probably not a real word) a bit — and move towards something without licences, telemetry, and the usual pre-installed bloat.

I was going Free and Open Source (FOSS).

What I eventually ended up ordering, was a ThinkPad T14 Gen 2 (Intel) from 2021 off of eBay. I was tempted to join the absolute meme of a ThinkPad T480 (IYKYK), but they are older and just as expensive, albeit way more customisable and repairable.

At the time I started writing this post, it is still in transit, and I cannot wait for it to arrive.

### Why Linux?

Whilst these older machines are obsolete as far as Microsoft are concerned - they are absolutely viable, and Linux supports them and can breathe new life into any hardware you can think of.

I decided pretty early on in this process that Windows 11 wouldn&apos;t be going on my next machine. It is bloated, clumsy, and sends so much telemetry back to the mothership. Not to mention MS are shoehoring their AI product - Copilot - into everything. And don&apos;t get me started on Windows Recall, a service which takes regular screen grabs and unless you explicitly turn it off, sends it back to Microsoft for &quot;AI analysis&quot;. Ick.

So in going down the route of an older PC Laptop, Linux was really my only option, and an exciting one for someone who has lost his love of the walled gardens of the big two (MacOS and Windows).

I am essentially a Linux user by default now anyway. Both of my primary machines are running Ubuntu on Windows Subsystem for Linux (WSL) - to allow me to have &quot;unix-like&quot;/&quot;mac-like&quot; development experience. The projects I work on live in Docker Containers which are spun up via WSL. I even instantiate VS Code, my code editor of choice (for now) via `code .` from the root of the project on my WSL instance.

I&apos;m also not a Linux newbie anyway. I have dabbled with various flavours of it over the past 25 years, but it always had too many annoyances to keep me back then.

So, in theory, the transitions shouldn&apos;t be a shock to the system. Unlike a lot of Windows users currently in the wave of making the shift, I am happy in the command line.

Where I can foresee issues however, having done a trial run on Fedora Linux on my MacBook, is hardware compatibility. Whilst I have chosen a laptop which has amazing hardware support (unlike the MacBook, which held on to Wi-Fi connection like a 90s England Cricketer held catches) - there will still be some foibles and edge cases.

Likewise, there will likely be some FOSS software equivalent which doesn&apos;t measure up to their corporate counterparts, image editing is a large one here although I haven&apos;t used Photoshop in anger in years. More on which software I choose to use in future parts/updates.

### So which Distribution (Distro)

I really liked Fedora, particularly with the KDE Plasma Desktop Environment, when I trialled it on my MacBook.

But I have also been swallowed up by the hype of CachyOS, a super fast derivative of the Arch Distro (btw) - this is where I am leaning towards at the moment.

I had also entertained the idea of Ubuntu, but that is owned and run by a corporation (as is Fedora) - and by online accounts is getting quite bloated and opinionated too.

There is also Linux Mint, which is based on Ubuntu, but is hailed as the perfect distro for Windows switchers. I have tried this out on my gaming PC before.

Anyway. That is the intro to #DaveGoesLinux. I&apos;ll hopefully be back pretty soon with my summary of my first few days on whichever Linux flavour I choose (assuming the laptop is delivered soon and isn&apos;t a house brick in a box)]]&gt;</content:encoded></item><item><title>&lt;![CDATA[From &apos;IE6 Guy&apos; to &apos;JavaScript Dev&apos; and back again]]&gt;</title><link>https://davidbeesley.co.uk/posts/from-ie6-guy-to-javascript-dev-and-back-again/</link><guid isPermaLink="true">https://davidbeesley.co.uk/posts/from-ie6-guy-to-javascript-dev-and-back-again/</guid><description>&lt;![CDATA[undefined]]&gt;</description><pubDate>Wed, 03 Sep 2025 10:59:00 GMT</pubDate><content:encoded>&lt;![CDATA[**How I went from fighting IE6 quirks to wrangling application state to rediscovering my love for CSS**

When I started my Web Development career in 2010, Internet Explorer (IE) was the king of the browser hill. Whilst IE8 had not long been released - IE6 was still up there as one of the most used versions even at that point. Not a bad shelf life for a browser which came out alongside Windows XP in 2001. Google Chrome had seen it&apos;s full release in 2008, Mac had Safari as it&apos;s bundled browser which saw a decent market share, and whilst Mozilla Firefox had risen from the ashes* of Netscape Navigator in the early 2000s - it hadn&apos;t quite gained the traction of it&apos;s predecessor. Microsoft had won the [first Browser War](https://en.wikipedia.org/wiki/Browser_wars#First_browser_war_(1995%E2%80%932001)), and was calling the shots in a fragmented landscape of standards support.

For us developers at the time. This meant a lot of work was required to get websites to render and interact in the same way across all browsers. Bearing in mind that at this time - a website was, in most cases, considered to be a fixed width - usually 800 or 1024 pixels wide. Clients felt this to be immutable, and pixel perfection was the dragon to be chased. Designs needed to be wrangled to work in IE8, IE7 and most awkwardly IE6. As well as these new fangled browsers which on the whole followed the standards laid out by the [W3C](https://www.w3.org/) 

## Enter, the IE6 Guy

My first job title was &quot;HTML and CSS Developer&quot; - no JavaScript huh? Well actually, yes, no JavaScript.

At this agency, my role was to take the design &quot;flats&quot; produced by an external designer and convert them into static HTML and CSS templates. These templates were then pass upstairs (literally) to my colleague, who applied them to an in house CMS.

### But why no JavaScript?

This was never explicitly explained, and in truth, was never a hard and fast rule. It slipped over time as we strode to achieve certain things like boxes in a row being the same height without using tables (no Flexbox yet Jimmy, that comes later).

The main reason for no JS (and no table layouts) was SEO. Whilst we weren&apos;t measuring page speed or weight directly, SEO was the most important element of the websites development lifecycle in this agency and era. Tables were seen to be bad for crawling. JavaScript slowed the page down, or confused the crawler. I didn&apos;t know if any of this was true, but I trusted the expert and tried my best to accomodate.

So, couple this pursuit of pixel perfection, fragmented browser landscape and JavaScript (and table) avoidance - a lot of CSS magic was required. I quickly became known as the IE6 Guy in the office. IE6 was the least standards compliant browser still in circulation, and required a lot chicanery to get it to render a layout which had worked perfectly well in its successors, and Chrome/Firefox/Safari. The latter three were now being called &quot;evergreen browsers&quot; due to their stronger standards compliance and regular updates. I probably wasn&apos;t doing anything special, and it may have been tongue-in-cheek at times, but designs or mostly built templates were often passed to me to make them play nice in IE6

## The fall and rise of CSS Guy

In the years and jobs which followed, I continued leaning in to semantic HTML and standards compliant CSS to do most of the heavy lifting for me. This early career restriction led to me priding myself on the fact that if I could avoid JavaScript for a simple layout issue, I would. Although I was happily making use of jQuery for interaction where relevant.

I look back now this is what fills me with the most nostalgia.

I would however, often cast an eye over certain colleagues work with JavaScript, particularly at conferences and meetups, and feel a bit out of the loop (excuse the pun). This was even more apparent during the early rise of JavaScript frameworks such as React and Vue. I often felt a pang of &quot;Imposter Syndrome&quot; - I wasn&apos;t a &quot;proper front end developer&quot; as I wasn&apos;t crafting App like experiences. This led to a pivot in my career in the late 2010s - and a move to building more JavaScript based experiences.

Which brings me to present day, where my career has definitively moved into the &quot;middle-end&quot; space in my main job at least. I work on a large app, straddling the line between Front and Back end, JavaScript and PHP. I love this job, and the evolution in my skills it symbolises. The scale of the product naturally meant using CSS more as a tool than a craft, with Bootstrap helping us deliver consistently. It&apos;s been a great chance to grow my JavaScript and PHP skills while still leaning on strong front-end foundations.

However, over the past year, I have rediscovered the joys of handcrafting CSS through freelance work and personal projects. And whilst the language has got a lot more complex than it was in my &quot;salad days&quot;, browser support is near universal, which makes it a joy to work with. Flexbox and Grid are the obvious evolutions over the past decade or so. [But there are so many little treats I keep discovering](https://davidbeesley.co.uk/posts/css-aspect-ratio-how-drawing-a-circle-made-me-realise-id-become-a-bit-of-a-web-dev-dinosaur/).

Looking back, being the &quot;IE6 Guy&quot; shaped more of my career than I realised at the time. It forced me to lean into clean HTML, standards-driven CSS, and problem-solving without shortcuts. Even though I’ve since dived deep into JavaScript and the &quot;middle-end&quot;, I’ve come full circle in rediscovering the craft of CSS. The tools may have changed, but the joy of making something beautiful, accessible, and functional with just a few lines of well-written code hasn’t. And that’s what keeps me excited to open my editor every day.

Trends will keep changing, but the developers who thrive are the ones who enjoy the craft itself. That&apos;s why I still get excited about CSS, two decades on.

**Sometimes the skills you thought you’d left behind are the ones that bring you the most joy**

&lt;small&gt;* it&apos;s original codename was Phoenix&lt;/small&gt;]]&gt;</content:encoded></item><item><title>&lt;![CDATA[Why I love Moka Pots]]&gt;</title><link>https://davidbeesley.co.uk/posts/why-i-love-moka-pots/</link><guid isPermaLink="true">https://davidbeesley.co.uk/posts/why-i-love-moka-pots/</guid><description>&lt;![CDATA[undefined]]&gt;</description><pubDate>Mon, 09 Jun 2025 15:55:00 GMT</pubDate><content:encoded>&lt;![CDATA[For those of you who don&apos;t know this already, I am a bit of a coffee snob*

And by far, my favourite coffee is the coffee I make at home with my [Hario V60 conical drip brewer](https://www.hario.co.uk/collections/hario-v60-coffee-drippers). It&apos;s an incredibly cheap and simple way to have great coffee at home. Now I have mastered the correct grind, ratios and found a repeatable method for brewing the coffee - I have a delicious, complex cup of coffee every time, in around five minutes.

## So why do I love Moka Pots?

Simply put, they they hit different.

![My three Moka Pots, sat on my kitchen counter](../../assets/IMG_3875-2048x1536.jpg)

While the V60 is my &quot;daily driver&quot; for making my pre-morning scrum cup of Joe. The Moka pot is a more leisurely process. It is for those lazy weekend mornings when I want to take my time feeling like I am &quot;making&quot; something.

I manually grind the beans slightly finer than my V60 grind, I pop them in the brewing basket, I pre-boil the water, place the brewer back together, light the stove, and watch intently - making sure I whip the brewer off the heat and under a cold tap the moment it starts to gurgle. The whole process takes around 15-20 mins if done right.

And whilst the coffee it produces isn&apos;t quite as refined or complex as the V60 or a well tuned Espresso, something about the act of making a coffee with one of my Moka pots feels more artisan, purposeful, and yes probably pretentious. It&apos;s deliberate. And the difference in taste may be down to the workman not the tool.

## What prompted this love letter to a humble Italian designed percolator?

I got my first &quot;Moka&quot; style brewer around 8 years ago, from the [Flying Tiger](https://flyingtiger.com/en-gb) chain of shops. It was a simple, one cup model which proved to be my gateway into coffee obsession. I still own it, but it&apos;s not in the best of state and the seals likely leak on it. but I refuse to get rid of it for nostalgia&apos;s sake.

![My original, single cup Moka pot from Flying Tiger](../../assets/IMG_3874-1536x2048.jpg)

After the OG started gathering dust in the back of the cupboard, I then drove my V60 for years before finally requesting a [Bialetti 4 Cup Moka Express](https://www.bialetti.com/ee_en/moka-express.html) as a Christmas present a couple of years ago. This reignited my love for stove top coffee making. Perfect for weekend coffee for both of us, or a large travel mug full ahead of an epic work meeting

![My 4 Cup Bialetti Moka Express](../../assets/IMG_3871-1536x2048.jpg)

On a recent trip to Rome - my partner and I happened to walk past a Bialetti store - where in the window we saw a whole range of their brewers and cups, and I geeked at a particular quirky item which appeared to be the bottom half of a Moka express, with a hot plate, and two espresso cups served by two pipes. It was cute and just a bit crazy.

![My 2 cup Bialetti Mini Express with two espresso cups slowly filling with delicious nectar](../../assets/IMG_3868-2048x1536.jpg)

Unbeknownst to me - she promptly got home and ordered me one for my Birthday. And it is perfect in scratching my itch for caffeine and novelty. Watching it brew it hugely anticipatory, followed by the pay off of two espresso cups rapidly being filled with delicious (near)Espresso coffee.

It is already one of the most joyful things I own.

![Freshly brewed coffee oozing from the spout inside my Bialetti Moka Express](../../assets/IMG_3872-1536x2048.jpg)

**A Moka Pot prompts me to slow down and enjoy the craft of making coffee**

&lt;small&gt;* The S may be silent&lt;/small&gt;]]&gt;</content:encoded></item><item><title>&lt;![CDATA[All Day Hey 2025: A Retrospective]]&gt;</title><link>https://davidbeesley.co.uk/posts/all-day-hey-2025-a-retrospective/</link><guid isPermaLink="true">https://davidbeesley.co.uk/posts/all-day-hey-2025-a-retrospective/</guid><description>&lt;![CDATA[undefined]]&gt;</description><pubDate>Wed, 07 May 2025 12:23:00 GMT</pubDate><content:encoded>&lt;![CDATA[For some of us in the web/software development industry, the word &apos;Retrospective&apos; makes your blood run cold. This will be bourne of over-zealous implementations of Scrum and Agile, in corporate dev teams, or maybe from working in toxic environments where the &apos;Retrospective&apos; is actually the weekly/fortnightly &apos;Blame Meeting&apos;. Neither of which I currently reside in, I must emphasise.

I apologise for that slight trigger moment, but the word &apos;Retrospective&apos; felt the right term for my reflections on what was an incredible positive and invigorating few days for me. Originally I was intending to call this a &apos;Review&apos; - but that all seems too formal for an event which was way more than some people talking on stage about the web. Although they were awesome too!

Those of you who were there may have seen a strange lad in the second row, feverishly taking notes through the talks - it was always my intention to write an article on the event, and I felt that taking these would really help me to retain the content when revisiting them a few days later. Especially given that some days I can&apos;t even recall what I had for Breakfast (Blueberry Wheats with Whole Milk btw)

## A shot in the arm at a critical time

I was looking forward to this event immensely before embarking on the great drive North (6 hours on the M1 was totally worth it) - but I never expected it to impact me so much.

For the past few years I have been working as an in house developer, with a particular focus on a VueJS/Laravel application - in a bit of a &quot;Back of the Front End/Front of the Back End&quot; role. In this time I have partially lost touch with full on front end development as I outlined in [my post about CSS aspect-ratio](https://davidbeesley.co.uk/posts/css-aspect-ratio-how-drawing-a-circle-made-me-realise-id-become-a-bit-of-a-web-dev-dinosaur/), what I didn&apos;t realise is how much I had lost touch with the community too. This is possibly also driven by my disenchantment with Twitter since it&apos;s takeover - [similar to the reflections in Thomas&apos; post](https://terminal.ahumanfuture.co/posts/2025-05-06/the-narrow-road-to-the-deep-north/)

It was fantastic to meet up with people who I haven&apos;t seen in several years, or have only spoken to on Bluesky (and previously Twitter) - but also to be introduced countless new people who have immediately made me feel warmly welcomed and included.

They also say &quot;don&apos;t meet your heroes&quot; - but at this conference I met several people who were speakers at my first ever conference - [Mobilism 2012](https://web.archive.org/web/20120513041222/http://mobilism.nl/2012/programme). Even a few years ago, I wouldn&apos;t have believed I would be sharing a social space with them - let alone a Thai Curry and several beers. You know who you are, and thank you for making me feel welcome and included.

## Incredible talks, inspiring content

Whilst I have cast my notes to one side, and wanted to take a higher level view of this conference and my experience - I wouldn&apos;t be doing it justice if I didn&apos;t mention the inspiring talks, and a few take aways I got from the people who spoke on Thursday.

- Lola Odelola, What do you see? - I think most people who attended agreed that this talk was the most thought provoking of the day (not to undersell the others mind you) - Lola really brought home the importance of Alt Text as more than just a utility to formally describe images on your website. How could we impart atmosphere and context? She encouraged us to think &quot;What if Alt Text was displayed by default?&quot;
- Thalita Vergilio, The good news or the bad news? Directing a narrative as it happens using AI - A pertinent talk which was at times chilling. The talk explored the use of AI and analytics tools during a theoretical company presentation. These tools were used to understand how employees were reacting to changes in company policy, and to tweak the announcements in real time. Thankfully, Thalita clarified that a lot of these tools were theoretically, and their usage would be restricted in the UK and EU.
- Sareh Heidari, No signal, no service: digital exclusion and how to change it - A fantastic talk on removing the barriers to usage, as services move towards the digital space.
- Luke Stringer, Do Repeat Yourself. How to move from development into leadership (Lightning) - A fast paced talk on the mindset and process shifts required when moving into a role managing development teams. How to stay technical, how to retain expertise, and how to effectively communicate. &quot;Ignorance is your new super power&quot;
- Ali Farooqui, What every technologist needs to know about security (Lightning) - Another quick talk on the importance of security at all levels and budgets of tech projects. &quot;Security is an investment, not a tax.&quot;
- Imran Hussain, With great community comes great responsibility (Lightning) - The last of the lightning talk section, and a great insight into building digital communities around shared values.
- Andy Bell, Get the core right and the resilient code will follow - A talk about CSS, without CSS in it. Andy talked about how effective communication and collaboration can lead to better outcomes. This is the second time I have seen this talk, and it has proven invaluable in my day-to-day work. Just the mantra of &quot;assume everyone is busy&quot; has improved my prioritisation of tasks no end.
- Katie Fenn, Around the wwworld: Web MIDI, Web AUDIO and what the web does best - Katie closed the show with a bang (or maybe a series of beeps) with an impassioned talk on the importance of freedom in web standards (in this case the MIDI API), and an incredible set of demos which built up to a crecendo where we were treated to a rendition of &quot;Around the World&quot; by Daft Punk, processed entirely through the browser console.
- Phil Hawksworth, MC - Phil&apos;s reputation as an incredible MC preceeded him, so I had high hopes which weren&apos;t dashed in the slightest. Phil opened the day with a hilarious AI generated intro, and linked the day together brilliantly. I simply wrote about Phil &quot;Charming, Michael McIntyre-esque&quot;

## Perfect Production

The day came together brilliantly well. Largely thanks to the organisation of Josh, his family and his wider team. The venue, Everyman Cinema in Leeds, was warm (maybe a little too warm in the atrium) and inviting. The sponsors dovetailed nicely with the event. The coffee was top notch. And free access to the Clockwise co-working space was a nice touch.

Community driven events like this are the life blood of our industry. Thank you so much for an amazing few days. I feel fully re-energised and re-integrated into a community I had started to lose touch with. I can&apos;t wait until next year. It&apos;s just a shame I cannot make it to [WDC](https://webdevconf.com/) this year - but I encourage anyone reading to go, Alex and his team lay on a similarly wonderfult event.

### Read More

I must also take the time to link to some other great articles on this conference which I have read up to this point.

- [Lex Lofthouse, The power of the one day conference](https://loftio.co.uk/the-power-of-the-one-day-conference/)
- [Ana Rodrigues, Forty mins to change your life](https://ohhelloana.blog/forty-mins-to-change-your-life/)
- [Thomas Rumbold, The narrow road to the deep north](https://terminal.ahumanfuture.co/posts/2025-05-06/the-narrow-road-to-the-deep-north/)

Apologies if I have missed yours, [give me a nudge](mailto:hello@davidbeesley.co.uk) and I will add it above]]&gt;</content:encoded></item><item><title>&lt;![CDATA[The difference between NPM and NPX]]&gt;</title><link>https://davidbeesley.co.uk/posts/the-difference-between-npm-and-npx/</link><guid isPermaLink="true">https://davidbeesley.co.uk/posts/the-difference-between-npm-and-npx/</guid><description>&lt;![CDATA[undefined]]&gt;</description><pubDate>Sun, 27 Apr 2025 11:43:00 GMT</pubDate><content:encoded>&lt;![CDATA[Recently, I have been learning to rebuild this website in [Astro](https://astro.build/), using an external headless CMS for the content management.

I have currently settled on [Wordpress](https://developer.wordpress.org/rest-api/), but along the way I trialed [Sanity](https://www.sanity.io/).

In their [official documentation for the Sanity Astro plugin](https://www.sanity.io/plugins/sanity-astro), they instruct you to install it using the command `npx astro add @sanity/astro @astrojs/react` which got me thinking - what is NPX and how does it differ from NPM?

## What is NPM?

NPM stands for Node Package Manager, which is used to manage dependencies in Node.js and other JavaScript (including TypeScript) based projects.

To install a dependency into a project, you type `npm install package-name` (or `npm i package-name` for shorthand) into the console in the root of your project. This then installs the dependency into a folder called node_modules in the root of your project.

(Important aside - it is best practice not to commit the `node_modules` folder to your version control system)

References to these dependencies, and their version, are then added to a file in the root of your project called `package.json` - ensuring these dependencies can be tracked and reinstalled across all environments your project is installed.

## What is NPX?

NPX stands for Node Package eXecute, as the name implies, executes Node.js packages without installing them into your project.

This is handy when the use case of the dependency is to run as a one-off, and not adding the dependency to your project permanently.

NPX can also be used to execute code directly from GitHub (Gist or Repo) or another publicly visible Repository - should it conform to [NPM package standards](https://docs.npmjs.com/cli/v11/configuring-npm/package-json)

```
npx https://gist.github.com/[UserName]/[UUID]
```

Lastly, it can be used to test different package versions

```
npx create-react-app@[version] [subdirectory]

cd [subdirectory]

npm start
```

This will quickly spin up a clean copy of `create_react_app` in a subfolder, and allow you to test that specific version - particularly useful to test the &quot;next&quot; or &quot;alpha/beta&quot; version of a given project.

## In Conclusion - NPM v NPX

NPM is used to install, delete and update JavaScript dependencies within your project.

NPX is used to execute JavaScript dependencies in a one of case, without installing them.]]&gt;</content:encoded></item><item><title>&lt;![CDATA[CSS aspect-ratio: my first experience]]&gt;</title><link>https://davidbeesley.co.uk/posts/css-aspect-ratio-how-drawing-a-circle-made-me-realise-id-become-a-bit-of-a-web-dev-dinosaur/</link><guid isPermaLink="true">https://davidbeesley.co.uk/posts/css-aspect-ratio-how-drawing-a-circle-made-me-realise-id-become-a-bit-of-a-web-dev-dinosaur/</guid><description>&lt;![CDATA[undefined]]&gt;</description><pubDate>Fri, 25 Apr 2025 11:55:00 GMT</pubDate><content:encoded>&lt;![CDATA[**How drawing a circle made me realise I&apos;d become a bit of a Web Dev Dinosaur**

This article relates to the post I made on Bluesky yesterday.

&lt;blockquote class=&quot;bluesky-embed&quot; data-bluesky-uri=&quot;at://did:plc:kr2xum2d6nq4jfnqj5impyqs/app.bsky.feed.post/3lnke4nuvxc2f&quot; data-bluesky-cid=&quot;bafyreigp3vt4jdw57p7tvtvsnbhjnvv47ceak2x3scsrguawakekm75lmi&quot; data-bluesky-embed-color-mode=&quot;system&quot;&gt;&lt;p lang=&quot;en&quot;&gt;TIL about CSS aspect-ratio
I was faffing about with padding-bottom trying to get some circles to stay in proportion.

CSS has got a whole lot more awesome while I’ve been in JS application land

developer.mozilla.org/en-US/docs/W...&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://bsky.app/profile/did:plc:kr2xum2d6nq4jfnqj5impyqs/post/3lnke4nuvxc2f?ref_src=embed&quot;&gt;[image or embed]&lt;/a&gt;&lt;/p&gt;&amp;mdash; Dave Beesley (&lt;a href=&quot;https://bsky.app/profile/did:plc:kr2xum2d6nq4jfnqj5impyqs?ref_src=embed&quot;&gt;@davidbeesley.co.uk&lt;/a&gt;) &lt;a href=&quot;https://bsky.app/profile/did:plc:kr2xum2d6nq4jfnqj5impyqs/post/3lnke4nuvxc2f?ref_src=embed&quot;&gt;April 24, 2025 at 10:05 AM&lt;/a&gt;&lt;/blockquote&gt;&lt;script async src=&quot;https://embed.bsky.app/static/embed.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;

For context, I have worked in &quot;Product Land&quot; for nearly five years - with a heavy focus on JavaScript. My CSS skills have not been my main focus - the app I help maintain day to day uses Bootstrap, and that is serviceable enough for the use case.

So, around this time yesterday I was working on a bit of a fun side quest in my day job. The task, draw the lines on a diagram of a football (soccer) pitch.

I could have found an SVG or, even less fun, a rasterised image like a PNG or JPG, but I had decided to challenge myself, and do this with CSS.

I built the original version out quite successfully with pixel based measurements, fixed widths and heights, and I was feeling rather proud of myself - showed a screenshot to my team and lapped up the &quot;MS Teams reaction emojis&quot;.

Then, knowing it wouldn&apos;t be used in a fixed with setting, I opened another instance of it somewhere else in the app where I knew it would be narrower. Sure enough, the lines and circles crossed over each other and looked hideous. **It was time to go fluid**.

Initially, I simply calculated the widths and heights of the elements as percentages of the container. Those of you watching closely will know that this worked great for the widths, but the height of the container won&apos;t always be proportionate to the width - it is relative to the content (in this case, icons indicating a player position).

Next up, I tried an old trick I used to use, where you set the height with padding-bottom.

In theory, this should have worked as all padding is relative to widths not heights. Another reason this should have worked - is percentage values on the padding of block level elements are relative to the parent container - [as eloquently outlined by Chris in this CSS Tricks article](https://css-tricks.com/oh-hey-padding-percentage-is-based-on-the-parent-elements-width/).

Alas, despite having the same percentage values for width and padding-bottom the values were often out by a few pixels - positive in some widths - negative in others. Nothing consistent I could pin down.

After googling for &quot;Draw a perfect circle percentages responsive&quot; and &quot;aspect ratio css tricks&quot; - I nearly gave up and asked an AI 🤢. [But one article in the MDN documentation caught my eye](https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio).

I instantly remembered seeing this property being available under a feature flag in either Chrome or Firefox years ago, but the early years of my career came rushing back and I said to myself &quot;surely I can&apos;t use this yet, I bet it&apos;s not supported cross browser&quot;. A quick read through the docs proved otherwise.

So, after quickly swapping out my `padding-bottom` rules for `aspect-ratio` - where the values in the rule were simply my original pixel width over my original pixel height (rounded down to the smallest fraction possible, I&apos;m not a monster) - it simply worked!

The result, nice responsive football pitch diagrams which slotted into any width container I wanted (within reason) - and more importantly, a smile on my face and more thumbs up emojis in Teams.]]&gt;</content:encoded></item><item><title>&lt;![CDATA[My Key Lessons from 5 years of Remote Work]]&gt;</title><link>https://davidbeesley.co.uk/posts/my-key-lessons-from-5-years-of-remote-work/</link><guid isPermaLink="true">https://davidbeesley.co.uk/posts/my-key-lessons-from-5-years-of-remote-work/</guid><description>&lt;![CDATA[undefined]]&gt;</description><pubDate>Thu, 24 Apr 2025 10:17:00 GMT</pubDate><content:encoded>&lt;![CDATA[Five years ago, at the beginning of The Bad Thing&lt;sup&gt;TM&lt;/sup&gt;, I made what I thought was the temporary shift to working from home. Just a few weeks away in the safety of my own home, then back to the office.

It turned out to be more longer term than I thought, and a shift not just in working location, but also in how I manage time, communicate, and sustain productivity.

What I didn’t expect was how well remote work would suit me. In fact, I had always struggled in traditional office environments: the constant noise, interruptions, and pressure to appear &quot;always on&quot; made it difficult to focus and do my best work. The shift to remote work revealed a better way of working - for me, at least - and I&apos;ve never looked back.

Now, with five years of remote experience behind me, I&apos;ve learned a great deal about what it takes to thrive outside of a traditional office setting. Here are the key lessons I&apos;ve picked up along the way.

## 1. Complacency is the Quiet Threat

In a remote setup, particularly in the first few weeks, it&apos;s surprisingly easy to fall into comfortable routines - and not always in a good way. Without the energy and accountability of a shared office, it&apos;s possible to coast and procrastinate. With your TV not too far away, or nobody to stop you playing computer games, it&apos;s all too easy for your day to slip you by.

Remote work offers freedom, but it also demands intentionality. I now start the day (or on a great day, end the previous day) writing an achievable to-do list consisting of a few work tasks, and some household chores. I prefer one on paper, so that I can have the rewarding feeling of crossing each task off - I strike them through with a highlighter, so that I can see a sea of green/orange to more easily see what I have achieved.

This list helps to keep me focussed - these are the non-negotiables of my day.

## 2. Over-Communicate, Asynchronously and Thoughtfully

One of the biggest adjustments in remote work is the absence of real-time visibility. You&apos;re not bumping into people or overhearing updates - so it&apos;s crucial to communicate more than you think you need to.

Over-communication doesn&apos;t mean bombarding everyone with messages; it means being intentional, clear, and proactive. Share context. Document decisions. Make sure people can pick things up without needing a meeting. That&apos;s where **asynchronous communication** shines - giving people space to respond when it works for them.

And here&apos;s a mindset shift that really helped me: assume everyone else is busy. Don&apos;t chase instant replies. Instead, aim to write messages and updates that are complete enough to stand alone, and remove urgency. It&apos;s a courtesy to your colleagues - and a key part of making remote work sustainable.

When in doubt, communicate clearly, asynchronously, and with respect for other people&apos;s focus time.

## 3. Boundaries Matter Most, Especially When Things Get Busy

When work ramps up or life outside of it becomes stressful, boundaries are often the first thing to slip - and that’s exactly when you need them the most.

In busy periods, it&apos;s tempting to stretch your day, respond to late messages, or sacrifice breaks in the name of getting things done. But in my experience, that&apos;s a fast track to burnout. The irony is that when you need rest the most, it’s the easiest to deprioritise.

I’ve learned to double down on structure when things get intense: clear work hours, non-negotiable breaks, and proper shutdown rituals. These aren&apos;t luxuries - they’re safeguards that help you stay effective without running yourself into the ground.

Remote work gives you the flexibility to bend your schedule - but during high-stress times, it’s discipline that keeps you balanced.

## 4. Embrace the Flexibility

One of the most powerful aspects of remote work is the flexibility it offers. In a traditional office, life often has to fit around rigid work hours. Remote work flips this on it&apos;s head, allowing work to adapt to your needs.

I&apos;ve been able to attend my daughters school events without taking an entire day off, schedule appointments without stress, and be home for deliveries. These small freedoms add up to a significant improvement in quality of life.

The ability to work from different locations has also been transformative. Some weeks, I&apos;ve worked from my parents house on the other side of the country - allowing them to help me with childcare and not use up my annual leave. Other times, I&apos;ve set up at a local shared office to give myself a fresh perspective.

As a parent, this flexibility is particularly valuable. When childcare plans fall through or a my daughter gets sick, remote work makes it possible to juggle professional responsibilities while being present for your family.

## 5. Wellbeing and Self-Care Is Crucial

When your commute is just from bedroom to home office, it&apos;s alarmingly easy to realise you haven&apos;t left the house in days. This indoor isolation can slowly chip away at your mental health and physical vitality.

While it is easier said than done, I am at my best when exercise is prominent in my schedule. Whether it&apos;s a morning walk or some lunchtime yoga, I work and concentrate better when I work exercise into my day.

Working from different locations - whether it&apos;s a coffee shop or a co-working space—provides essential variation. I aim to work outside my home at least once a week, not always successfully, which refreshes my perspective.

Connecting with other remote professionals has been invaluable. Finding others who understand the unique challenges of remote work provides both practical solutions and emotional support.

And yes, I abandoned the jogging bottoms years ago.

## Conclusion

Five years into remote work, I&apos;ve discovered that succeeding in this environment isn&apos;t about recreating the office at home - it&apos;s about embracing a fundamentally different approach to work.

What began as a temporary adjustment has evolved into a permanent shift in how I understand productivity and professional fulfillment. Remote work stripped away the performative aspects of office life and forced me to focus on what really matters: doing good work, communicating effectively, maintaining well-being, and integrating work seamlessly with life.

For me, there&apos;s no going back. The lessons I&apos;ve learned haven&apos;t just made me a better remote worker - they&apos;ve hopefully made me a better professional.]]&gt;</content:encoded></item></channel></rss>