Dan Hampton's Avatar

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.

59 Followers  |  113 Following  |  36 Posts  |  Joined: 27.10.2024  |  1.9674

Latest posts by dancancode.bsky.social on Bluesky

Their model numbers are a bit confusing but I'll definitely take a look. Currently have a foldable WalkingPad and it's just okay. Some aspects are great but I've had some issues, probably will replace at some point.

30.07.2025 21:31 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I already use tmux but I'm so impressed by @alexandersix.com 's slides in his Laracon presentation!

30.07.2025 17:27 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

The open source team has style.

30.07.2025 16:49 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

The devs sending the requests were not reporting they were being rejected. The process was automated so I'm guessing they weren't able to check their logs.

30.07.2025 00:36 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I signed up for @laravel.com Nightwatch and it found a problematic route immediately.

30.07.2025 00:36 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Is it okay to fork the forks? ๐Ÿค”

28.07.2025 21:53 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

This type of pizza seems delicious yet dangerous

28.07.2025 01:09 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Are the pizzas strongly typed? ๐Ÿ•

27.07.2025 23:13 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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?

27.07.2025 17:32 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Had a similar situation where it ended up being a me problem after I asked "hey did you guys change something on the server yesterday?"

Nope, I changed something yesterday.

17.06.2025 01:24 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I realized recently that I missed a Laravel stream of yours! Have a good trip!

08.06.2025 20:37 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

07.06.2025 00:20 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I already liked the editing in your normal project videos and this was even better. Great summary and cool projects

04.06.2025 01:32 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Ternary operations in TypeScript code making two diagonal lines

Ternary operations in TypeScript code making two diagonal lines

Sometimes the shape of code catches your eye.

02.05.2025 14:37 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

That default delay and lack of ability to turn off mouse acceleration (without third party software) was a huge, and surprising, pain point.

05.03.2025 21:23 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Sail and docker

04.03.2025 21:32 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
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.

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...

27.02.2025 18:28 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Sounds complicated but luckily for baristas you draw excellent diagrams! ๐Ÿ˜

19.01.2025 23:20 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

The import syntax comes to mind. Maybe the equivalent of JS destructuring or tuple unpacking. I'd do a lot more googling if I didn't have IDE auto suggestions.

19.01.2025 18:42 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I found the Laravel Sail experience (that uses Docker) on Windows is pretty good. I had trouble with Herd, some PHP and Linux parts don't seem to be available on Windows. (Couldn't run Horizon).

18.01.2025 16:43 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Thought it was a great episode. I learned a few things and I'm excited for Filament 4.

25.12.2024 21:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Trying to hire people smarter than you is a fascinating exercise

12.11.2024 01:50 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Were the plans for tonight have to have snacks and now it's snackless-sunday? ๐Ÿค 

10.11.2024 21:25 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

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โ€ฆ ๐Ÿ

04.11.2024 21:55 โ€” ๐Ÿ‘ 57    ๐Ÿ” 6    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 2

That is amazing to hear.

05.11.2024 02:05 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Well this looks pretty sweet.

I also see that markdown you got there ๐Ÿ˜†

05.11.2024 02:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
// Quickly define your breadcrumbs inline with routes

Route::get('/', HomeController::class)
  ->name('home')
  ->breadcrumb('Home');

Route::get('/profile', ProfileController::class)
  ->name('profile')
  ->breadcrumb('My Profile', parent: 'home');

// Gretel happily works with resourceful routes, too!

Route::resource('keyboards', KeyboardController::class)
  ->breadcrumbs([
    'index' => 'My Keyboards',
    'create' => 'Add a Keyboard',
    'show' => fn(Keyboard $kb) => $kb->title,
    'edit' => 'Update Keyboard',
  ]);

// Quickly define your breadcrumbs inline with routes Route::get('/', HomeController::class) ->name('home') ->breadcrumb('Home'); Route::get('/profile', ProfileController::class) ->name('profile') ->breadcrumb('My Profile', parent: 'home'); // Gretel happily works with resourceful routes, too! Route::resource('keyboards', KeyboardController::class) ->breadcrumbs([ 'index' => 'My Keyboards', 'create' => 'Add a Keyboard', 'show' => fn(Keyboard $kb) => $kb->title, 'edit' => 'Update Keyboard', ]);

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!

04.11.2024 21:58 โ€” ๐Ÿ‘ 32    ๐Ÿ” 3    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 0

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.

04.11.2024 22:14 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Love Factorio! Looking forward to playing it with the expansion, but not for some time.

03.11.2024 01:38 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

31.10.2024 19:17 โ€” ๐Ÿ‘ 60    ๐Ÿ” 7    ๐Ÿ’ฌ 10    ๐Ÿ“Œ 1

@dancancode is following 20 prominent accounts