Chris Morrell
@cmorrell.com
3.8K followers 360 following 4.4K posts
Philadelphia father of two. Mostly talking about PHP/Laravel/React on here. He/him. On the web @ https://cmorrell.com Podcasting @ https://overengineered.fm/ On mastodon @ https://rtsn.dev/@chris Formerly @ https://twitter.com/inxilpro
Posts Media Videos Starter Packs
Reposted by Chris Morrell
robjackel.bsky.social
Everyone in Philly should come!
internetwebsiteofnoah.com
I am proud to say I will be at the No Kings protest on Saturday in Philly.

I hope you will join me! If you support the event but are not planning to come, please help spread the word.
Reposted by Chris Morrell
cmorrell.com
This episode hearkens back to the early days of Over Engineered. We had a real technical problem and tried to come up with a real (over engineered) solution.

Pretty happy with where @bogdankharchenko.com, @skylerkatz.com, and I landed!
cmorrell.com
You may need to track score on the entry state to validate certain actions. Maybe not. You can also change what state you track over time and re-project if you need to.
cmorrell.com
When a user joins a tournament, it sounds like they join it as part of an org. So that event will probably include the user ID and org ID. From there on, all events fired on that entry probably need to be validated against those IDs.
cmorrell.com
Yeah, without knowing more about the application that sounds about right. Generally think about the state as tracking the data that's necessary to validate future events, events as "everything that happened," and models/projections as data necessary to show your UI best.
cmorrell.com
That state can still track the user, organization and tournament IDs, too, but I would think of the entry in the tournament as its own thing.

The shorter-lived your states can be, the better (in general).
cmorrell.com
I would think about it as a single thing. So, the user is participating in a tournament held by an organization?

In that case, I might have a UserEnteredTournament event that creates a new EntryState, and use that state ID for events related to that entry in the tournament.
cmorrell.com
This episode hearkens back to the early days of Over Engineered. We had a real technical problem and tried to come up with a real (over engineered) solution.

Pretty happy with where @bogdankharchenko.com, @skylerkatz.com, and I landed!
cmorrell.com
I don't need to do this often, but when I do it's a huge pain to get the sequential tailwind classes right, so I put together a little "responsive text" blade component. It's pretty neat!
Code Snippet:

```blade
<x-ui.responsive-text
  xs="Unsigned"
  md="Not yet signed"
  xl="This agreement has not yet been signed"
/>
```
cmorrell.com
You were a great MC!
cmorrell.com
Just created a git `commit-msg` hook that replaces "wip" with a Claude Code-generated commit message.

Feel free to use: gist.github.com/inxilpro/772...

(Also, let me know if you have any commit message prompt tips!)
commit-msg.sh
GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
cmorrell.com
No, I set that up after I had already found a good group of people to follow. But I do occasionally check the "posts" tab of it and follow anyone who is posting interesting things.

When I joined bsky, @justinjackson.ca's "Laravel Friends" list was the best out there. It's def another good resource.
cmorrell.com
This starter pack is an automated list of anyone who's contributed to a major Laravel package:

bsky.app/starter-pack...
cmorrell.com
Maybe use some starter kits to find new people to follow? If you’re only following 50 people, one or two folks slowing down could have a noticeable impact on things for you…
Reposted by Chris Morrell
kelseyhightower.com
🎯
booch.com
I’m not anti-AI.

I am, however, anti the rapacious tech bros who selfishly hype AI for the purpose of increasing their wealth and power at the expense of our humanity.
cmorrell.com
Honestly, they tasted great but aren’t very attractive and probably don’t keep very well. The apple chunks shrink inside the candy shell and moisture in the apple eventually causes the candy to soften. They were awesome to eat, but got kinda messy pretty quickly.
cmorrell.com
It's a very different experience, I would say. Dipping slices in caramel is fantastic, though…
cmorrell.com
Update: these are effing delicious.

“Apple cinnamon” in a crunchy, tart, sweet bite.
cmorrell.com
You’ve got approximately 20 mins before I eat every one of these.
cmorrell.com
Oh! I hadn’t planned on it but I don’t think I’ve got anything going on that day so I might register!
cmorrell.com
It’s also an opportunity to make the candy coating extra-delicious. I used cinnamon and vanilla beans to add a fall-inspired flavor to it.
cmorrell.com
So it’s apple season and I’ve been craving a candied/caramel apple. But I don’t want a whole one. So I’m experimenting with candied apple bites…

It’s very hard to wait for these to cool entirely!
Photo of candied apple chunks with tooth picks sticking out of them.