Tips & tricks

Little things,
worth keeping.

A collection of web development related tips, tricks and snippets that I wanted to remember for myself and share with others. Hopefully you find them as useful as I have.

28 tips and counting

Looking for design inspiration to feed your AI? Details.so is a great resource, with everything from buttons and small interactions to full page layouts. Find a detail you like and use it to show your AI the look and feel you're after.

November 18, 2026

After using Claude Code on projects for a while, the biggest friction isn't the AI getting things wrong - it's the AI doing too much. Think of your CLAUDE.md/AGENT.md as a constitution for how AI behaves in your codebase, and Karpathy's rules are a solid starting point, they keep the agent focused, surgical, and honest, which means cleaner diffs and fewer "why did it touch that?" moments in review.

June 12, 2026

If you're serious about integrating AI into your business - not just talking about it - this Stanford CS230 lecture from Kian Katanforoosh is required watching.

It cuts through the noise and gets practical fast: how to write prompts that actually work, why RAG beats fine-tuning almost every time, and how agentic workflows are changing what businesses can automate. Real examples, real tradeoffs, no hand-waving.

Before you reach for a fancier model, get more out of the one you have. Better context. Smarter prompts. The right architecture for the job. This is the kind of foundational thinking that saves you from making expensive decisions based on hype.

Watch it. Take notes. Thank me later.

April 13, 2026

The awesome team at Tighten published a great document on how to implement RAG in a Laravel project with semantic search and vector databases.

February 19, 2026

Here's a nice collection of modern CSS snippets to replace older techniques.

February 18, 2026

I you do any work with arrays in Laravel or Craft you will instantly benefit for harnessing the power and utility of Laravel Collections. For Laravel, for Craft.

September 30, 2025

Great concise video on Laravel actions, how to create them and how to test them.

June 19, 2025

Another handy little Laravel helper, abort_if. Perfect little helper inside actions when things go wrong.

June 19, 2025

Great little Laravel model tip. Use the "wasRecentlyCreated" model attribute to check if your model was created or found 👍

June 19, 2025

You can use the Section Rendering API to request the HTML markup for theme sections using an AJAX request. This can allow you to update page content without reloading the entire page by fetching and dynamically replacing only certain elements 🤯. More details here, https://shopify.dev/docs/api/a... Skip to 2:40 in the video to see Wes Bos explain in.

February 4, 2025

It's hard to beat Laravel for backend development and React is a force for front end development. Inertia.js is the little bridge flowing the traffic between the two. This YouTube series does a 🧨 job of explaining how to make it happen.

December 16, 2024

An elegant way to scale fonts and spacing for responsive designs. A generated example with 8 scales 

https://utopia.fyi/type/calculator

November 13, 2024

FetchPHP is a PHP library that mimics the behavior of JavaScript’s fetch API using the powerful Guzzle HTTP client. 🐕

September 23, 2024

A super flexy way to wrap button text when a row has multiple buttons/options.

May 15, 2024

Discovered a new HTML element `datalist`. Adds a dropdown autocomplete option to input fields. Finding features like this in native HTML is 🧨

April 16, 2024

Tired of using containers and wrapper divs? Struggling with how to breakout sections that need to go wider than the container width? This video is 💰💰💰

November 10, 2023

A modern "twist" on a Solari board using AlpineJs and Css.

October 31, 2023

This was really cool demo on CSS gradient borders but the eye catcher is the 3d exploding layers. 2 🔥 tips for the price 1.

October 23, 2023

🥸 Alpine Plugin: Mask

One directive: x-mask

Easy, powerful and elegant input masking.

October 23, 2023

If you're animating numbers, use this line of CSS

.numbers {
   font-variant: tabular-nums;
}

It will make sure your numbers don't jump around like this 👍

October 23, 2023

For anyone who loves typography, this little gem 💎 from @mikemai2awesome is one of my favorites. Clear, concise, actionable, and beautifully designed:

October 23, 2023

🔥 Design tip for developers

A good way to make your interface look “designed” is to use a consistent space scale

It's not art, it's science 🧬

With TailwindCSS this is so easy.

October 23, 2023

With a few simple lines of CSS you can create a beautiful 🥧 chart 

background:conic-gradient(
   #a78bfa 0deg 45deg,
   #fb923c 45deg 90deg,
   #a3e635 90deg 225deg,
   #22d3ee 225deg 0deg
);

October 22, 2023

The spread operator [...] is a handy way to convert iterable item(s) like strings, arrays and node lists into arrays. Converting node lists from querySelectorAll statements into arrays is 🌶️

October 19, 2023

Details.so

November 18, 2026

Looking for design inspiration to feed your AI? Details.so is a great resource, with everything from buttons and small interactions to full page layouts. Find a detail you like and use it to show your AI the look and feel you're after.

The Karpathy Rules

June 12, 2026

After using Claude Code on projects for a while, the biggest friction isn't the AI getting things wrong - it's the AI doing too much. Think of your CLAUDE.md/AGENT.md as a constitution for how AI behaves in your codebase, and Karpathy's rules are a solid starting point, they keep the agent focused, surgical, and honest, which means cleaner diffs and fewer "why did it touch that?" moments in review.

Stanford CS230 Lecture: Agents, Prompts, and RAG

April 13, 2026

If you're serious about integrating AI into your business - not just talking about it - this Stanford CS230 lecture from Kian Katanforoosh is required watching.

It cuts through the noise and gets practical fast: how to write prompts that actually work, why RAG beats fine-tuning almost every time, and how agentic workflows are changing what businesses can automate. Real examples, real tradeoffs, no hand-waving.

Before you reach for a fancier model, get more out of the one you have. Better context. Smarter prompts. The right architecture for the job. This is the kind of foundational thinking that saves you from making expensive decisions based on hype.

Watch it. Take notes. Thank me later.

A Practical Guide to RAG Using the New Laravel AI SDK

February 19, 2026

The awesome team at Tighten published a great document on how to implement RAG in a Laravel project with semantic search and vector databases.

Laravel Collections

September 30, 2025

I you do any work with arrays in Laravel or Craft you will instantly benefit for harnessing the power and utility of Laravel Collections. For Laravel, for Craft.

Laravel 'wasRecentlyCreated'

June 19, 2025

Great little Laravel model tip. Use the "wasRecentlyCreated" model attribute to check if your model was created or found 👍

Shopify Sections API

February 4, 2025

You can use the Section Rendering API to request the HTML markup for theme sections using an AJAX request. This can allow you to update page content without reloading the entire page by fetching and dynamically replacing only certain elements 🤯. More details here, https://shopify.dev/docs/api/a... Skip to 2:40 in the video to see Wes Bos explain in.

Laravel + React

December 16, 2024

It's hard to beat Laravel for backend development and React is a force for front end development. Inertia.js is the little bridge flowing the traffic between the two. This YouTube series does a 🧨 job of explaining how to make it happen.

Fetch PHP

September 23, 2024

FetchPHP is a PHP library that mimics the behavior of JavaScript’s fetch API using the powerful Guzzle HTTP client. 🐕

No more containers

November 10, 2023

Tired of using containers and wrapper divs? Struggling with how to breakout sections that need to go wider than the container width? This video is 💰💰💰

Gradient Borders Exploded

October 23, 2023

This was really cool demo on CSS gradient borders but the eye catcher is the 3d exploding layers. 2 🔥 tips for the price 1.

Tabular Numbers

October 23, 2023

If you're animating numbers, use this line of CSS

.numbers {
   font-variant: tabular-nums;
}

It will make sure your numbers don't jump around like this 👍

Interface design

October 23, 2023

🔥 Design tip for developers

A good way to make your interface look “designed” is to use a consistent space scale

It's not art, it's science 🧬

With TailwindCSS this is so easy.

CSS Pie Chart

October 22, 2023

With a few simple lines of CSS you can create a beautiful 🥧 chart 

background:conic-gradient(
   #a78bfa 0deg 45deg,
   #fb923c 45deg 90deg,
   #a3e635 90deg 225deg,
   #22d3ee 225deg 0deg
);

Spread Operator

October 19, 2023

The spread operator [...] is a handy way to convert iterable item(s) like strings, arrays and node lists into arrays. Converting node lists from querySelectorAll statements into arrays is 🌶️