cmorrell.com
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
3,988 posts
3,683 followers
341 following
Regular Contributor
Active Commenter
comment in response to
post
Well that’s just called being efficient. If I stop and work on my slides and then go back to Mario Kart, think of all the wasted time moving around and context switching. If I just play a few rounds in a row, I essentially *gain* time.
comment in response to
post
Yup absolutely that’s my plan! I’ll just play one round of Mario Kart and then put it down and start doing something responsible!
comment in response to
post
Hey cool you’re working on your slides me too totally!
comment in response to
post
Is your friend code the same across Switch 1 and Switch 2?
comment in response to
post
Mine arrives tomorrow. Will do.
comment in response to
post
😂
comment in response to
post
OK, just read most of the Robb Owen article. It’s interesting—I agree with most of the conclusions but the article itself doesn’t do much for me. I’m gonna sit on it for a bit and then maybe I’ll have more to say.
comment in response to
post
I think the tone worked for me because I have mostly been on the skeptic side, and his argument cut thru a lot. There are points I disagree with, but I’m coming around on the tremendous utility of these tools when used well.
comment in response to
post
Hm, it looks like the convention is to use the `As` prefix. My preference would just to implement the `Castable` interface on the `Uri` class directly so you could do:
'destination_url' => Uri::class
But it seems like for whatever reason the framework has gone with the custom "As" casts instead…
comment in response to
post
Would it make sense to just implement the interface on the Uri class itself so that you can just use it as the cast?
comment in response to
post
😅
comment in response to
post
But did you see the Freedom of Expression Booth?
comment in response to
post
Last time I flew, non-precheck lines were shorter than the precheck ones, so…
comment in response to
post
I've been working on things that involve recursion all week and holy cow my brain is just melted at this point
I keep finding myself just staring into space, I feel like I've been working on things that involve recursion all week and
comment in response to
post
😅
comment in response to
post
haha same here
comment in response to
post
lol
comment in response to
post
(it helps when you delete a 150,000 line text file that got committed accidentally)
comment in response to
post
I see you and I raise you…
comment in response to
post
lol
comment in response to
post
Ooh, maybe toss a waffle under it next time!
comment in response to
post
Ice cream has no “off-season” or blackouts—you can enjoy it anywhere, anytime! Ice cream is always “in season” and available 365 days a year. Just pure, delicious enjoyment whenever you want it.
comment in response to
post
A classic.
comment in response to
post
This is awesome. I usually run my tests directly in my IDE, so it's easier to use a data provider, but if you run your tests via the CLI I can see an argument for setting this up as a local alias!
comment in response to
post
Same! It's been very fun to play at the same time as friends, too… lots of discussing theories and tip-toeing around spoilers.
comment in response to
post
I generally prefer PHPUnit to Pest, but some of the test utilities that Pest has (like this one) are just so nice!
comment in response to
post
It's an extreme over-optimization 😅
If I just return `range(1, 50_000)` then PHP has to hold a 50,000-item array in memory.
If I do it as a generator, it's yielding each iteration one-by-one.
In reality, there's a good chance the generator is less performant, though 🤪
It's just what I did…