20: A Man of Culture - podcast episode cover

20: A Man of Culture

Jan 19, 20241 hr 1 minEp. 20
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

Ian & Aaron discuss the Laracon US announcement, going on ski vacations, route model bindings in Laravel, & more.

Sponsored by LaraJobs & Screencasting.com.

Sent questions or feedback to mostlytechnicalpodcast@gmail.com.

  • (00:00) - Ski In, Ski Out
  • (09:00) - Aaron's Problem Is Beach
  • (14:59) - Mailbag & PlanetScale Studios Follow Up
  • (27:48) - Laracon US, Baby!
  • (34:03) - The Bear
  • (45:16) - Route Model Bindings

Links:

Transcript

Ski In, Ski Out

Intro

You're listening to Mostly Technical, which is brought to you by Lara Jobs, the official Laravel job board and screencasting.com, where you can learn how to create high quality screencasts Faster than ever. Now, Ian and Aaron.

Ian

Okay. Welcome back, everybody. Hello, Aaron.

Aaron

Hello, Ian. How are we doing this week?

Ian

Doing great. Back at it. Mostly recovered from my illness. Ready to go.

Aaron

Well, this week, Texas was just rocked by a snowstorm. I think we got potentially a quarter inch of snow. And, you know, we were supposed to record, we were supposed to record Monday, but that was, like, a a holiday slash snow day, And that's the day that we got snow. And I'm I mean, I'm in Dallas. We got we got, like, literally a quarter inch.

And it was all, you know it did stick, so it was kinda fun for the kids to see, maybe a half inch. But then by Tuesday, everything was clear. Everything was totally clear, totally fine, and I messaged you on Tuesday and said it's another snow day. And you said, woah, more snow, and I never responded because, no, there wasn't more snow. They're they just closed school again because it was cold.

Ian

It was now. It's just cold. Yeah.

Aaron

Yeah. So Just looking for a reason. They, like, like, when school's out and you're a kid, it's the best thing in the world. And when school's out and you're a parent, you're like, what are they thinking?

Ian

Are they insane? Yeah.

Aaron

This is Ridiculous. So Tuesday, they were out of school again. And so it's still cold, but, kids are back to school today. Thank goodness.

Ian

Do they have built in snow days there? Like, is there usually a snow day every year or no? Or do you know yet? Because you're

Aaron

I don't know yet because they're not in real school, but Our, you know, little mother's day out follows DISD closures, and so I would assume I would assume they probably have 1 or 2 built in, because d I DISD was closed across the whole city.

Ian

Nice. Well, yeah, a little snow for the kids down south. That's always fun. Little change. We haven't had much snow here either. We did we did have some this week, so I'm trying to get skiing in. It's, like, impossible. There's no snow. I hate going. There's no snow, and only the man in

Aaron

the snow. Make it tough, I guess, The snow not being there. Yeah.

Ian

So I don't know. Then I kinda wanna go out west, but there's no no good time. I don't know. So We'll see about skiing this year.

Aaron

You know, I'm not a big ski guy.

Ian

No? Never skied?

Aaron

Gotta say. Gotta say. Oh, we can't just float.

Ian

No. Oh, no.

Aaron

Here's the here's the deal. Here's the deal. I I can ski. Oh. It it's not it's not a it's not a question of, ability. It's a question of desire. I don't I don't like it. Well, here's okay. Let me let me we'll go there. We've got time. What else are we gonna do?

Ian

Yeah. Nothing to.

Aaron

If I were delicately placed on the top of the mountain, I would love to ski down. That would be so fun to me.

Ian

You're you're an anti lift guy.

Aaron

I'm an I'm an anti everything else besides skiing guy. Right. Here's the here's what happens. And maybe I've been poor because, you know, we used to only ski the only times I've really skied is in college, and I was very poor. And so Right. You, like, you get a place, like, 30 minutes away from the mountain with 8 other guys.

Ian

Don't have to

Aaron

You low you you put on all you put on all your stuff, which, first of all, you're putting on, like, 18 items of clothing. Right?

Ian

You're sweating.

Aaron

I gotta get I gotta, yeah, I gotta get ready to ski. I guess I guess I'll put on 6 pairs of pants, and then you make a you make a dumb little sandwich, and you drive 30 minutes to the mountain. And then you're walking around carrying skis, bumping into people, trying to find a locker for your little sandwich that's terrible, And then you walk up to the lift, and you ski a few times. You gotta go to the bathroom. You gotta you gotta walk down.

Ian

I like going to

Aaron

the bathroom. The whole day.

Ian

Yeah. The

Aaron

whole day is a schlep.

Ian

So much schlepping. There is a lot of schlepping.

Aaron

Much schlepping. So if I was rich if I was rich and I had a house that was, like, It's very important, you know, people talk about having a house near the mountain wrong. I need to have a house on the mountain

Ian

On the mountain.

Aaron

Where I ski Where I skied downhill Yeah. To the lift. From the house.

Ian

Ski out.

Aaron

Yes. Yes. So maybe I've done it wrong, but I'm over I'm over schlepping.

Ian

Yeah. So that's the one growing up. That's how I always, like, we just drove up for the day. We never even stayed. Like we didn't have any money to stay. We never stayed over. We just went and skied for the day And it is horrible. It's like load all your shit. 5 in the morning. You're tired. Yes. Drive 2 hours to the mountain or sometimes we drive 4 hours to Vermont, like, in go ski, Try to get home. We're exhausted. We're falling asleep driving home. Like Yes.

Aaron

The whole

Ian

thing is bad. Yes. It does improve with money a little bit. So definitely the ski and ski out is a tenfold increase in enjoyment. Like it just changes the whole thing. When you can just walk out the door and start skiing. You wanna come back for lunch. Boom.

Aaron

That's it. I wanna come back for lunch. Yes.

Ian

Yep. Like, you pull in, you have to go to the bathroom, you pull in, kit you got kids, and they get sick of it. You're like, yeah. 1 of you takes the kids in. The other one Yes. Keeps skiing with the kids. You wanna keep Whatever. Like it is a dramatic improvement if you can do ski and ski out. It's kinda weird now still though, like even though there's no snow anymore, The cost of ski and ski out is quite expensive, so it does add a lot to the, cost of the trip. We did one Yeah.

Year with points, which is not like the best way to use points, but whatever we did at one time. But yeah, it is, it is a lot nicer. Like as soon as you're not skiing ski out, the level of hassle Definitely dramatically increases, a little local mountain we go to, which is like 50 minutes away. Isn't Too bad. Just them no snow. Because at least you could park close, which is also nice. Like, at least the schlepping like, we get to schlep from, like, the back

Aaron

From the parking lot. You're riding some bus with a bunch of idiots. Yeah.

Ian

That's the worst. So if you could, like, pull up and you're basically in the front and you're like, okay. Like, I walk 30 feet and whatever. I have my own stuff. I don't have to go inside. Like, At one point, we were, like, renting for the kids and stuff. That's a disaster. There's

Aaron

Yeah. That's how the thing is I'm always I'm always renting. I'm always renting. Terrible.

Ian

It's nice because the stuff's already there. It's kind of like walking from the parking lot. You don't carry a bunch of stuff. So that part's nice. Yeah. But then you're on lines and dealing with it. They give you the wrong size. It's Broken. It's disgusting. You gotta bring something back. You know, it ends up being an hour dealing with that.

Aaron

So Exactly.

Ian

That part's not fun. So, yeah. I know. Yeah. Skiing is one of these sports that it's, like, so there's so much stuff around it and cost to it and the whole thing that, like stuff.

Aaron

Enjoy So much ancillary stuff, and it's so

Ian

Freaking expensive. It's very expensive. It's gotten really

Aaron

I can't imagine with kids. Yeah. My, my wife's Dad tells this great story about my wife is one of 4 girls. And so they they went skiing one time, and apparently, it was just like Freezing cold and nobody was having fun, and he tells the story that that trip was basically sitting around the fire burning $100 bills because it was so like, it's so expensive to be there, nobody skied. They just Yeah.

Ian

You're not even skiing. Right? You're just in in the hotel room, knocking

Aaron

out. Yeah.

Ian

Yep. Yep. Yeah. We, They do have now they have these, these passes, it's like epic pass and the icon pass, because like basically bail owns like everything and what bail doesn't own this other Company owns. And so if you live in strategic areas, that does help the cost because, like, yes, it's, like, $900 or whatever for the past or some of them are even cheaper, And it's like unlimited.

So it actually, if you live somewhere where you can utilize it, like if you live in Colorado, like, yeah, you're gonna, like, get your money's worth and you might be skiing for $50 a trip, which is like, great, fine. But otherwise, yeah, it's hard. Like even where there are some East coast ones on these passes, but they're not That convenient to me and they don't have snow. So it's like, well, I'm gonna spend $1,000 on this thing. They don't have snow.

So, yeah. But, yes, with the kids, it's all, like, we need 2 hotel rooms. Like, the whole thing just gets, like, crazy.

Aaron

And you know you know, I'm I'm gonna be carrying around My skis and then 4 pairs of little skis if we ever

Ian

go skiing.

Aaron

There's no there's no way they're gonna carry their own skis.

Ian

Yeah. You you should get them dry until they're They're bigger. It'll be too way. It's just too hard.

Aaron

Even when the kids are on a church

Ian

trip. Much better. Right. Yeah. They can

Aaron

they can go they go through your

Ian

group and I'll say, have fun.

Aaron

Right. Enjoy. I'm gonna enjoy the week at home in silence.

Ian

That that if you have that option, I think that's a good option, But you dragging around 4 sets of little skis. No way. That's disaster. We've never had our oldest doesn't ski at all. And we only asked, so we only had younger too and they learned at time.

So it wasn't too bad, but if you have like the 2 at the same time and then 2 more right behind them, you can't be doing that until they can at least either you could ship it on some, maybe somebody else's problem Or, they can carry their own stuff. So at least they're, like, 6 or 7, and they're like, yeah, they can deal with their own stuff, at least mostly. But yeah.

Aaron

You know what you know what else I have a problem with?

Aaron's Problem Is Beach

Ian

What? Let's have it.

Aaron

The beach. The beach? What?

Ian

The beach. You don't like seeing it. You Like, the bee

Aaron

Same problem.

Ian

You are, like, such a suburban Dallas, like, living in a Condo Listen. Kinda guy.

Aaron

I have the same problem with the beach. Okay. So before I before I enumerate my problems

Ian

with the beach your beach issue easily, but okay. Yeah.

Aaron

I think you've told I have maybe we've done this because you told me about the track. Okay. So The the beach the beach issue is is well known. You're schlepping still. So we won't we won't rehash that.

If you wanna listen to that, there's an episode about you gotta have a truck. Gotta have a truck. So the I think my Platonic ideal of, like, a vacation is, either, like, a river or creek house. So, like, foothills of the mountains, you know, you've got some nature. You've got a little creek you can play in or or a little river, like, down in the Hill Country in Texas, that's where we go every summer with my college friends.

We go to sit in the river and hang out. Great. You walk down to the river, You sit, you hang, you walk back. There's no, like, you only gotta pack up for the day. I guess I don't like packing up for the day. The other the other platonic ideal is You rent, I'm thinking, like, family trips. You rent, like, a huge house with a huge pool right off of the living room. Right? And so I've seen some of these, like I think it's wander, which is trying to be, like, luxury Airbnb. Okay.

And I've seen seen some of these wander houses, And they've got this massive pool and, like, these big sliding doors that share, like, the living room into the pool area. And that is my that's my platonic ideal for a family vacation because, like, people can hang out. A part of the problem with the beach is everybody gets separated. Right? People wanna stay at the beach. Some people wanna stay in the house.

Ian

Right.

Aaron

With the giant pool, there's, like, the living room. People can hang out in there. You can have your lunch there. You can be swimming. It's all right there together, And it's just so easy to get back and forth. So either that or or River House. Not impressed?

Ian

Well, I mean, I I've done the creek house thing. We actually did that a lot during COVID, up in the Catskills, which is like the little mountain range in New York. I've we've thought about the big house with the pool. We've never done that. Like, as a freestanding, it is just a big house. It's like we've had a big house with a pool at the beach. At the beach. Never had like, I thought the optimal beach scenario, I would say, or

Aaron

I bought that. Yeah.

Ian

One of those 2. Again, yeah, if you're away from the beach in a beach house, it's like you get all the shopping and all the, like you don't get the upside of, like, listening to the ocean and all that stuff. So, like, there is a huge Went there. Yeah. So I don't know.

The thing with the big house, just the pool is that it sounds good, but the kids get super bored And then they're just bored of it. And like on day 2, they're like, what are we gonna do? It's nothing to do. Can I go on my iPad? And so the pool loan gets a little tricky.

Aaron

They don't wanna sit at the pool and write blog posts?

Ian

No. Exactly. They don't they don't wanna do that. They're gonna get bored. I mean, maybe your kids will be different and they won't be bored of the pool, but my kids get bored of the pool pretty quickly, and then they're like, what are we doing now? And if you're not in a place

Aaron

Do you have a pool at home?

Ian

No. We did dang. We were part of the

Aaron

I was hoping that was a factor.

Ian

Now we were part of this tennis club for a while when the kids were young, that had a pool. So we'd go there to the pool, which was pretty cool. And That's where they they learn to swim, which that is the only way to learn to swim. Like, I don't really know how to swim. Like, I learned to swim when I was, like, 40.

And because we're at this tennis club, and I just was like, alright. I'll learn to swim. Well, like, I still can't you know, I wouldn't trust myself to swim, you know, outside of a pool scenario. Nice. So it was nice to have this pool because, like, whatever. The kids were there every day, all Summer, and there was other kids there, and they learned to swim well, and that was all good.

Aaron

Yeah.

Ian

We we do not have a pool at your house is like that's like Chaos. That's a reality. Northeast. Like

Aaron

No. Freaking

Ian

way. Literally 2 weeks a year where it's warm enough to, like, really be in the cold

Aaron

$1,000,000 to maintain.

Ian

Yeah. It's, like, a 150 grand to build it and, yeah, maintain Okay.

Aaron

Well, you're you're you're you're raising a good point about them getting bored at just a pool.

Ian

Yeah. The beach is nice. Cause the beach, like you can play in the sand. You have the water. So it's like a pool like thing, but there's more to it. There's other kids often. And then also, usually, the beach town you're in has stuff to do. Right. So when

Aaron

you get bored, you get into a little square. Yeah.

Ian

Do get Some ice cream, go out to dinner or whatever, blah blah blah blah blah. So that's like, we usually do Martha's Vineyard most years.

Aaron

So maybe I need to refine the perfect vacation to include a beach, but with the house that has a pool right off the the kitchen.

Ian

That's that's a great great setup. Yeah. You gotta re you see, you're factoring like you're not a guy with 4 little kids, but

Aaron

Yeah. Yeah. Yeah. It's still catching up to me. It's yeah.

Ian

Yeah. You haven't really gotten a big family trip yet. Right? Have you done it? Well, obviously, not with 4, you haven't.

Aaron

Not with the 4. We've done we've done, a few I guess we've done 2 trips or maybe one trip to Florida Beach with the the older 2. So my wife's family does, like, every other year about. Right. All all the the whole family gets together, and it's super fun. But the beach is just, like the last time we went, I think I realized it's a lot harder with, like, 2 little kids to get

Ian

really little

Aaron

I thought Down to the beach and just sunscreened and back for nap and snack, and it was like, oh, man. This is a lot of work.

Ian

So And when they're wandering stuff too, they're still, like, eat in the sand and stuff like that. Like that's like not fun. So yeah, once you're you're getting closer to where it's fun at the beach when they're like 345 and

Aaron

But but, alas, we we are now we're back to the reception. Contact.

Ian

Oh, man.

Aaron

All right.

Ian

Not vacation talk. We're not there. Not vacation time. All right. Let's go. Let's go. Alright. Mailbag follow-up. Your boss boss, commented on our last the big boss, Sam commented on our, pricing discussion about the PlanetScale pricing page, and, he's nice short little thing. He said they're gonna fix it.

Mailbag & PlanetScale Studios Follow Up

There

Aaron

you go. He he listened to your slander about our company.

Ian

So we MR increases 20%. Just

Aaron

Yeah. I'll I'll make sure we get your referral check. Yeah.

Ian

Yeah. Yeah.

Aaron

We were actually on a call, just like me and the education team, not not including Sam, and, pricing came up. And somebody mentioned something about, like, Our pricing page is either confusing internally. Our pricing page is either confusing or it doesn't do something, and I was like, oh, shoot. I gotta I gotta drop the link, don't I? And so I said, hey, here's a conversation between me and my friend about his thoughts on our pricing page, and I dropped it into I dropped it into chat, and then I think Holly sent it on to Sam.

Ian

Way up.

Aaron

Yeah. Exactly. So

Ian

Yeah. Be good. Like, Sam's always on the Twitter talking about, like, look at the we're serving 8,000,000,000 requests a second. That was wild, man. And it's like, yeah. It's like, awesome. Show me that stuff that you do that stuff. Let's go. Bryce it. Like, you do that stuff.

Aaron

We'll have to put that tweet in the show notes because that was that was wild. It was, I forget what the request for second were, but it was 256 shards.

Ian

Right.

Aaron

So I think that was 256 writing shards and 1024 reading Replicas, which is just like

Ian

good board. Big cluster.

Aaron

That's a big cluster.

Ian

A lot going on there.

Aaron

Yeah. So I don't

Ian

wanna have a cluster that big ever.

Aaron

No. All this thing. Hell no.

Ian

A lot of a lot of stress behind that cluster.

Aaron

No. If I ever have a company like that, I'm gonna sell for A $1,000,000,000 and

Ian

Way before right

Aaron

off into the ski in ski out sunset before I do that.

Ian

When we hit a 128 shards, we're like, no. We're looking for somebody to buy this thing.

Aaron

Exactly. Yeah. So I don't know if he's a regular listener, but hi, Sam. Thanks for listening.

Ian

Yeah. Alright. Plantscale Studios. Let's stay in Plantscale land. How's it going?

Aaron

I mean,

Ian

the build out.

Aaron

The build out is going. I think There's a chance I have a tendency to overdo things. It's an it's unconfirmed so far, but there that that is possible. I'm finding that Maybe that's a thing. Perhaps my reach exceeds my grasp, but regardless

Ian

Oh, you're feeling behind 8 ball here a little bit or something.

Aaron

A little bit. Yeah. For sure. Okay. There's a lot there's just a lot to to do to, like, you know, set up a pretty beautiful backdrop in an apartment. Right. And it's good. I think it's gonna turn out really, really good. I'm very happy with where it's at so far. So Status right now is I've built all the IKEA cabinets that are gonna form my backdrop. I'm changing from

Ian

Were these new? Did you acquire these? Are

Aaron

new. Okay. These were new. I'm changing from so my backdrop here is somewhat like you know, I have the window open today, but usually, it's a lot it's kinda dark mode. Right? It's dark. It's neon. It's gamery. The new one is gonna be is gonna be light and airy. And so I'm changing the style a little bit.

Okay. And so I've got all these white IKEA cabinets that I've built. And then the trick is, it's an apartment, and so I'm not really allowed to, like, put a bunch of nails and screws in the wall. I'm especially not allowed to, like, you know, modify it in any way.

Ian

I know. I thought nails are fine. I feel like if you get into, like, Hoggle bolts, that might be a little too far. But I

Aaron

asked I asked the the leasing agent who's super nice. I was like, hey. This lease says no nails and and he's like,

Ian

I don't I

Aaron

don't care. You do whatever you want. And I was like, I

Ian

can I'm mostly gonna pictures and stuff.

Aaron

I know. And mount TVs. I'm like, okay. I'm I'm mostly gonna do what I want. So Yeah. What I'm doing is, and this is the thing where I'm like, oh, maybe I went too far. I built a fake wall. I built a I built a Okay. I built a stud wall. Yeah. A 2 by 4 stud wall.

Ian

Okay.

Aaron

And Alright. So what I'm gonna do is The room didn't

Ian

seem that big.

Aaron

It's 12 by 12.

Ian

Okay. So what where the how you can't just go past the stud wall. You gotta have to give a little more back

Aaron

up a little okay.

Ian

You got back up. Like, where is this wall? What's its purpose? Like, how big? What do we do?

Aaron

The the the vision is That IKEA cabinet's on the bottom and then, pegboard, like, the IKEA Skadis pegboard and then a shelf and then pegboard up, and then I can put art all over it, and Gonna be really, like I'm going for, like, clean modern workshop vibes. So not, like, garage workshop, but, like, clean. So

Ian

So this this wall is in front of an existing blank wall,

Aaron

or is it This wall is in front of this wall is in front of a wall that has a window on it. Okay.

Ian

So you're blocking the window.

Aaron

I'm blocking out the window. Okay.

Ian

That's what I'm doing.

Aaron

Got you. Yeah. So I like it. Yeah. So the wall, you know, the wall sits, You know, 2 inches next to another wall. So I'm not I'm not, like, dividing the space at all. But the way that the room is set up, the best, like, the best Shooting angle was directly at the window, and I thought, oh, 2 birds, 1 stone. I'll block out the window, and I'll be able to, like, hang and just totally abuse this wall. So, yeah, it's it's almost done.

Ian

I have more questions. So did you attach the, the edges of the wall to the existing wall. Is this just freestanding with feet? Did you dry wall it? I mean, we need some more detail Could

Aaron

you could we start

Ian

the conversation with you're worried about putting a nail

Aaron

in the wall,

Ian

and now you've built

Aaron

a fake wall?

Ian

A wall. A wall. That presumably is, like, nailed all around with thousands of huge construction nails. So I just wanna get a feel for this.

Aaron

That's fantastic. Alright, Ian. Here's the deal.

Ian

I want Blueprint.

Aaron

There are no there are no fasteners between fake wall and real wall. Okay. No fasteners at all. So here's here's how it's going to, not be a total disaster. One is, I've built the wall kind of in sections.

So it's, like, 4 sections, so I can easily, you know, put them up, take them down, when it does come time to move out, Which hopefully is not this week when they find out I'm building a wall. So the sections in the middle, So between 2 sections, 2 sections on either side, in the middle, there's, like, you know, a joint. And in there, there's a there are 3 threaded rods

Ian

Mhmm.

Aaron

Basically, that I'm gonna do, like, a turnbuckle. So I'm gonna turn the screws and the and the panels are gonna push sideways into the wall. So it's gonna be friction fit against, you know, pressure fit against the sidewall. Right? Okay.

Ian

Oh, god.

Aaron

Alright. No problems no problems there. So that gives it a little bit that gives it a little bit of, like, alright. I'm, you know, I'm set in place. Mhmm.

The real strength is going to come from, the IKEA cabinets. And so the wall is going to be mounted, the wall is going to be mounted to the IKEA cabinets at the top and the IKEA cabinets at the bottom. So, like, the top and bottom of a single cabinet. And so that's, like, 3 feet span difference. It'll be mounted at both places, and so that gives you a lot of, like, Cantilever strength.

And so between the the friction fit side to side and then, like, the double mount at the bottom, it won't be able to tip over.

Ian

Right. Okay. That makes sense. I like this plan.

Aaron

Pretty good. Right?

Ian

Yeah. Pretty good. Drywall or no drywall?

Aaron

No drywall. It's gonna be all pegboard, all the

Ian

way up. Right on the 2 by 4. Yeah. Exactly. I like that.

Aaron

And then that way, I can, you know, I can take it off if I wanna fish a wire and run it up. And

Ian

I like this plan.

Aaron

It's crazy. Right?

Ian

It's crazy. I like it. We're going out there.

Aaron

Yeah. It's so crazy. It might just work.

Ian

So I've

Aaron

been I've been taking, you know, lots of pictures, lots of Sure. There's lots of videos, and I'll put together, I'll put together a full video at the end. But, yeah, it's a good idea. And then I got into it, and I was like, Oh, man. Can I can I pull this off?

I actually tried to I tried to cut all of the wood in the apartment, And yeah. And I was, like, I got not great. 1, it was super inaccurate because I didn't have, like, saw. I was all I was doing it with a circular saw, all freehand. And so I'm getting you know, I'm trying to cut 20 boards that are all 21 inches long for the studs, and I'm getting, like, 21a half, 22.4, and I'm like, oh, shoot.

I'm really blowing this. Also, I was pretty sure I was gonna set off the The, the sprinkler the fire sprinkler at some point. And I thought, that would be a hell of a way to go. Like, if I if I If I if I sprinkled all of my equipment with this dirty yeah. And then I get kicked out and then it's, like, I'm just gonna go to a friend's house.

So I took I loaded all the wood back up into the 4 Runner, drove over to my old neighbor's house who has, like, a full workshop. He's, like, this 50 year old guy that's, like, this the best woodworker you've ever seen. And I told him what I was doing, and he just laughed his head off. And I, like, I I brought all the wood into the his wood shop, and by the time I was bringing the last load in, he was already cutting it for me. He cut he cut everything.

He's Just like, this is this is easy. Thanks for coming over. I need a project. And Yeah. So yeah. It's going. It's going great. Next week that though. Next week, we'll be taking this call from Planet Gill Studios.

Ian

Oh, wow. You think so? Wow.

Aaron

Plant I'm planting a flag. We don't have we don't have time. Can't mess around.

Ian

Alright. I like Good. Yeah. No. I think and don't do you love IKEA? I love IKEA. I'm a huge fan. Kia man.

Aaron

Love IKEA. It's great. I went I went And and wandered. Who has the luxury to wander like that? I so I, like, went to pick up my big order, and I thought, you know, while I'm here, Let's do a lap. Why don't we do a lap? Gotta do a lap.

Ian

If you go to IKEA, you do a lap.

Aaron

You do a lap. And so I did a lap, and it was, like, oh, yeah. You know, Bedroom, office, kids bedroom, TV room, and then you get down into the marketplace. And it's like, oh, this is the this is where you've got all the stuff that

Ian

you're like, oh, no. No.

Aaron

No. Look around Let me see. I know. A little bit of land. You like land. Yeah. Yeah. Exactly. I bought it I I may have already told you this, but it has The apartment has the most divorced dad energy that I've ever seen in my life

Ian

because That's like IKEA.

Aaron

I went I wandered through IKEA, and I picked up some, you know, some bowls and cups and stuff and Just got 2 of each, and they're all just sad sitting on the counter there. But, yeah, I got I got my hand towels. I got my dish towels. I got everything from IKEA. It's perfect.

Ian

Are you familiar with the Jonathan Coltrane Coltrane song about Ikea? No. Oh man. I got, well, I'll post it up here, but, for you later, but It's fantastic. And he has a line in there that's like Ikea. It's for college kids and divorce men. It's like, that's literally the that's a good line. Oh, it's such a good song. It's a hysterical song.

Aaron

Yeah.

Ian

Alright. Anyway but that's great. I'm excited to see this. I'm yes. I'm glad you're making a, A a video of

Aaron

Yes.

Ian

The whole thing. So I'll be looking forward to that on your channel, presumably.

Aaron

Yes. I hope so.

Ian

Cool. Alright. Are you doing any neon or no neon? You're out of neon game. I don't know. Okay.

Aaron

I don't know. I might I might be out of the I might be out of the neon game. I might put I might put these lights behind the pegboard so it just is is more a little bit subtler shine through. That would be interesting. Yeah. And so we'll we'll see. I don't think I'm fully out, but I wanna tone it down just a little bit, I think.

Ian

Yep. Go more suffice suspicious what kids say.

Aaron

Yeah. I don't know that kids say that, but, yes, definitely more

Ian

You gotta get the 10 year old. My daughter, she's all about the suffice.

Aaron

Yeah. I don't I don't love that. Soup suffice? Supesophists. Oh, no.

Ian

This is how it goes

Aaron

in by the time my kids are 10.

Ian

This is how it goes in the Roblox streets, man. I was in Roblox with my daughter last night. Crazy on this Roblox streets. Yeah. That's alright. These games are so weird nowadays. It's like this, adopt me games, like the big hotness. And it's like

Aaron

Adopt me?

Ian

Adopt me when you get these pets and you trade these pets. It's not really for money, but people are trading and like, I don't know. It's very hard to explain. It's it's like a it's nothing like games we grew up with. It's not a game about anything. It's a game about nothing. It's sort of like the science games. Like, you just wander around and you try to get pets and trade pets

Aaron

Sounds like the Sims, honestly.

Ian

I guess it's kind of like that. I wasn't really a big Sims guy, but it's sort of like that. But you don't

Aaron

really That was Build a good world

Ian

like Sims.

Aaron

I like Sim City guy. Yeah. That's a great game.

Ian

Yeah. Great game. It's nothing like Sim City. It's nowhere near as It's not like it all except yeah.

Aaron

Show about nothing, great. Podcast about nothing, great. Game about nothing? Nah. Nah.

Ian

Okay. Alright. Laracon US, baby. Laracon US.

Laracon US, Baby!

Aaron

We're back.

Ian

In your in your home

Aaron

window. Dallas.

Ian

It's good luckier than you.

Aaron

Nobody. Honestly, nobody is luckier than me. Although, if it if it had been somewhere else, maybe I would get to stay in a hotel and, Like Get a night or two

Ian

way.

Aaron

Yeah. But still It's true. Nobody. It's gonna be awesome. I'm so freaking pumped. It's at, it's at a cool very cool spot. The last time I was there, I was there seeing Kacey Musgraves. So This will be this will be just the same, probably same energy, same vibe. I don't

Ian

I don't know who Casey Musgraves is. I assume it's some kind of singer of some sort?

Aaron

Some kind of singer. Some kind of country singer.

Ian

Nice.

Aaron

So, yeah, August, it's gonna be hot. It's gonna be hot. Yes. People are not prepared.

Ian

Just wondering about that. Yes.

Aaron

August 27th, we're talking Probably talking a 100 degrees or more. It's gonna be hot. But I just whole

Ian

this whole other angle for me is, like, I got the oldest going to college, and A lot of the colleges, they start in late August, so it's gonna be very interesting. I'm I'm hoping we get lucky, and whatever college he chooses is not starting on the 27th or 28th that we're gonna do. Yeah.

Aaron

You telling me you might miss it.

Ian

I mean, there's like an outside chance, so I miss it. I mean, I don't think I'd ever miss both days, because like, whatever, we'll drop him off one day and I'll, I guess, I guess if we were dropping him off the second day of the conference,

Aaron

You might miss it.

Ian

It would I might miss it, or I could, like, go and, like, fly back late possibly. I have to see about how How the boss

Aaron

This is huge. You can

Ian

get it. That, but,

Aaron

We we we might have to do a we might have to do a Rudy situation where we all say we're not going unless Unless Ian's going, Taylor Taylor, you gotta change the dates.

Ian

Yeah. I know. Taylor, what are you doing to me? But you didn't check with me.

Aaron

You didn't check with Ian before you Scheduled your conference?

Ian

On here?

Aaron

Ian might miss it. We don't even know, but you should have checked.

Ian

I think it should be alright. Look. Look. Look. Look. At that most almost none of them actually Started at that date of the ones he's applied to. I think I didn't literally check all of them, but the ones I checked somewhere earlier, Somewhere later. So I think we'll be okay. But Okay. There's an outside chance that if it's, like, falls on the 28th, that would be a very good bummer.

Aaron

That would be bad news.

Ian

Hopefully, that's not true, and I'm there. We're gonna party. We're gonna have

Aaron

fun. Awesome.

Ian

Everybody's gonna be there.

Aaron

You You can come see the studio. You can come see the house.

Ian

You can hang. Do tours.

Aaron

I know. Do

Ian

the tours. Kramer style tours.

Aaron

You got the boss. Have a a Plan is real air party at the apartment.

Ian

Yes. I thought Yeah.

Aaron

Apartment. That's what I'm saying.

Ian

See, you said we're not prepared. We're totally prepared. We're we're building we have access to a pool. We are ready to go.

Aaron

It's gonna be amazing. Yeah. It's gonna be it's gonna be really fun to have everyone Everyone in town, and officially, breaking news, I'm emceeing again.

Ian

Oh. Yeah.

Aaron

So it'll be fun. It's gonna be it's gonna be a good it's gonna be a good conference.

Ian

I MC'd the first two, I guess. And, Yeah. It's it's fun MCing. I love MCing because you kinda, like, are so in the mix and, like, you Yeah. All the speakers and, like, you're, you know, just in In the mix without having to do all the planning. It's like

Aaron

Yeah. Exactly.

Ian

Kinda nice.

Aaron

You get to be the hype man. I'm I'm great at being a hype man. Yeah. That's one of that's one of my top three skills is being a hype man.

Ian

Are you gonna try to also do a talk, you think? Or

Aaron

That, I don't know. We will see. I don't know if this is the year to prepare a new talk

Ian

Right.

Aaron

For me, but I could we'll see we'll see. There there's a chance that, like, Taylor gets all the talks, and he's like, man, we're really missing This kind of thing. Does anyone wanna do a talk on that kind of thing? And if something like that lines up with Something I feel prepared for, then I would do it. I did like, you know, doing being the MC and doing a talk last time, but that was a talk I had already Done. And so I felt really, like, I felt very low pressure to prepare that talk.

Ian

Yeah. So I

Aaron

don't know. We'll see. I'm certainly open to it. And if something good strikes me, I would do it. But right now, I I probably wouldn't do I probably wouldn't do a hardcore technical talk. If there's another soft talk that I feel like this would this would resonate, I would put that in and see what he says, but I

Ian

don't know. Okay. Alright. We'll see what happens. Yeah. I think it's gonna be great. New city. I've never been to Dallas at all, so looking forward to that.

Aaron

You're gonna love it. It's exceedingly accurate.

Ian

That kinda love. Is there anything else going on? Probably not. It's, like, hot summer.

Aaron

Oh, no. I just told a great joke, and he froze. Man, That was a good joke. What was the last thing you heard?

Ian

No. I heard I heard the end of yours, so you're you're good.

Aaron

Where I said you're gonna love Dallas? Yes. Did you laugh?

Ian

I don't know.

Aaron

Oh, man. Let's It's a great joke. I said you're gonna love Dallas. It's exceedingly average. I was Expecting

Ian

Oh, wait a minute. I did oh, no. I didn't hear that part. Oh, see. You didn't even hear the joke.

Aaron

There's the laugh. Yes. I knew it. I knew it

Ian

was a

Aaron

good joke.

Ian

There we go. There's the laugh. Just leave that all in. It's fine. We we

Aaron

have to wait. We're about You'll you'll you'll go through the whole gamut of emotions that I went through because Told the joke, and then you were frozen. And I was, like, oh, he didn't like it. And I realized, oh, no. He's frozen. And he came back, and I asked if you laughed. And you're, like, It's like, oh, man. But then I told the joke, and you did laugh. It was great.

Ian

In the show now where the whole thing is the show.

Aaron

This is

Ian

what it takes to make a podcast. It's the album scenes.

Aaron

It's very important to me that my jokes land, and so I'm I'm just really glad that we have that journey together.

Ian

Yes. So that was my impression of Dallas, but we'll see. I'm So it's Yeah. Dallas food and, and We do have good food as poker in. There's poker in Dallas.

Aaron

We do have good food. Deep Ellum is very cool. Deep Ellum is a little bit grungy. It's Then, it's been arts artified over the last several years, so it's a little less grungy, but it still has some it still has a lot of character. Right. So it'll be fun. It'll be very good.

Ian

Cool. Yeah. I'm looking forward to that. And Texas poker, which I've never got to play, which I'm very excited about. So that was in my loop as well. Cool. Alright. So should we do should we stick soft? Mostly not technical?

The Bear

Aaron

Yeah. Let's talk a little content here for a second.

Ian

Alright. Let's do it.

Aaron

Okay. So here's here's my question. Mhmm. This segment is about the bear, just Right. You know, in case anybody's like, I don't wanna listen to the bear. Here's here's my question. I keep seeing people talk about the bear, and they're like, oh, man. It's just it's just like it's really good, but it's kinda terrible. But, like, Season 2 episode 8 makes it all worth it.

Ian

I'm like, season

Aaron

2 episode 8. You mean I gotta watch, like, 18 Episodes before it's like, oh, that was a really good show. Right. Is it, like have you gotten to that point where people are saying it's life changing? Have you gotten to that episode in season 2?

Ian

So I finished I finished Okay. So I'm Did

Aaron

you find did you find that there's some big and don't tell me what it is. Some big, like, payoff of, oh, this is totally, Totally worth it.

Ian

Alright. So, so first of all, the first season's only, like, 8 episodes. So it does if you save the So

Aaron

you wait only Teen episodes you gotta sit through. That's not better.

Ian

Here's what I would say. I would say the first 5 or 6 episodes of season 1 are pretty hard to get through. If you're looking for something a little like, Hey, it's after work and I want something maybe a little light and relax and like Not light. It's not relaxing. I don't know why it wins all these awards for being in comedy. It's not a comedy.

Aaron

Yeah.

Ian

There's like occasional, like slight Funny things that are like they don't even like, you don't even say There's no There's no outward rapping.

Aaron

Yeah.

Ian

Yeah. It's not it's just an internal, Like an internal

Aaron

Oh, wow.

Ian

Okay. Like, so

Aaron

Not a comedy.

Ian

There's a couple little things like that. The second season's maybe a little funnier, I would say, but, but still, it's not a comedy. And the first yeah. The it's a little heavy at times and just a little like things being shitty, watching people having shitty things happen to them. And you're like, You know, it's like, ah, but then we did persevere.

And I would say the back couple episodes kind of pay off of season 1 and then season 2 does right away. Well, there's some heavy stuff too, for sure, but it is, I'd say season 2 is significantly better than season 1. And there is pay off. I think, I think the things that pay off in season 2 do pay pay off much better because you went through season 1. So there is like you did your time in season 1.

Aaron

You really

Ian

know these people through

Aaron

the show.

Ian

You suffered through some things. But then there is the there are a few episodes in season 2 that are truly spectacular. So Yeah. People One of them

Aaron

is not not spectacular. People are saying best episode of television ever. Yeah. That's what I'm seeing.

Ian

I don't know if I could go that far, but it's I I guess I would say it this way. I would say it this way that, generally, I haven't found to TV in the recent years, even though it's like the The golden age of TV, like, to me, especially post, like, breaking bad. I think breaking bad had some really great episodes. Post that, I haven't really had anything that I've been like, oh, yeah. That episode was like, I'm stunned after that episode.

Right. And season 2 of the bear does have, I would say, 2 episodes that are like Really? You're pretty stunned at the end of end of them. 1, it's that are, like

Aaron

Really?

Ian

You're pretty stunned at the end of end of them. One of them

Aaron

is, like,

Ian

super intense, and then the other one is just like a character kind of evolves in a very interesting way.

Aaron

Okay. So so, like, stunned, shocked, or stunned, like, moves powerfully?

Ian

Powerful, I would say. Yeah. Not it's not shocking, like, I can't believe what happened. Like, and then he blew up or whatever. Like, not not a twist. Not a

Aaron

twist, I think.

Ian

But yeah. But just,

Aaron

Sir, the chef, he blew up.

Ian

Exactly. And then the whole building blows up, but that was the end of the show. So, yeah, not like that, but, like, the the one episode well, the I've seen different people different people talk about the different episodes. There's 2 or 3 episodes that people Describe this this way you're describing, but one of them has 2 guest appearances. 2 people guest star in it, and the performances are Unbelievable of those guest stars.

Like, I don't wanna ruin it by saying who it is or whatever because we see them show up. It's like people everybody knows, and you're like, oh, they're in this. And then they, like, just Totally destroy it. And you're like, wow. Just like the level of acting is really phenomenal.

So yeah. So Season 2, I'm just like these other people. Like, season 2 kinda makes season 1 worth it. I would not jump right to season 2 because I think you would be miss like, You'll miss a whole lot of stuff. So you kinda have to grind season 1, especially the beginning. At least that's how I felt. Like, we took took us, like, 2 months Or maybe even more. Like, we'd watch an episode, and we'd be like, we'd,

Aaron

like suffering. Goodness graciousness. About it,

Ian

and then, like, be like, god. Do we wanna go back into that? You gotta gear yourself up. Yeah. And they're so I'd never experienced a show like this where, like, they're only half hour episodes for the most part. Some of the couple of them. Yeah. Most of them are half hour, but they feel like an hour and a half. You're like, at the end of it, you're like, boy, that was like we cannot watch another one right now, like, because, like, It felt long.

Aaron

Yeah. And by the way, nothing you're describing, 1, makes me wanna watch it. 2, is a comedy. It's not a comedy. The only the Only point in favor of it being a comedy is it's a half hour. Right. That's the The format. The format only.

Ian

Very interesting thing. So Bill you know who Bill Simmons is? It's like

Aaron

he has podcast. I don't know who he is.

Ian

Yeah. Yeah. He's a sports guy, and podcaster. So He just had this rant kind of about this exactly that all these award shows mess it all up because it shouldn't it's obviously not comedy. And the only thing about that's a comedy is that it's half an hour.

And so he thinks they should just re blow up all these, you know, categories and make it just like by the length of time. So like half hour shows, hour shows, mini series, or something like that. And let them all fight it out because now there are more of these, like, Obviously, back in the day, there was, like, Seinfeld, not the comedy, and there's, like, Law and Order, and that's drama. And, like, there's no funny stuff on Law and Order and whatever, vice versa. Whereas now you do have these things that are like, there's some funny things, but also, like, it's heavy and, like, it's hard to categorize in some ways maybe.

So just, like, do it by yeah. Is it is it half hour, an hour? Is it a TV movie? Whatever. Like, you have your different categories like that, but, Yeah. I don't know. It it is very good. The acting is spectacular. I think the whole way through the acting

Aaron

is spectacular. That doesn't move me very much. I'm a

Ian

big You're not.

Aaron

I'm a big Normandy fan. Yeah. So, like, I'm not gonna sit down and be like, oh, the acting was amazing. Okay.

Ian

Come on, man. Come on.

Aaron

I'm so I'm so my bar is So low. I'm I'm like, when I go to the movies, I want to be entertained, which is how we've ended up with me being a big Fast and Furious fan. Because, like, you're talking about chefs blowing up. Everything blows up. Everything blows up. Everything. And they're all they're all still alive, and they're going to freaking outer space. Right. And so when I walk out of Fast furious. I'm not like, man, Vin Diesel, national treasure.

I'm like, hell, yeah. He drove the car off the mountain, and then he caught a wire and slung around and landed on the other side.

Ian

The great Great acting there.

Aaron

Yeah.

Ian

Are you a are you a I'm not I haven't watched many of the fast and furious. It's one of the few movie series I haven't gotten

Aaron

super into.

Ian

I'm sort of saving it. I know. I I do wanna Saving it for what?

Aaron

I know. Like, 12 of them.

Ian

The right moment. But I know everybody says 5 is the best. Do you have 5 is the best, man, or no?

Aaron

5 is great. I actually have a list on my website of Oh. Which ones are the best? Let's see what I have at the top. Fast 5 is at the top. There we go. 5 is the best. So my order is, and And I'll read them by their proper given names. Yeah. This is Fast and Furious Movies rated by awesome.

Fast 5, Furious 7, Fast and Furious 6, Fast and Furious presents, Hobbs and Shaw, 2019, The Fate of the Furious, The Fast and the Furious, 2 Fast, 2 Furious, Fast and Furious, The Fast and the Furious, Tokyo Drift. So That's my order. There's 1 I think there's 1 or 2 missing. It hasn't been updated for the most recent, x best x or whatever.

Ian

Right. Alright.

Aaron

It's a great franchise. But you've seen? Yeah. Of course. Yeah. I saw it in theaters. Yeah.

Ian

Are you a Marvel man?

Aaron

I don't know. It's a bit much, isn't it?

Ian

Yeah. It's gotten a bit much. Marvel is kind of my fast and furious. It's like I watch most of the Marvel movies and I'm like, okay. Like, whatever. It's like, obviously, it's not great acting and for the most part and, like, whatever. But I've not been in this latest whatever they call not see whatever they call the eras or whatever they call it. Era.

Aaron

Yeah. Whatever they call it. Base. Phase 4.

Ian

Something like that. I don't know. This phase, there's a lot I haven't

Aaron

watched this phase. It's too much,

Ian

candidly. It's went off the rails with the metaverse stuff.

Aaron

It's like

Ian

if not nothing matters if Every the whole universe is just reset every time and, like, whatever. Who cares? And why am I watching this?

Aaron

Like, there's nothing It's a lame plot device. Yeah. Yeah. The only the only Marvel Stuff I care about is, Iron Man. Love Iron Man.

Ian

I do like Iron Man.

Aaron

Love love Tony Stark. Love the the tech. Love the, I also like, when it's, like, all the all the buddies are together. So, like, Avengers. I like that. It's like, hey. Let's all come together and have a have a bunch of jokes.

Ian

I like the Guardians of the Galaxy. To me, the Guardians of the Galaxy is the best one.

Aaron

No. No. No. No. No.

Ian

Because it's got more funny stuff. The No. It's too

Aaron

it tries to be too funny, and it's just It's just

Ian

No. No. Like the Guardians. Yeah.

Aaron

No. Not a Guardians fan.

Ian

I don't like the 3rd Guardians was a little much for me, but the first two were very good.

Aaron

Also, when Thor was like, I don't wanna be Thor anymore, whatever his name is, the Hemsworth guy. And he was like, I don't wanna be Thor anymore. He's too serious. And so they made the 4th Or the 3rd or 4th Thor.

Ian

Right. Yeah.

Aaron

Really Ragnarok, I guess, was really funny. I was like, this is terrible.

Ian

Right. Yeah. I'm not Thor.

Aaron

Hate it.

Ian

Iron Man, like so

Aaron

So bad.

Ian

Guardian Galaxy, I like yeah. The Avengers, generally, I like

Aaron

Avengers. Right?

Ian

I like Loki. The Loki show

Aaron

was actually good. Single Loki.

Ian

I didn't watch the second one yet. No. The one with the, the other show was actually really good too. I had 2 bad ups the first, bad. The first two episodes were weird, and I didn't really get it, but then it turned out to be a good show. I can't remember. It's with the girl who's, like, the witch. Wanda? WandaVision. Wanda. Yeah. WandaVision.

Aaron

WandaVision was a good show. That was a good stand alone. I liked that.

Ian

Yeah.

Aaron

That was very artsy, well done, interesting Yeah. Funny, Moving. It was very heavy at the beginning

Ian

of the cast. No. See? Yeah. It's it's a marble version of the bear.

Aaron

Yeah. I'm a connoisseur

Ian

for sure. I'm a

Aaron

man I'm a man of culture.

Ian

Alright. Listen. You gotta watch the first couple bears and get back to us next week. I think that's gonna work.

Aaron

How much time do you think I have next week? Watch the first go what? I don't have half an hour.

Ian

You bet you have a lot of hair.

Aaron

I don't have half an hour to go knowingly into a show where I'm going to be suffering. I don't I I don't have

Ian

any half hours to that way. No. I don't take it that way. Who the hell

Aaron

is any half hours to suffer. I listen. I've I've got my share of hardships. Thank you very much.

Ian

While you and the wife are up 4 in the morning, feeding these babies. You throw on the bear. It takes half an hour to feed the babies.

Aaron

You know who wants to watch the bear less than me? My wife. That's for danger.

Ian

Oh, man. Okay. Alright. I'm sorry. She's looking for a change of pace.

Aaron

I trust me. Of things I never know, this is not one of them. This is a this is a thing I definitely know.

Ian

Alright. Alright. Alright. Let's talk category.

Route Model Bindings

Aaron

Yeah. Let's talk caching route model bindings. So I don't know if we have time to go all the way into the last one.

Ian

Alright. Yeah. I don't know. This is just a little thing that I'm doing in the next gen help spot stuff. This is kinda weird because like, you have your, It's such a weird transition. The route model bindings, which I'm gonna assume are familiar with this. You can

Aaron

do it, Ian. We're professionals.

Ian

And, So, normally, that's a very fast query. Right? Because it's, like, whatever. It's almost always looking up by ID or a slug of, like, a thing, and it's returning you the model, And then you do something So

Aaron

let me let me give context for those who don't know. Route model binding is when you go to users slash 1. Laravel will Pull that model out of the route for you, as a convenience and deliver you the user model. So that's route model binding. Okay. Carry on.

Ian

Yes. And so, so it's obviously doing a query there, and I've been on this little bit of a, like, I'm optimizing the way queries wherever I can just to reduce costs and make everything super fast. So I have a, so I wouldn't, this kind of came up on Twitter, the idea of like, so I put this out there about Caching these and returning them from cash. And so there's this ability in Laravel to override the resolution of the route model binding. And there's a couple of different ways to do it, But anyway, you can override it and you can do whatever you want.

And so I, instead of creating database, I'm going to query the cache system and return it out of the cache instead of going to the database at all.

Aaron

Cool.

Ian

And I don't know. This is definitely not something you should do Version 1 of your unknown product. Right. But and I don't even know if I do it for a regular in just, like, in general, but I have sort of some situations that are a little bit special where, like, I have these things called cues and there's gonna always be between 1 And, like, at the most, maybe, like, 10 or 12 of these cues. And the cues are also used other places.

So there's places where I, like, I have to make a sidebar of the queues and whatever. And so, basically, I'm already caching the queues. Like, I already have a cache item with all 1 to 10 cues in it that I'm using all over the place. And so I was like, why, when I'm on a queue, to show what's in the queue. Why bother querying the database there?

I literally already have this queue in the cache, So I will just override the route model binding and pull that queue out of the cache k. Instead of, creating a database And it works great. It's like super perfect. And the only trick I had to do is I am not a, a man who likes to for multiple reasons, but I don't like to put the, serialization of the models into the cache. So what's in the cash is just keys from the models of the keys we're going to use.

And So what I actually do is I pull that out of the database and then it wants you to return a model. You have to return a model. And so I use a factory. Like you would in a test, but I just populated it. I passed the factory, the array of keys from the cache And on the fly, make a model, and pass that, back to resolve. And it all works Amazingly, magically, like, Fireball often does.

Aaron

Okay. This is weirding me out. You had me you had me till the end. Sure. So few questions. One is, Why don't you why don't you just cache the model itself?

Ian

So there's a 2 couple reasons. One is it's a lot bigger, And I don't want it to be bigger because it, like, turns into this big string of stuff that it, like, serializes.

Aaron

K.

Ian

And then so so in that case, right, like, I have 10 of these in there, let's say. And so now it's, like, actually a pretty sizable string that lights going back and forth over the network. Not a huge deal, but a small optimization. Yep. And then there is so PHP, when it unserializes things, there are, like, security implications there, which people don't think about and know about too much.

But, Basically, like PHP will be very, it'll let you unserialize anything. And so people will, can make a bad malicious string that you can then unserialize when you don't intend to, and then it can literally just take over everything. So now I'm not saying the Laravel has this directly. When Laravel serializing its models, it should be fine. But it just feels like the kind of thing, like, if I don't have to serialize this model, like, a, I don't want it to be bigger.

B, there's, like, this security potential issue with it. And so why have it? I don't need to do it. I'm sure there's gonna be places where it probably does happen automatically on Laravel's part. We'll see how that goes. But, in places where I can control it, Why why why have it in there?

Aaron

So Interesting. Okay. So you're putting in a plain array at that point.

Ian

Right. Mhmm.

Aaron

Putting in a plain array, getting out a plain array, and making a fake Model. What do you use why do you go through why do you go why do you go through the factory instead of just, like, queue

Ian

I guess I could.

Aaron

New queue and make another persisted model?

Ian

Maybe I should do that. I don't know why I did the factory. I just threw it in the factory.

Aaron

Factory probably works, but I I was wondering if there's a benefit there. Second question. So then do you have I don't know. Did I actually blow your mind?

Ian

You it kinda blew my mind. I don't know how I would do factory first because I that's usually always in the test. Just like I just went there, but I should just I should just do a new, yeah, new model and don't persist it. That's what I should

Aaron

do. New model don't persist it. The problem, I think, probably with both the And the new model is the, I don't know what Laravel and you might not be using this. I don't know what Laravel uses to determine if it's persisted. I don't know if that's the ID being present or the was recently created whatever thing being true, but I bet you don't rely on that anywhere.

Second question, how are you, how are you updating and, Clearing the cache. Do you have model observers for saving and updating and stuff like that?

Ian

No. We're do going a little weird on the Caching going a little different. So I have a lot of things that there will be some things like that eventually, I think. But right now at the like highest level outer shell, a of things that are often used on like every request or a lot of requests. I'm trying to really optimize that.

And so I have this group cash, which basically stores multiple different types of things about the tenant. And so it can be in there. And so basically, I could just have one HTTP call for this cache item, and there will be multiple things that come out of the cache. But, basically, like, you can end up with a situation where, like, you're putting stuff in the cache, but you actually have, like, 40 HTTP requests to actually get all those What's your

Aaron

what's your cache?

Ian

Out of the cache. It'll be Redis.

Aaron

Redis? Yeah. Hosted. Not on the same box. I I'm assuming.

Ian

Oh, yeah. Yeah. Yeah. Dedicated. Oh, I don't know. Yeah. If we'll do like Redis cloud or just the AWS fake Redis or whatever. One of those things.

Aaron

Okay. So you have you have a you have a tenant cache That holds the cues and presumably some other information.

Ian

So it's actually like a collab a lot of our collection of different keys, and then those keys are different things. So like

Aaron

the same cues or where, where, and when is it updated?

Ian

So it could be expired by, so the cash key, can be, is generated. So it has like the tenant ID of course, but then it has the tenant last updated. So like I can expire a whole tenant's cache by, like, updating the, last update time on the tenant. The tenant query is always live, so that's always Holds in the database on every request.

Aaron

Mhmm.

Ian

And then also for different there's some other ways to invalidate it, but, yeah, that's, like, kind of the main one to invalidate a whole tenant if I need to. Otherwise, it's just time that I think I have it as, like I mean, I have it as

Aaron

Like, I guess my question is, like, if somebody adds a new cue or changes the name of a cue Right. What happens?

Ian

I can just, I can just, yeah, I can just explicitly invalidate the whole thing and it'll be run.

Aaron

Okay.

Ian

So the next there'll be missing. So, yeah, so at a new queue, so the things in this tenant cash, which is like the highest level of cash are just like things that don't change too much, like Cues, which are not things you're adding all the time, new users, which are things you're not adding all the time, whatever. There's, like, these big constructs in the system that are not things that change that often. So they could just be cashed for a long time. If it changes.

Yeah. It is invalid. I just invalidate the key and delete it. And then the next request will rerun

Aaron

Refill it.

Ian

All these queries and fill it back up. And they're all pretty fast queries, so it's not anything super heavy, but it's just like, I like to reserve the database capacity for, like, the not super fast queries and things that have to be live, and, like, there's just no reason to, Like, get the list of users every request.

Aaron

Right. Yeah. Of, like, thousands of users.

Ian

Like

Aaron

I like the idea of caching, like, the the big Kinda god object, so you make that request one time. Yeah. I like that.

Ian

Yeah. I think we'll see how it goes. I've never done it exactly this way before, but, I've never built it Something like this from the ground up in this way before, so we'll see. But yeah. So I just think why I don't know. Just for, like, keep the database light so that when it has to query stuff, it's It's got all its energy and, capacity. And Davis is

Aaron

so Rested in credit.

Ian

Yeah. Expensive thing. Yeah. Yeah. It's like, if you could stay 1 tier lower on the database, size. Like, that's a huge amount of money always. So, that's kind of the the plan there. But

Aaron

I like it. Get did you get a bunch of people saying, when should I do this? Why is this necessary?

Ian

I didn't actually get too many. I got it. Oh, good. Tobias was like, it should just be built into Laravel, which I thought was Oh. And, there we go.

Aaron

That's a ringing endorsement.

Ian

Yeah. Which I guess you could. Like I mean, it's like yeah. It's like when you use it, it's like things that are so fast for littler projects that wouldn't be worth it. It's like us looking at this user by its ID is gonna be super priced.

Right? So But at the same time, it is a query that, like, doesn't need to be done necessarily if it's something that doesn't change that often and it's worth invalidating when you do change it. In general, I think people weigh underutilized caching. Like, I think people just rely on the database for a lot, which they shouldn't Yeah. It is more headache, and you have to invalidate and all that stuff.

So it's definitely a pain, but, I don't know. I've learned that lesson the hard way that, like, caching is super good and just makes your app so much more incredibly faster, remarkably faster if you cache well. So I like to to be pretty aggressive on the caching front.

Aaron

Well, I like this. I'm all I'm all for hooking into the the resolve Route model binding, I love that's one of the things I do love. There are many, but that's one of the things I do love about Laravel is All of those places, you can you can get access to. Yeah. You you can just hook right in and change it.

I did a video on changing that, So I could be a pretty display URL and an ID. It's like, yeah, it's totally doable. You just in your model, you just override the method. I just love that so much.

Ian

And that's one thing. That's what, where I feel like Laravel is now that I love so much is like everything now has multiple ways to do it. Like it used to be, you could override the About model binding, but I believe it was only, like, in the service provider or whatever, and there was, like, a method you could call on route or whatever.

Aaron

And I think it used to be also you could change the column, but But not, like, add any logic in there. So you could change it from, like, ID slot.

Ian

Could be. Yeah. Yeah. Yeah. So then it's evolved to where, like, you could still do all that old way stuff, but now you can also, like, just have something on the model itself with a method that you can override.

And, like, to me, for this particular way, I think I'm doing especially, it's like, yeah, then it's just in with the model. Like, that logic is there. It's not, like, often the service provider, like, in the separate place. It just makes sense to be here. And, yeah, it just works all magical and wonderful. So Love that. Love the laptop.

Aaron

Dive. Gotta go down there and look around.

Ian

Yeah. See what I was actually documented now, which was really cool. Like, I do think a lot of these Magical things are starting to get added into the docs too where, like, yeah, sometimes they weren't they weren't always in the docs, but, like, the docs have gotten flushed out with some of Cool.

Aaron

Oh, man. Little bitches. To the most recent Laravel podcast with Taylor and Matt?

Ian

No. I don't. I haven't I haven't had a chance yet.

Aaron

You gotta go listen to it because he talks about strict mode, and he talks about how it's his least favorite thing in Laravel.

Ian

Oh, man. We're going against the

Aaron

Which I told you. I think I told you. I told you last week. I said I think Taylor hates this because he undocumented it, and he actually said on the podcast, yeah. I undocumented it. And the it he it's nuanced. It's, you know, it's more nuanced than that. He minuted it. The he it's nuanced. It's, you know, it's more nuanced than that, but he goes into it about how, the prevent accessing missing attributes one Just, like, dorked up a whole bunch of packages.

Everyone was like, I'll just test to see if name is there. And if name is not there, I'll move on to, like, email or whatever. And it was like, It just messed everybody up. And so he No. He says he hates that. And I thought, yeah. Sorry about that.

Ian

That is your thing about, yeah. I know. We just turned a bunch of people onto it. That's alright. What's your feeling on package like, I'm such a I'm always torn on packages because there is just stuff like that. That's like when you you know, it's like, I love packages, but then, like I

Aaron

know. Well, like,

Ian

a lot of times, like, Package is just assume you're using MySQL. And if you're not using MySQL, like, they're just gonna blow up maybe in odd ways because, like, Laravel papers over some of it. So, like Yeah. It sort of works fine until, like, it stops working because of the weird. JSON search function you used in a spot that like, you know, isn't The right syntax for post press or single store or whatever. So

Aaron

I think I'm I'm a package reasonableist. I'm not a package maximalist. I'm really not. Like, if there's, like the

Ian

same tip.

Aaron

I think if there's, even sometimes if there's a package that does what I need to do, I feel more confident, Especially if it's a little thing. I feel more confident just, like, doing that myself.

Ian

Right. Because seeing how it was done and suck it out.

Aaron

Seeing how it was done and, like, not Tying myself to someone else's implementation style or upgrade schedule or Yeah. Then, you know, you go to move from Laravel 10 to 11. You're like, oh, shoot. I've got Sixty packages here. Right. You know, it's like, you know, breadcrumbs and all this stuff, and I'm like, can I have just kind of Built the 20% that I would use? Could I have built that into my app? So I don't know. I'm not I'm not a I'm not a Luddite, but I'm not a maximalist either.

Ian

Yeah. Yeah. Same. It's hard to know where to draw the line. It's like does save a lot of time, and they're it's often built better than the way you would build it because they've just put in more time. It's been debugged and all that stuff. But then, yeah, you do are then tied to the upgrade cycle and just yeah. If it's not well maintained, then Yeah. End up with those bugs in your app. So yeah. Yeah. Cool.

Aaron

Alright. Well wrap it?

Ian

Wrap it. Let's wrap it up. We'll save the, the other one for next time maybe.

Aaron

Yep.

Ian

Alright. Thanks everybody for listening. This is a a not very technical one. So for the people who yell at us, that last one was too technical. Now you got a mostly, mostly not technical one. No. I follow us at, mostlytechnical.com, of course. Mostly tech pod on Twitter. Mostly technical podcast atgmail.com. I I checked today. There was none today, but hit us up there if you have any feedback. And, yeah. See you next week, sir.

Aaron

Alright. See you. Alright. Bye.

Transcript source: Provided by creator in RSS feed: download file
For the best experience, listen in Metacast app for iOS or Android