Dan Hampton
dancancode.bsky.social
Dan Hampton
@dancancode.bsky.social
Senior software engineer and business owner. Developing in Laravel, TypeScript, React, Vue, etc. Made at least one thing in production with Rust.
Where's your point of diminishing returns for automated tests? Where do you stop or skip them? Assume you're under a moderate amount of time pressure.
October 27, 2025 at 10:12 PM
Second time in six months I really wish I already knew how to use nom or parser combinators in general.

I'll find an excuse, sometime.
September 23, 2025 at 12:07 AM
The LazyVim extras are useful. They have a convenient GUI but I'm skipping that and using plugin files. You can grab the plugin configs from GitHub and modify them.

PHP extra: www.lazyvim.org/extras/lang/...

Plugin code: github.com/LazyVim/Lazy...
PHP | LazyVim
You can enable the extra with the :LazyExtras command.
www.lazyvim.org
September 1, 2025 at 11:07 PM
electron-builder does not want to work with my janky monorepo setup
August 26, 2025 at 7:38 PM
Talking to people can be fun. Who knew?
August 21, 2025 at 12:12 AM
Josh always writes excellent and informative articles.
✨ I just published a brand-new post! It’s about the notorious SVG <path> element.

With its compact Regex-style syntax, <path> can be super intimidating. But they’re also *incredibly* powerful, letting us draw (and animate!) curved lines.

You can read it here, and I’ll share more info in thread. 🧵
An Interactive Guide to SVG Paths • Josh W. Comeau
SVG gives us many different primitives to work with, but by far the most powerful is the <path> element. Unfortunately, it’s also the most inscrutable, with its compact Regex-style syntax. In this tut...
www.joshwcomeau.com
August 18, 2025 at 10:25 PM
I already use tmux but I'm so impressed by @alexandersix.com 's slides in his Laracon presentation!
July 30, 2025 at 5:27 PM
I signed up for @laravel.com Nightwatch and it found a problematic route immediately.
July 30, 2025 at 12:36 AM
Seems to me Laravel Job attempts that fail due to timeouts (whether `failOnTimeout` is true or not) are treated differently than other failures. The job will not immediately be retried, only after the `retry_after` duration has been reached on the queue connection level.

Is that correct?
July 27, 2025 at 5:32 PM
I can't tell if my recent thought, "We need a client-side in-memory graph database," is a sign of genius or losing control.
June 7, 2025 at 12:20 AM
Sometimes the shape of code catches your eye.
May 2, 2025 at 2:38 PM
Damn. Sail no longer mentioned on the Laravel docs Installation page: laravel.com/docs/12.x/in...

I found the previous version very useful: laravel.com/docs/11.x/in...
Installation - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
laravel.com
February 27, 2025 at 6:28 PM
Trying to hire people smarter than you is a fascinating exercise
November 12, 2024 at 1:50 AM
Reposted by Dan Hampton
laravel has this "toOthers" method that literally broadcasts an event to everyone except the user who triggered it. 🤤 are you kidding me? laravel, you're the GOAT… 🐐
November 4, 2024 at 9:55 PM
Reposted by Dan Hampton
One of the APIs I'm most happy with is in [Gretel](github.com/glhd/gretel) — defining breadcrumbs right next to your routes is *so nice.*

Adding a route? Just chain the breadcrumb on. Removing one? Just remove the whole block, and the breadcrumb config is gone, too!
November 4, 2024 at 9:58 PM
If you ever had to downsize from the loss of a client or project (i.e. it finished), how did you go about it? The mechanics and communication.
November 4, 2024 at 10:14 PM
Reposted by Dan Hampton
If you sell any type of B2B software, jumping on a call with a customer is the number one way to get great feedback and build relationships. I know as developers we hate that, but it works.
October 31, 2024 at 7:17 PM
This 3 minute article on PHP stack trace parameter security from @valorin.bsky.social is already proving useful!

securinglaravel.com/security-tip...
Security Tip: Hide Sensitive Parameters from Stack Traces
[Tip#60] Stack traces are essential for debugging complex (and even simple) issues, but there is a risk that something sensitive might be exposed within your trace... Let's ensure that doesn't happen!
securinglaravel.com
October 29, 2024 at 12:53 AM
So I'm setting up Sentry with Laravel and I see this. This seems bad, right @valorin.bsky.social ? Pretty sure I want that setting to remain on, and to not have arguments in my stack traces.
October 28, 2024 at 8:38 PM
When attaching related records in Filament, you can customize the columns searched and how the results appear. Found this handy in responding to a customer request!
October 28, 2024 at 8:09 PM
I'm here, finally! This is just my default expression toward new things 😆
October 27, 2024 at 6:43 PM