Mark (@markhuot) 's Twitter Profile
Mark

@markhuot

You know.

ID: 888171

linkhttp://www.markhuot.com calendar_today10-03-2007 22:49:45

4,4K Tweet

1,1K Followers

116 Following

Mark (@markhuot) 's Twitter Profile Photo

🎉 Snapshots testing is coming to @CraftCMS! It's already in PEST but github.com/markhuot/craft… puts some nice Craft-y goodness on top of them. Match any response, template, DOM node, or Element/Entry to a snapshot!

🎉 Snapshots testing is coming to @CraftCMS! 

It's already in <a href="/pestphp/">PEST</a> but github.com/markhuot/craft… puts some nice Craft-y goodness on top of them.

Match any response, template, DOM node, or Element/Entry to a snapshot!
Mark (@markhuot) 's Twitter Profile Photo

All normalized databases will eventually denormalize in to key/value caches of specific data needs. Instead of `post.authors[0].organization.title` I always end up with `post.authorOrgTitle`. ¯\_(ツ)_/¯

Mark (@markhuot) 's Twitter Profile Photo

Snapshot testing in PEST is great for @CraftCMS migrations. Here I run an import, confirm the import count, and expect that each entry matches the previous snapshot. Now I can change my feed or adjust my transformers with full confidence! craft-pest.com/snapshots.html

Snapshot testing in <a href="/pestphp/">PEST</a> is great for @CraftCMS migrations. Here I run an import, confirm the import count, and expect that each entry matches the previous snapshot. Now I can change my feed or adjust my transformers with full confidence!
craft-pest.com/snapshots.html
Jack Ellis (@jackellis) 's Twitter Profile Photo

ChatGPT feels impressive when I’m asking it questions about a topic I don’t know anything about. But once I start asking questions about complex problems that I understand, it feels like I’m talking to someone who is just randomly Googling for answers to my questions.

Mark (@markhuot) 's Twitter Profile Photo

I'd like to re-record this for Laravel using a traditional request/response/turbo. I know I'll come up against a bunch of focus/UX issues that Remix is able to handle out of the box. Still, would be fun to see how far stock Laravel gets you.

Mark (@markhuot) 's Twitter Profile Photo

Can anyone tell me why `await $nextTick()` does not focus the input in this example? I think I'm doing exactly what the docs explain… codepen.io/markhuot/pen/J…

Mark (@markhuot) 's Twitter Profile Photo

I read a couple tweets about Zuck feeding his cows macadamia nuts and now I’m getting nonstop ads for nuts. And now I’ve tweeted about nuts so here come even more targeted ads and now…

Mark (@markhuot) 's Twitter Profile Photo

Woo! Arc on iOS supports iOS-native password vault. Just got 1000% easier to switch to Arc. (I wish they had a webkit-based desktop build now too and I'd be _all_ in on all my devices)

Mark (@markhuot) 's Twitter Profile Photo

Any @CraftCMS developers know of a good way to type an EntryQuery for custom fields? I have CustomFieldBehavior typed on to craft\elements\Entry so I can $​entry->customField without issue. But now I want to Entry::find()->customField($​value)->one()

Mark (@markhuot) 's Twitter Profile Photo

Is it crazy that I would love a Terraform as a Service. Something where I can interact with a UI to make all the changes I would normally make in Cloudflare or AWS UIs but those changes are persisted to .tf files and synced to some SCM for me?

Mark (@markhuot) 's Twitter Profile Photo

Oooo, React Server Components in v19 are opening up to anyone thanks to the `use` hook. Can't wait to make 🌶️ use of this from PHP.

Mark (@markhuot) 's Twitter Profile Photo

Not going to lie. I'm loving queue handling in `craft-pest` now. It's sort of an e2e test masquerading as a unit test but I don't care. The unit of work is saving an entry. I want to test that saving an entry calls the correct queue jobs.

Not going to lie. I'm loving queue handling in `craft-pest` now. It's sort of an e2e test masquerading as a unit test but I don't care. The unit of work is saving an entry. I want to test that saving an entry calls the correct queue jobs.