Mark Hesketh
banner
markhesketh.com
Mark Hesketh
@markhesketh.com
Software Developer. Northerner.

🚀 Building with Ruby on Rails, Laravel, Hotwire.

https://www.markhesketh.com/
I've started using Docker to run tools like npm, composer, kamal, etc. as if they were installed locally.

Each project can use their own versions.

Add a script like `bin/npm` to your project, then you can use `bin/npm install ...`
September 19, 2025 at 3:04 PM
Deployed and content migrated. Not so bad!
September 10, 2025 at 9:22 PM
Hmm, I'm only about 1/3 of the way through converting my Minitest/Fixture tests into RSpec/FactoryBot specs, but the run time is already 3x longer.

I bet a big reason is creating a user via the factory for every sign-in.

Could use both fixtures and factories but seems uncommon.
September 8, 2025 at 7:20 PM
In Minitest, I used `assert_select` when testing content in specific HTML elements, e.g. checking the page title or H1.

In RSpec, `include` isn't as specific and can lead to false positives.

Instead, include Capybara::RSpecMatchers for `have_title` and `have_element` matchers.
September 7, 2025 at 8:18 PM
Never unsubscribing. Staying strong. Believe.
June 28, 2025 at 10:01 PM
Back to checking my RSS each morning with a coffee

Shout up if you know any good Rails/PHP/Laravel/React feeds I should be subscribed to.

Got a lot to catch up on.
March 13, 2025 at 10:55 AM
Updated my site to use the system-ui font stack.

I enjoyed the JetBrains Mono look, but this is easier to read and quicker to load.
March 12, 2025 at 2:31 PM
Received valuable feedback on my first open source contribution in a while 🫠

bsky.app/profile/mark...
March 10, 2025 at 12:16 PM
Creating remote branches for PRs is tedious having to copy/paste (or... type out) branch names. Instead, you can:

$ git push origin HEAD

It pushes and creates a branch on the remote with the same name as your local branch ✌🏻
March 7, 2025 at 10:24 PM
In Git, you can switch to your previous branch using:

$ git switch -

I use this all the time to ping pong between main/master and whatever feature branch I'm working on.
March 7, 2025 at 12:27 PM
My Obsidian plugin to help improve writing style got accepted and is now listed in the community plugins 🎉

Its called 'Write Good' and can be installed directly from within Obsidian
March 6, 2025 at 11:15 PM