Feb 27, 2025Guest

The Fusion of Laravel and Vue

Show notes

In this episode, Michael and Alex are joined by Aaron Francis, software developer, content creator, and co-founder of Try Hard Studios. Besides covering Aaron's journey into programming, they dive into Fusion, a new library that Aaron has been working on which will fuse your Laravel backend together with your Vue frontend, allowing you to write PHP and Vue in the same file. The three developers dive deep into the technical details of Fusion, how it works under the hood, and also how the community reactions have been so far.

Transcript

Everything we said

00:00

Alexander Lichter

Welcome to DejaVue.

00:02

Michael Thiessen

It's your favorite Vue podcast. You just don't know it yet. And today I'm joined, as always, by Alex, and we also have a special guest, like, like usual. Aaron Francis is here with us today.

00:15

Alexander Lichter

How you doing, Aaron?

00:17

Aaron Francis

Hey, I'm doing great. This is, uh, this is very exciting. I think this may be one of my first ever, uh, front-end focused podcasts, so I'm, I'm excited-

00:25

Alexander Lichter

Ooh

00:25

Aaron Francis

... and a little bit nervous. I think it's gonna be fun.

00:27

Michael Thiessen

Oh.

00:28

Alexander Lichter

Oh, I'm more than sure. I mean, all our guests said it was fun so far. Um, of course, on the record.

00:34

Aaron Francis

Mm-hmm. Yep.

00:35

Alexander Lichter

And off the record too.

00:37

Aaron Francis

Mm-hmm.

00:37

Michael Thiessen

Um, we'll promise, uh, to be nice to you.

00:39

Alexander Lichter

100%.

00:40

Aaron Francis

Yeah, I appreciate that.

00:42

Alexander Lichter

I mean, now that we're no strangers on the internet anymore, we see each other, we-

00:46

Aaron Francis

Mm-hmm.

00:47

Alexander Lichter

No, no negative comments, only constructive criticism, feedback, and yeah. We'll wanna talk a- about a lot of things. Um, I think a lot of, uh, people listening or are watching the podcast, uh, on YouTube might know you already, but for everybody who might not be aware, maybe can you give a little introduction around yourself, what you're doing, and what, uh, what people might, uh, know you from?

01:06

Aaron Francis

Yeah, totally. Um, so I am, uh, I guess by trade, a Laravel developer, have been for, for quite some time, and I have recently, me and a friend, uh, Steve, have recently started our own company, and what we do is we offer, uh, educational material. And so we've started with a course on SQLite and a course on Postgres.

01:28

Um, I used to work at a MySQL database company, and then I came out of there and was like, "Oh, there are other databases. I can finally talk about them." And so we explored some of those other databases. Um, but historically, I've been primarily a, a backend developer for, you know, a few decades now. I, I was one of those that started when I was quite young, and so that has kind of been where I've been the whole time, and PHP has been my preferred language of choice, and then Laravel came along and cemented that forever.

01:56

I love Laravel very much. Um, and so yeah. I do some... I do a little bit of writing on my blog, YouTube videos, a whole lot of tweeting. Too much tweeting. Um, and so if, if anyone has seen me from anywhere, it's probably one of those places.

02:10

Alexander Lichter

Yeah. Perfect. Lovely. And so you mentioned you got into PHP backend programming and also, like, dabbled a bit into front-end here and there.

02:18

Aaron Francis

Mm-hmm.

02:18

Alexander Lichter

But maybe to start with, how did you get in programming after all? Because, uh, from what I recall, you, you didn't, like, say, "Hey, I wanna do a computer science degree," and get all into it.

02:26

Aaron Francis

Mm-hmm.

02:27

Alexander Lichter

Uh, so there's a bit of a story there.

02:29

Aaron Francis

Yeah. So, um, I started programming when I was probably, you know, 11, 12, 13, something like that, and my dad, um, up until he, you know, retired a few years ago, was a database administrator, and so he was a SQL Server DBA, uh, my entire life. And so I started out PHP, you know, MAMP stack, LAMP stack, whatever.

02:50

I started out with that, PHP and MySQL, and I always had a DBA nearby to help me understand, you know, what was going on. And so then I went to college, and I was like, "Well, I don't know if I wanna be a programmer. Let me study accounting for five years." And so I did. I, you know, I got my master's degree in accounting, went and worked as a, a CPA or, um, I guess chartered accountant maybe in Europe or, or, you know-

03:12

Michael Thiessen

Mm-hmm

03:12

Aaron Francis

... certified professional or public accountant here in the States. Did that for one year at a company called Ernst & Young, and I was doing other people's taxes, and I just realized doing others pe- other people's taxes is not very fun. Imagine doing your own taxes, but worse. It's, it's like-

03:28

Michael Thiessen

Oof

03:28

Aaron Francis

... and that's your entire job all day, every day. So that was no fun, and I decided, you know what? I'm gonna take this thing that has always been a hobby and try to make it, like, my profession. And so I left Ernst & Young, and I had been, you know, working on side projects and blogging, and that was how I got my first, like, you know, big boy programming job, was somebody found my blog and was like, "Hey, can you help us with this thing that you just wrote about?" And that's kinda been, like, my entire story, is just do stuff and put it out there

03:58

and see what happens. It has worked well so far.

04:01

Michael Thiessen

Yeah. It seems like writing and just, like, sharing your, your thoughts seems to ha- it has all sorts of benefits from, like, forces you to actually understand the stuff better, but then also people can see that. Even if it's, like, like, one blog post can-

04:17

Aaron Francis

Yep

04:17

Michael Thiessen

... get you a job, you know?

04:19

Aaron Francis

Yep.

04:19

Michael Thiessen

That's pretty sweet.

04:19

Aaron Francis

And, and it, and it's, like, the most esoteric stuff. I remember the blog post that got me that job. It was... I think it was titled Automating Yii, Y-I-I. It's an old PHP framework.

04:30

Michael Thiessen

Yeah.

04:30

Aaron Francis

Automating Yii Migrations on Heroku. That was the blog post, and the reason I wrote that-

04:36

Michael Thiessen

Right

04:36

Aaron Francis

... is because I had just done that. Like, I had just figured out how to automate Yii migrations on Heroku, and I just wrote it down and put it on, you know, aaronfrancis.com. It was no- not on Medium, not on dev.to. It was just like, "I have this little site. I'll put it up." And I got an email, you know, months later that was like, "Hey, we're, you know, running Yii on Heroku. Are you available for consulting?" I was like, "What is going on here?" And that was, that was it.

05:00

I was off to the races.

05:01

Alexander Lichter

Perfect. And I, I think, like, this is... Like, we say that in some episodes, especially when we talk about, like, creating content, but for everybody out there that's like, "Okay, just write down what you accomplished." It can be in a side project-

05:12

Aaron Francis

Yes

05:12

Alexander Lichter

... or just like, "Hey, I did this."

05:13

Aaron Francis

Yes.

05:13

Alexander Lichter

"I couldn't find any resource or any, like, comprehensive things." Just like, okay, write it together. And this is like y- you already did that. You're an expert in what you do because it worked. You did it. There might be other approaches. You get in contact with people who might try the same.

05:26

Aaron Francis

Yep.

05:26

Alexander Lichter

Or yeah, find a job, get hired, or, or starting your own things, and this is so incredible. Also, like, getting the feedback of people to then either improve, I don't know, a certain workflow or technique-

05:36

Aaron Francis

Mm-hmm

05:36

Alexander Lichter

... or just saying, "Hey-

05:37

Aaron Francis

Yep

05:37

Alexander Lichter

... oh, there's another perspective."

05:38

Aaron Francis

Th- I think there's a big fear of people when they think, "Oh, I'm gonna put out content. I'm gonna write. I'm gonna make a video or something." And, and the fear is that they have to be the world's foremost expert on it, and I think, like, if you change the way that you frame the content that you're creating, instead of, "I am the expert, and here's how you should do it," and you change it to, "I just did this, and here's how I did it," the w- it's just so much easier.

06:05

Alexander Lichter

Yeah.

06:05

Aaron Francis

The world just... Like, nobody can argue with the fact- That that is how you did it, right?

06:11

Alexander Lichter

That's true.

06:11

Aaron Francis

Some people may say, like, "The way you did it, it, there's a better way." But if you go out there and you say, "I'm the expert, and here's how you should do it," people just wanna fight on the internet. But if you go out there-

06:21

Alexander Lichter

Yeah

06:21

Aaron Francis

... and you say, "Hey, I had this problem. Here's my solution. Here are the trade-offs. What do you think?" People are like, "Hey, you did that. I can't argue with that." And it just lowers that, uh, pressure quite a bit.

06:33

Alexander Lichter

Totally agree.

06:34

Michael Thiessen

I think that's a really good tip.

06:35

Alexander Lichter

I also think that fits in in something you said at, uh, your talk at Laracon EU in, in Amsterdam because you said at one of, like, almost your last slides, you said, like-

06:43

Aaron Francis

Mm-hmm

06:43

Alexander Lichter

... "I'm not qualified." Where you basically all said, okay, this, like, you didn't, I know, you didn't have a degree in computer science and whatsoever, but you stuck with the problem. You worked into that, and everybody else is like, "Hey, don't be afraid of, like, writing open source code or do something."

06:57

Aaron Francis

Mm-hmm.

06:57

Alexander Lichter

Go for it. Stick with a problem. Try things out. You don't need any permission. You can just go for it, and don't need any qualifications, so to say, to do that.

07:04

Aaron Francis

Yeah. I think, yeah, so that was, like, my, my last slide just said-

07:08

Alexander Lichter

Mm

07:08

Aaron Francis

... "I'm not qualified." And it was meant to be, like, an encouragement to other people because I think a lot of times people will sit on the sidelines and, like, listen to podcasts or watch people talk on stage and think, "Wow, those, those people are really qualified to be doing what they're doing, and I could never, ever get there." And I think the open secret, I don't think anybody's, like, hiding knowledge, the open secret is everybody that's on stage, on a podcast, making open source, running a software company for goodness sakes, they just got there

07:38

by, like, sticking with it. And you know, some people, of course-

07:42

Alexander Lichter

Mm-hmm

07:42

Aaron Francis

... have, like, really, really intense formal training, and that's awesome, but I don't, and I don't... Like, nobody said, "Hey, Aaron, you can create an open source project that combines Vue and Vite and Laravel, and I think you're the perfect person to do it." Nobody said that. I was just sitting quietly in my room and thinking, "Huh, I wonder if that's possible." And I just didn't stop.

08:05

And so that's the encouragement that I was hoping to give is, like, hey, everyone that's listening, I'm literally just like you. The only reason that, like, I was allowed to come up here on the stage today is I thought there was a problem, and I just kept digging until I got to the very bottom, and that's it, and it works. And so that's my hope-

08:25

Michael Thiessen

And then you put it out in the world

08:26

Aaron Francis

... is that... Yes. That, that is very important.

08:28

Michael Thiessen

Yeah.

08:28

Aaron Francis

I did put it out, and I did publish the thing. I think that's another place that's a good point where people get hung up, is they do it, and then they sit on it forever because they're scared, and I get it. It's terrifying. Like, we can talk about-

08:39

Alexander Lichter

Mm-hmm

08:39

Aaron Francis

... Reddit later. It's terrifying.

08:41

Alexander Lichter

Here we go.

08:41

Aaron Francis

But, like, you know, you just, like, you owe it to yourself if you're gonna do all this work to put it out there and, like, reap the rewards of that, whether that's, you know, friends or notoriety or, like, a job or coming on podcasts. Like, you will get, like, good things will happen. Also, people will be upset, but that doesn't matter. And so, yeah, that was my charge to people is, "You also can do this."

09:05

Michael Thiessen

Yeah. I tried to, to share about the imposter syndrome that I have felt very strongly, and I still do to some degree. And it's always, like, it gets quieter once I've gotten some confidence and I've gotten feedback in a particular area.

09:20

Aaron Francis

Mm-hmm.

09:20

Michael Thiessen

But I remember the first several years of me working as a software developer, my manager had, like, we had, like, this weekly one-on-one, and it was never like, "Oh, here are my career aspirations," and stuff like that. It was, like, mostly a therapy session of him-

09:35

Aaron Francis

Mm

09:36

Michael Thiessen

... reassuring me that, "Yeah, you're doing a good job. You're contributing. Uh, we still want you here."

09:41

Aaron Francis

Yep, yep.

09:41

Michael Thiessen

And like, that's what... It's like I needed that weekly dose of reassurance that I was all right, and, like, that was so helpful, and if you can get that, then that's, that's amazing. But, uh, yeah, it, it's hard.

09:54

Aaron Francis

It's hard. Sounds like a good manager.

09:56

Michael Thiessen

Yes.

09:57

Alexander Lichter

Absolutely. Just wanted to say the same.

09:58

Michael Thiessen

Definitely.

09:58

Aaron Francis

Yeah.

09:59

Alexander Lichter

Friends, managers. Like, also in open source, as someone who had never had, like, a formal, let's say, manager in that way, like, I learned from so many people in open source and also them reassuring, "Hey, yeah, that's great," or constructive criticism. Like, "Okay, good start. Oh, maybe, how about that? You have, like, not maybe considered this angle." That's super helpful. You grow with that a lot. Uh, and then I think, like, yeah, reaping the rewards of saying, okay, things get merged.

10:23

Things that you publish, people use it. People in the end say, like, "Hey, thanks to what, what you did," I don't know, "I could solve a problem at work. I could finish my SaaS and launch," and whatsoever. Like, these are-

10:32

Aaron Francis

Mm-hmm

10:32

Alexander Lichter

... like, so, so amazing feelings. And then I think this is really where you feel the impact that you can really make when, like, people are always saying, "Hey, great video," or like, "Hey, great content. Amazing." But, like, actually it's, like, real-life stories where people come say-

10:45

Aaron Francis

Mm-hmm

10:45

Alexander Lichter

... "Thanks, thanks to you," I don't know, "I, I could get a better job and, um, actually," I don't know, "could, uh, fulfill that dream of mine," or this, that, or, "I started because of you public speaking and, uh-

10:55

Aaron Francis

Mm-hmm

10:55

Alexander Lichter

... get into that, and, and look, here we are now sharing a stage. So that's, yeah, that, that's all pretty amazing. On the other hand, of course, we have the negative parts as well. Um, but, but we'll definitely circle back to that. Now, you already mentioned that you created, uh, an open source project out there that combines-

11:12

Aaron Francis

Mm-hmm

11:12

Alexander Lichter

... Laravel, Vite, Vue, uh, and it's called Fusion. So maybe-

11:17

Aaron Francis

Mm-hmm

11:18

Alexander Lichter

... for everybody who hasn't heard about it yet, even though it probably is in the podcast title, or maybe that's why, like, hey, that sounds interesting. How does that fuse all these things together, and what is it actually?

11:29

Aaron Francis

Mm-hmm. Yeah. So it's a little, it's a little bit wacky. And so it will be, by the time y'all are listening to this, it will be out. It's free. It's open source. I would love your feedback, um, especially if you're primarily a front end person because I'm primarily a back end person, so I would love that other perspective. But the pitch for Fusion is that it is the, in my opinion, best way to combine your batteries included Laravel back end with your modern JavaScript front end.

11:58

And so the story there is right now, I, I think the best story for that is Inertia, and Inertia is wonderful. And in fact, Fusion relies on Inertia. And so Inertia is that little bit of glue between, you know- Actually a lot of backends and a lot of different frontends. It has, like, Rails, Phoenix, you know, uh, Laravel, a bunch of different backends.

12:20

Inertia sits between the two. But with Inertia, it's still very manual the way that you get data down into your frontend. There's no story to get, uh, to execute actions on the backend. And so once you get the data down, you're just in frontend land, and you have to write, you know, your API endpoints and your fetch calls, your Axios calls, whatever, to get that behavior back and to do something on the backend, and you're just kinda in that manual place again.

12:45

And that's been totally fine, but I think in the JavaScript communities, we've seen a lot of very interesting advancements in terms of, like, bringing the front and backends closer together. So server components, server actions, all of these things that all of these different JavaScript communities are doing that's like, "Hey, you've got a function on the backend, you can call it from the frontend.

13:06

We'll handle the rest." It's like, wow, that's actually kinda nice. You know, there are... I have some qualms with the way that, like, React server components work in that you don't know where anything is running ever.

13:17

Alexander Lichter

Yeah.

13:17

Aaron Francis

And that, like, that makes my old head hurt 'cause I'm like, I kinda like to know what's frontend and what's backend. But in principle, it seems really nice because, you know, you can kinda just talk across this barrier. And so that's what Fusion aims to do for Laravel. What it currently does is it allows you to write PHP code in your Vue single file component.

13:41

You've got your Vue single file component, you've got your template, you've got your script, your script setup, whatever, and then you can write literally a PHP block, and you can write PHP code in that block. And what that will do is that will define what state should be passed down to the frontend. It will also define what actions are available to be called from the frontend.

14:04

And then that's it. Like, the magic is, or we can talk about it, but it's in Vite, and it will, like, take the PHP, do a bunch of inspection on it, figure out what data is going to be available on the frontend, and then inject a bunch of information into your compiling single file component so that your Vue component knows what data is available on the frontend.

14:25

And so then you're left in this position where you don't really have to define routes, 'cause we can do file-based routing with Fusion. You don't have to define routes, you don't have to define controllers, you don't have to define props, you don't have to define API endpoints or fetch calls or anything like that. It's all just there for you to use. And so the hope is that it, like, brings these two world-class solutions in Vue and Laravel and brings them much closer together and allows you to, um...

14:56

In the same way that Tailwind kind of allows you to stay in a certain context where you're like-

15:01

Alexander Lichter

Mm-hmm

15:01

Aaron Francis

... I'm not switching back and forth between the CSS file and the HTML file or whatever. Fusion, the, the idea for Fusion is it allows you to stay in that context. And so a lot of people cried single responsibility, and my point of view is, like, it allows you to stay in one context. Now, how it actually works is the PHP solely runs on the backend.

15:21

The JavaScript solely runs on the frontend. There is an entire network in the middle. It's like everybody is separate. We just happen to be writing it in a place where you can maintain context for, like, the entirety of the thing that you're doing, which is what is the data that's gonna come down and what are the actions that are gonna come back, and that entire life cycle is right there in one file.

15:44

And I think that's really productive.

15:46

Alexander Lichter

So it's, like, literally end to end in a single component.

15:50

Aaron Francis

Yes, exactly.

15:51

Alexander Lichter

Perfect. And th- that means you basically then write a Vue component with template and style if you, if you don't use Tailwind, and then-

15:58

Aaron Francis

Mm-hmm

15:58

Alexander Lichter

... a PHP block, and the script-

16:00

Aaron Francis

Mm-hmm

16:00

Alexander Lichter

... setup block can also coexist with all of that-

16:02

Aaron Francis

Mm-hmm

16:02

Alexander Lichter

... to run in, in the frontend.

16:04

Aaron Francis

Yep.

16:04

Alexander Lichter

Interesting.

16:05

Aaron Francis

It can coexist. It can coexist with script setup. It can coexist with script with options API, options API with a setup method-

16:14

Alexander Lichter

Yeah

16:14

Aaron Francis

... um, which I think is n- I don't know how common that is. I don't ever really use that. Um, and it can also-

16:18

Alexander Lichter

Luckily not that common anymore. Yeah.

16:21

Aaron Francis

It can also coexist with, um, no script tag at all. And so those are the four possibilities that we've allowed for so that... Because I'm not a dummy, I understand that, like, once the data comes down, there's still JavaScript stuff to do on the frontend. Like, it's not like, oh, I just use it in my template, and then I just send everything to the backend. It's like, no, the reason we're using these modern JavaScript frontends is for this rich interactivity, this high client side interaction, that kind of stuff.

16:49

And so to just say, like, "You can send your data down and use it in a template, but you can't write JavaScript," it's like, well, that's kind of totally missing the point, isn't it? And so we do inject, uh, all the Fusion stuff into whatever type of, uh, Vue single file component you're working on.

17:06

Michael Thiessen

So I'm not a PHP person. Uh, I've written, like, a tiny, tiny amount. So I'm trying to understand, like, what kinds-

17:13

Aaron Francis

Mm-hmm

17:14

Michael Thiessen

... of things... Would you write your entire backend using this or do you think it's more suited for, like, smaller mutations, or are you putting, like, your entire backend logic and everything in, in these tags?

17:27

Aaron Francis

So that's a great question, and that was one of the well-founded criticisms that came up on Reddit and YouTube, was like, "This, these files are gonna be, you know, six thousand lines long." Like, yeah, okay. That is a great point. My opinion, and we'll see how it kinda shakes out once the community gets a hold of it, but my opinion is the PHP that you write in your Vue single file component should basically just handle the HTTP layer.

17:53

And so there's a common pattern in Laravel these days called actions, and really what they are is they're just invokable PHP classes. And so you might have an action that is like publish podcast. And what you do is at, at the HTTP layer, you take all of the user's input, maybe you validate it, maybe you sanitize it, and then you hand it off to publishPodcast action.

18:15

And that's where kind of like your business logic lives. And that allows you to decouple it from the input layer. And sometimes the input layer is the CLI. Sometimes it's a user action, sometimes it's a webhook, sometimes it's an import, and, you know, an overnight cron, sometimes whatever. And so factoring all of that out into kind of like a standalone plain PHP class that like defines what input it should receive, that to me I think is going to be the best method for handling that.

18:45

And so the PHP block in your single file component will handle like taking all the input at, in from the front end and then routing it off to the right place or dispatching a job or doing something like that. But in terms of like, I need to write my billing logic in a Vue single file component, I think that's a bad idea. I hope people don't do that, but, you know, we'll see.

19:05

We'll see what happens. But I think it's going to be basically the translation layer from HTTP to your sprawling Laravel backend that runs the whole world. That's kinda my vision for it.

19:17

Alexander Lichter

So a bit like if you say you have a controller, of course, it also shouldn't be like, I don't know, 5,000 lines long.

19:24

Aaron Francis

Totally. Thinking of these as controllers is a very, very good analogy. And so then you're left with, what do we do? Thin controllers, fat models? Like you could do thin controllers. I think that is the right way to go. You can do fat models. I have no opinion on that. You could also do these service classes, these actions-

19:41

Alexander Lichter

Mm-hmm

19:41

Aaron Francis

... these handlers, you know, queued jobs, whatever. But I do think thin controllers and thinking of the PHP block in your SFC as a controller, I think that's the right paradigm.

19:52

Alexander Lichter

I mean, in the end, if you would have it like let's say in separate files, then you'd also say, "Okay, I do a request," and that request would hit a controller. And in a way you more or less move that code from the controller in an extra file just in your component to say, "Hey, this is-

20:06

Aaron Francis

Exactly

20:07

Alexander Lichter

... tightly coupled." Lovely.

20:08

Aaron Francis

Yeah. Exactly.

20:09

Alexander Lichter

I, I wonder how does that work under the hood? Because now you have-

20:13

Aaron Francis

Mm-hmm

20:13

Alexander Lichter

... that PHP part that will be then of course like parsed out, I guess, um-

20:17

Aaron Francis

Mm-hmm

20:17

Alexander Lichter

... for like a Vite job. And then do you have still like an API route for each component that's created, or how are, how is it like generated?

20:26

Aaron Francis

Ah, so you wanna, you wanna get, you wanna get nerdy, huh?

20:28

Alexander Lichter

Yes.

20:28

Aaron Francis

Okay. So-

20:29

Alexander Lichter

That's what I'm here for.

20:30

Aaron Francis

Yes. Okay. So here's, here's how it works. So we've already covered that you're writing your PHP in your single file component. Then what happens is Vite, you know, picks it up, and it runs it through this entirely complicated pipeline that I really don't fully understand. This is my first experience with Vite ever. Vite is amazing. I, I don't know. I don't know what I've been doing.

20:51

I've just been using Vite. I've never actually cracked open the hood. It's incredible. So crack open the hood and you realize, oh, you can write your own, you write your own Vite plugins.

21:00

Alexander Lichter

Mm-hmm.

21:00

Aaron Francis

That's interesting. What happens next? So I wrote a Vite plugin that works before Vue's plugin, and it pulls that PHP block out, and in the process of pulling it out, what it does is it takes that user's PHP, or developer, we'll call them the user, the user's PHP that they have written, and it takes the content and passes it off to a Laravel command.

21:23

So in this Vite plugin, it spawns a PHP process and hands all the PHP code off to a Laravel command that ships with Fusion. And the reason that I do that is because the ability to parse PHP in PHP is pretty good. Trying to do all of that in JavaScript would be somewhat difficult. And so I hand off all the raw code to a PHP command, and then we parse it, and we walk the abstract syntax tree.

21:50

And so because we're able to do that, this is a situation that PHP developers have never been in, which is a build step for PHP. That's not something we have ever, ever done. PHP is like invent the universe on every request and destroy it. You're done. Game over. Like you don't have to run a pipeline. That's it. So it's not like Ruby where you have to like start up this long-running server.

22:13

PHP is just like stateless, do whatever you want, have fun. But now we're in this situation where we're walking this abstract syntax tree of PHP that the user has written, and in that process we're looking for stuff. One of the things we're looking for is, hey, did they define any props? Did they say in their PHP, "This should be available on the front end"?

22:35

And the way that you can do that is with a little prop function, or you can set it to a public class property. Whenever we're walking that AST and we see, hey, they declared one way or another this should go to the front end, we kinda write it down. We're like, "Yeah, I should write that one down. We're gonna hang-

22:49

Alexander Lichter

Mm-hmm

22:49

Aaron Francis

... onto that one." And then when we're all done, we have all the information about the props that they defined and the methods that they exposed. And so you have to say like, "I want this method callable from the front end." So when we're done walking, we've got that information, and we take that information, the user's PHP code, and we write it to disk.

23:09

And so now instead of running the PHP code that you see in the Vue single file component, we are running the transpiled, transformed version that we have written to disk. And so for every Vue single file component, we write one PHP class. And then we also write, for every Vue single file component, we write a PHP class.

23:33

We also write a JavaScript shim. And the JavaScript shim basically declares these are the names of the keys. That's it. We don't pass any data down in the build process. These are the names of the keys that are props, and these are the names of the functions that are, should be exposed as actions. And so then once everything is built, Fusion is a little bit out of the way because at that point we try to hand everything over to the default Laravel request response life cycle.

24:02

And instead of routing to a controller, we have one single controller, the Fusion controller. We have one single controller that every single Fusion route points to that Fusion controller. And in that Fusion controller, we look up, okay, what is this request URI? What component does that map to? Let's go find that PHP class that we wrote earlier, and then let's run that class and send down the data and send out the component name,

24:32

the JavaScript component name. And so at that point, everything runs through a single, like, entry point controller. We find the class, we send the data out, and then on the front end, every request comes... Like, every post request comes back to that single controller with a header that says, like, "Hey, here's the component I'm on, and here's the PHP method I want to call." And so then we go and we look up the component.

24:56

We go and look up the class. We look up the method. We make sure it's allowed, and then we run that and send the response back that way. And so that's kind of the entire process, with the goal being we wanna do as much expensive stuff as we can at build time.

25:11

Alexander Lichter

Mm-hmm.

25:11

Aaron Francis

So we do all our introspection, our reflection, our, like, writing of little things so that we don't have to look them up later. We do all of that at build time, so then when you ship it off into production, it's like, "Ah, it's just... It's PHP classes written to the disk." Like, there's not a lot left to do. So that's kinda the full life cycle there.

25:28

Alexander Lichter

So it's like PHP codegen in a way.

25:31

Aaron Francis

Totally. Yes. I've got... This is wild. I've got, um-

25:34

Alexander Lichter

Yeah.

25:35

Aaron Francis

... PHP code that writes PHP code that writes PHP, PHP code that writes JavaScript, JavaScript code that writes PHP, and JavaScript code that writes JavaScript. So I've got the whole quadrant. I've got it all.

25:45

Alexander Lichter

Wow.

25:45

Aaron Francis

It's all in there. Yeah.

25:47

Alexander Lichter

I didn't expect, as someone who used, like, Laravel, uh, quite extensively, that we come to the point where we have, like, View components being data-

25:55

Aaron Francis

I know

25:55

Alexander Lichter

... with JavaScript, with, with JavaScript and PHP code.

25:57

Aaron Francis

I know. It's crazy.

25:58

Alexander Lichter

It's insane. But I'm, I'm really, I'm really pumped of giving it a try. Now, you, you said earlier that Inertia is also part of the mix there. So in which parts-

26:07

Aaron Francis

Mm-hmm

26:07

Alexander Lichter

... is, like, Inertia relevant to the whole process?

26:11

Aaron Francis

Yeah. So, um, Inertia, what it does is, or what I rely on it for, is the, basically the client-side routing that's... You know, it's, with Inertia, it's a little wonky, but it's, it's client-side routing, but it's defined on the server side.

26:25

Alexander Lichter

Yeah.

26:26

Aaron Francis

And Inertia's great power is you send down, like, this blob of data and this name of, you know, the page that you're navigating to, and Inertia will look up that View component and then swap out the whole page and provide, like, the correct props and all of that. And so that's what I rely on Inertia for. So instead of having to reinvent, like, you know, this pseudo client-side routing and this View component lookup and this history and this, all that stuff, I rely on Inertia

26:56

to route these responses on the client side to find the right components and instantiate them and provide them props.

27:04

Alexander Lichter

I see. Also, on that note, for everyone who didn't listen to episode 29 yet, um, that was the episode on Inertia 2.0 with Joe Tannenbaum. Um-

27:12

Aaron Francis

Mm-hmm

27:12

Alexander Lichter

... so definitely worth checking out if you like

27:14

Aaron Francis

Dear friend of mine. Love Joe Tannenbaum.

27:16

Alexander Lichter

Yeah. Shout out.

27:17

Aaron Francis

He's wonderful.

27:18

Alexander Lichter

Um-

27:19

Aaron Francis

Mm-hmm

27:19

Alexander Lichter

... yeah, so th- that's, that's super interesting, and because I like, I also know and I learned in episode 29 back then that Inertia can also do server-side rendering, like, fully.

27:28

Aaron Francis

It can. Mm-hmm.

27:29

Alexander Lichter

Can Fusion also be, like, fully server-side rendered with, like, all the-

27:33

Aaron Francis

Yes

27:33

Alexander Lichter

... on it for import?

27:35

Aaron Francis

Yes, it totally can. Um, I have not done it yet, but there's nothing technically stopping it from hooking into Inertia's server-side rendering, which I have used, and it's very good. So Inertia relies on a, um, you know, a running node process to do that server-side rendering.

27:51

Alexander Lichter

Yeah.

27:51

Aaron Francis

And totally, totally possible to hook into that with Fusion as well.

27:57

Alexander Lichter

Amazing. That's, uh-

27:58

Aaron Francis

Yeah.

27:58

Alexander Lichter

Ch- checks a lot of boxes here.

28:00

Aaron Francis

I know. It's crazy, right?

28:02

Alexander Lichter

Yeah. Maybe before we dive deeper into the, the tech part, like, how did you come up with that idea? Like, were you like-

28:08

Aaron Francis

Yeah

28:08

Alexander Lichter

... one day showering, like-

28:09

Aaron Francis

Mm-hmm

28:10

Alexander Lichter

... "You know what? If we just take Inertia and just do, like, five exits of, like-"

28:14

Aaron Francis

Mm-hmm

28:14

Alexander Lichter

... "If we go that direction but further and further."

28:16

Aaron Francis

Right.

28:16

Alexander Lichter

How did that happen?

28:17

Aaron Francis

Yeah. Ho- honestly, that's kinda like... That is also kind of my, uh, modus operandi is, like, what if we did something, but we did way more than we should reasonably do? And that, you know, that's kinda where we ended up. Yeah, so like I said earlier, I started a company with my friend Steve, and Steve is a big JavaScript guy. Loves View, loves Nuxt. He's been using it, you know, for a super long time.

28:39

I'm obviously big Laravel guy. Love View. Never used Nuxt, but love View.

28:43

Alexander Lichter

You should.

28:44

Aaron Francis

Have been using... I know. I've, I've heard. Uh, been using View since, you know, 1.0, and so we're working together, Steve and I. We're working together on these, like, course platforms, and it obviously makes a ton of sense. I do the Laravel. He does the View. We stick Inertia in the middle, and everybody's happy. But then Steve comes along, and he's been spoiled by all this JavaScript stuff, and he's like, "Hey, why is it so hard to get data into my View templates?

29:08

Like, why are you defining a route, defining what data should be sent over the wire, and then going into View and defining the props?" And I'm like, "My friend, that's just how it should work." And he's like, "Uh-uh. No, that's not how it should work." And he's like, "Why, why is it so hard to get data out of the URL and, like, to have these route parameters and grab the query string?" And I'm like, "You gotta do all that on the back end and send it down to the front end." And he's like, "This is insane.

29:30

Why, why are you doing this?" And so my eyes were a little bit opened, um, working so closely with somebody who was so, like, dyed-in-the-wool JavaScript guy, and I started to realize, like, boy, there actually is a lot of boilerplate here. This is kind of a mess. And so I, you know, was working with Steve, and then I was seeing in the JavaScript communities, I was seeing all of these advances of, like, you know, you can write server code, and it sends to your client, but not really.

29:57

And I'm like, "Wait, what's going on?" And so I started to put all these things together and think, "Wait, in my opinion, Laravel is the best back end available. In my opinion, View is the best front end available. It's my absolute favorite. We should be, like, bringing those two things closer together." And frankly, Steve was like the catalyst for a lot of that because without him, I wouldn't have realized, like, the squalor that we were living in and this filth.

30:24

And he came along, and he's like, "You live like this?" And I was like, "Yeah, it's great." And so that's kinda, that's kinda where it came from.

30:31

Michael Thiessen

And then, like, did the two of you also work on Fusion then together?

30:36

Aaron Francis

So, um, Steve helped me a lot with, like, the branding and the website and the, like, API design. I would send him screenshots, and he'd be like, "Eh, that's not great."

30:48

Michael Thiessen

Yeah.

30:48

Aaron Francis

And then, you know, at finally near the end, like, you know, days before the conference, near the end, I was sending him screenshots, and he was saying, "Okay, now this is, this is how I want to use/learn Laravel. If this is what you're telling me is possible, I will learn Laravel to use this." And I was like, ugh-

31:07

Michael Thiessen

Finally

31:07

Aaron Francis

... we've gotten somewhere. We have gotten somewhere. So, like, when you're, you know, when you're writing something, when you're developing something, it's always nice to have an avatar in mind. Like, who is the one person that you're writing this blog post to? Who is the one person that you're designing this interface for? And it was Steve the whole time. I was just like, "If I can get Steve on board, then I will know that, like, JavaScript broadly would at least be amenable to it." They may not all like it, but if Steve, the JavaScript guy, likes

31:37

it, hey, we're off to a good start. And so that was kind of my guiding light.

31:42

Michael Thiessen

Yeah, have like a persona, and like in this case a-

31:44

Aaron Francis

Mm-hmm

31:44

Michael Thiessen

... a real life persona even.

31:45

Aaron Francis

Yeah.

31:46

Michael Thiessen

Like, hey, this is, this is like the, the person I'm aiming, like, to convince and to say-

31:50

Aaron Francis

Exactly

31:50

Michael Thiessen

... "This is, this is something for you." Perfect. You already mentioned, like, okay, the responses must be good then. How was it then received so far? I mean, we are recording-

31:58

Aaron Francis

Mm-hmm

31:58

Michael Thiessen

... as I said before, before the actual, like, repository is released, before people can look-

32:02

Aaron Francis

Mm-hmm

32:02

Michael Thiessen

... at the code, but based on the video you made and your conference talk and of course people posting it on all kind of social media.

32:09

Aaron Francis

Mm-hmm.

32:10

Michael Thiessen

So how, how did you feel that, uh, the community reacted on that?

32:14

Aaron Francis

Overall, I feel great. There are a couple spots that didn't feel super great, but okay. So, you know, I gave this talk in Amsterdam just, like, a week ago. And while I was on stage, Steve pulled the trigger on releasing a YouTube video. So we, we kinda, like, wanted to, like, focus all of our energy onto this one moment in time. So I'm giving a talk.

32:36

We release a tweet with, like, a trailer video that Steve built or, or made. Um, and then we release a YouTube video, which is a demo of Fusion that I recorded before I left, so trying to do, like, the whole thing all at once. In person at Laracon, everybody loved it. Everybody, at least everybody that came up to me. Of course, they're not gonna come up to me in person and say, "This is stupid." Um- Maybe, but nobody did.

32:58

So everyone loved it. Everyone thought, "This is great. I love Inertia. This seems like the next step," or, "I love what they're doing in Nuxt and Next. I just wish it was easier to do that in Laravel." That, those kinds of things, right? And so everybody's like, "This is great." Some people are like, "You're crazy. How did you do this? This is great." I'm like, "Hey, that's kinda fun." So that seemed great.

33:20

Lots of people on Twitter seemed to really like it. The people, this will not surprise you, that did not like it were all Redditors. So I would say Reddit was 80%-

33:31

Michael Thiessen

Mm

33:31

Aaron Francis

... negative in both the Laravel subreddit and the Vue subreddit. The Vue subreddit, I don't spend a lot of time there, and I'm not going to. They were so mean. They hated it so much. Like, "Kill it before it lays eggs. Burn it with fire. Go back to teaching databases." Stuff like that, and it's like, oh man, like maybe I'm naive.

33:56

Okay, so maybe I'm naive, and I thought, this is a win for the good guys, right? This is a win for the Vue nation. Like, most things come to React first, but I like Vue most.

34:07

Michael Thiessen

Mm-hmm.

34:07

Aaron Francis

And so let's, like, let's focus on that.

34:10

Michael Thiessen

Yep.

34:10

Aaron Francis

And I thought the Vue subreddit's gonna be like, "Great, they chose us first." And that was just, like, adorable and totally naive. They freaking hated it. And in, in every criticism, there's usually something redeemable. I mean, burn it with fire, there's not much I can glean-

34:25

Michael Thiessen

Yeah, no.

34:25

Aaron Francis

... from that, but lots, lots of questions about, like, why are we going back to 2004? And totally fair. I think on the internet, a lot of people just read the headline and don't actually, like, read or watch the thing. And so I don't think a lot of people realized that, like, hey, this is... I mean, to be totally frank, this is like syntactic sugar.

34:48

Like-

34:49

Michael Thiessen

Yeah

34:49

Aaron Francis

... we're not, we're not-

34:50

Michael Thiessen

Mm-hmm

34:50

Aaron Francis

... really, like... I'm definitely not transpiling your PHP to Wasm, and I'm definitely not, like, taking your JavaScript and, like, transpiling it to PHP or something. Like, ne'er the twain shall meet. These are very separate things. It just allows you to do it in one file to, to maintain that context, and then it sets up, like, some auto wiring of, you know, stuff up and stuff down.

35:12

Like, that's basically it. But people were saying, like, "Oh, so now you're gonna be mixing your PHP, like, echo statements into your Vue templates?" And I'm like, "No, I don't even know how you would do that. Like, no, that's definitely not even possible." And so Reddit was not terribly thrilled. It didn't really bother me because most of them completely missed the, the point of the library.

35:34

Um, so overall, I feel just thrilled to death about it. A lot of people like it. Some people super hate it, and frankly, I think that's probably-

35:41

Michael Thiessen

Mm-hmm

35:41

Aaron Francis

... a good thing that there's, like, strong feelings both ways.

35:45

Michael Thiessen

Well, I always imagine, like when I get feedback, especially negative feedback, I always imagine, like, this bell curve in my head of like, okay, people way on the left, they hate it. These are the people that are commenting. But then there's, like, some people who comment and who say they, like, they're gonna give up, like, everything in their life to do this new thing.

36:07

Aaron Francis

Mm-hmm.

36:07

Michael Thiessen

And then there's like, most people in the middle are like, "Yeah, this is cool," or, "Eh, I'm not so sure about it." And it's like-

36:13

Aaron Francis

Sure

36:13

Michael Thiessen

... maybe it's, like, skewed one way or the other a little bit, but, like, I always try and, like, remind myself, okay, these people who are being mean, they either missed the point or it's just, like-

36:23

Aaron Francis

1% of, of people

36:24

Alexander Lichter

Yeah, they're, they're the minority. That's important. Like, the- I think most people who've maybe seen it or who will try it out, they don't comment. They just, like, try it-

36:32

Aaron Francis

Mm-hmm

36:32

Alexander Lichter

... and give, give it a spin.

36:33

Aaron Francis

Yeah.

36:33

Alexander Lichter

They're always-

36:33

Aaron Francis

They're busy using it.

36:34

Alexander Lichter

Yeah.

36:35

Aaron Francis

Yeah.

36:35

Alexander Lichter

Just using it. Or watching the demo video.

36:37

Aaron Francis

And of course, you know, there's a lot of, like, old and tired PHP hate. You know, there's like, "Oh, are we still using PHP in 2025?"

36:45

Alexander Lichter

Yeah.

36:45

Aaron Francis

And I'm like, "Brother, we are. A lot of us are."

36:49

Alexander Lichter

Yeah.

36:49

Aaron Francis

And you know, tho- those are the people that I can't win over, and I don't really care to. If, if they think that, like, PHP is, you know, 2004 WordPress, it's like, that's really not my fight. Like, ah-

37:01

Alexander Lichter

Yeah

37:01

Aaron Francis

... I, I would love to try to convince you that, like, we're modern and cool, but it's... At that point, it's like, um, it's almost religious, right? It's like, uh, Vim, Emacs-

37:11

Alexander Lichter

Mm-hmm

37:11

Aaron Francis

... Mac, PC. It's like, I'm just not gonna try to convince you, 'cause that's a waste of everyone's time.

37:16

Alexander Lichter

I agree. Waste of time and energy. You could do way more amazing things, like working for DawnFusion or your, your company.

37:21

Aaron Francis

Yeah, exactly.

37:22

Alexander Lichter

Like-

37:22

Aaron Francis

I got a lot of stuff to do.

37:24

Alexander Lichter

Yeah. I personally was really surprised. Like, I took a look at the Reddit. I, I have to admit, I am quite active on Reddit.

37:31

Aaron Francis

Mm.

37:31

Alexander Lichter

Um, no, I, I didn't write any comments, uh, to be fair. Uh, I, but I read through them. I was also like, how is that possible? Because usually, especially in the Vue world, there are not that many controversial things. I think the peak polarizing topic is composition versus, versus options API. And that's like... I think that's, like, really the peak where people have, like, really strong opinions, and no matter what you say-

37:53

Aaron Francis

Mm

37:53

Alexander Lichter

... sure, even though they're, like... Yeah, whatever. I think the next thing is, like, JavaScript versus TypeScript. But it also, like-

37:59

Aaron Francis

Sure

37:59

Alexander Lichter

... we all, I think, kind of slowly, like, moved over to TypeScript. There are some people who are not. That's also fine.

38:04

Aaron Francis

Mm-hmm.

38:04

Alexander Lichter

I, yeah, I haven't seen that kind of response, like, in, in a long time so far-

38:10

Aaron Francis

Mm-hmm

38:10

Alexander Lichter

... and I was really, really surprised. And I also wondered, like, okay, is it related to these three, like, letters that upset so many people, PHP?

38:18

Aaron Francis

Mm.

38:18

Alexander Lichter

Is it really that? But I also, like, with my background as someone who used Laravel quite frequently, and, like, was, like, the one big framework I started with in terms of app development, I never understood the hate around it. Like, even back then, it was always like, "Oh, yeah, PHP, it's so old-fashioned-

38:32

Aaron Francis

Yeah

38:32

Alexander Lichter

... and whatnot." Well, honestly, like, it is such a complete framework, which you can do so many amazing things, and especially when deployment is so easy, as you don't need a build step or anything.

38:43

Aaron Francis

Yeah.

38:43

Alexander Lichter

Yeah, I never got that. But I, I also think this is a big part why people were like, "Oh my God, I don't even read further. I see PHP and Vue combined. Hell no. Hell no. Goodbye."

38:52

Aaron Francis

I know.

38:53

Alexander Lichter

But that, that's, in my opinion, it's really a shame. And I also saw, like, uh, that you, you tweeted about that. Um, and I really liked-

39:00

Aaron Francis

Yeah.

39:00

Alexander Lichter

... how you dealt with the responses there and what happened.

39:04

Aaron Francis

Yeah. I, I, I tweeted a little bit tongue in cheek that, like, I found the best Reddit hack, and the best Reddit hack- ... is when people are really cynical and mean, you just respond sincerely, and they just crumble. And that's like, that's kinda like my whole thing, is like, I'm not going to be a mean, cynical person on the internet, because I think there are enough of those, and I would like to be an example of something different.

39:25

And being on Reddit is like that... My rules don't end at Reddit. And so while I do that on Twitter, I will also do that on Reddit. And so, like, on Reddit, I have a picture of my face and my real name, and when people say mean things, I respond with sincerity and curiosity. And so, like, a lot of these people would be, like, saying something horrible, and then I would respond and s- be like, "Man, I'm sorry you don't like it.

39:48

What... Is there anything that I could do better?" And, you know, so, like, I, you know, all, to the person, almost everyone would respond and say, "Oh, I'm sorry. I was just joking around. This looks really amazing. I can't believe you've done this." And I'm like, "Why didn't you start there?"

40:05

Alexander Lichter

Yeah.

40:06

Aaron Francis

Like, it doesn't have to be for everyone.

40:09

Alexander Lichter

Yeah.

40:09

Aaron Francis

I'm not gonna try to convince the whole world to use it. But if you don't like it, like, you don't have to say anything, but if you think it's amazing and I've done something cool and you don't wanna use it, maybe say that.

40:19

Alexander Lichter

Yeah.

40:20

Aaron Francis

Like, that's totally fine. And so I got a few people that actually DM'd me on Reddit, and were like, "Hey, Aaron, I'm really sorry. I feel ashamed for my comment. I was having a bad day. I've deleted it." And I'm like, "That's totally fine. I get it." And I think what a lot of people forget that there's, like, a real human on the other side of Reddit. And so when I respond with, like, my actual name and my actual face and say, like, "Oh, wow, I'm sorry.

40:43

I put a lot of work into this. Is there a part of it that, like, is not clear or you don't like?" They realize, oh man, this is just a guy that's, like, trying to make it in the world. And they, they're, they just totally crumble. I think a lot of people on, like, the opposite side of that, the people receiving that, like, mean, cynical nature, they forget that everyone wants to be important.

41:08

Like, everyone wants to be recognized. Everyone wants to feel valuable. And a lot of people on Reddit do that by, like, having the most snarky one-up comment of, like, "I'm the funniest," or, "I got the most, like, replies," or something.

41:21

Alexander Lichter

Yeah.

41:21

Aaron Francis

And I think it's very dismissive, like, w- in my position, it's very dismissive to forget the fact that, like, that is also a real person. That is also a real person.

41:32

Alexander Lichter

Mm-hmm.

41:32

Aaron Francis

And the way that they're expressing that they want to feel important is not my preferred way of expressing it, which is, like, by being the smartest, meanest, most cynical person. That's not how I like to do it, but it would be foolish of me to forget that that person just wants to, like, feel like they're important. They just wanna feel special. They just wanna feel loved. And you know how I know that?

41:53

Because I want that. Like, everybody wants that.

41:56

Alexander Lichter

Mm-hmm.

41:56

Aaron Francis

Everybody wants to feel special. Everybody wants to feel important. Everybody wants to feel like I did something cool and people clapped for me. And the way that that expresses itself a lot on Reddit is by who can be the s- most cynical. And so there's a lot of, like, human things at play here, and I think if you can recognize them, you can, like, deescalate pretty quickly.

42:17

Alexander Lichter

And also turn it into something nice in the end. Like-

42:20

Aaron Francis

Yeah

42:20

Alexander Lichter

... just getting, even, like, getting honest feedback or a constructive feedback, say, "Hey, this is amazing. I wanna use it." But yeah, I agree. Like, why don't you write at all? Well, because it doesn't give that many upvotes. Because, like, some rage bait or some, like you said-

42:32

Aaron Francis

Yep, totally

42:32

Alexander Lichter

... Starkist sneaker comment is, is all the way to the top. And still, I feel like I, I agree, in a lot of subreddits that's the case. Uh, once again, this feels like an exception in the Vue Reddit, at least. I've-

42:42

Aaron Francis

Mm-hmm

42:42

Alexander Lichter

... as I said, I've seen quite some threads there, be it about, "Oh, how many people still use Options API? That's so crazy," or where someone said, "Oh, yeah, Vue 4 should fully remove the Options API." Just that, a few things, but this is... So I- I'll tell you, this is not a daily thing there, and usually people are quite kind in terms of answering or, like, giving feedback. So maybe in the future you could-

43:03

Aaron Francis

Yeah

43:03

Alexander Lichter

... could come back and I hope people-

43:05

Aaron Francis

Yeah. Maybe, you know, maybe after the, the library's fully out and people can play with it and realize that it's not like, you know, PHP templating of, like, from the days of yore, maybe then it'll, it'll turn a little bit. But I think what's really gonna, if anything, what's really gonna turn it is people start to like it. They just-

43:25

Alexander Lichter

Yeah

43:25

Aaron Francis

... are like, "I don't know if this is, like, technically pure, but boy, am I fast and productive and making great apps." That's-

43:32

Alexander Lichter

That's what matters

43:32

Aaron Francis

... the only thing that's gonna... That's-

43:33

Alexander Lichter

Mm-hmm

43:34

Aaron Francis

... the only thing that's gonna win people over.

43:36

Alexander Lichter

Yeah. But I also think, like, with that comes, okay, content, people, other people sharing their, their thoughts on it-

43:41

Aaron Francis

Sure. Mm-hmm

43:41

Alexander Lichter

... and that also snowballs in a way. So I, I fully agree. And I really think what you mentioned earlier on, like, the whole part of, yeah, things are usually React first, and here we have something that's Vue first, and then it's even more sad- ... that people react like, "Oh, yeah."

43:55

Aaron Francis

I know.

43:56

Michael Thiessen

Yeah.

43:56

Alexander Lichter

"What, what the heck?"

43:57

Aaron Francis

I know.

43:57

Alexander Lichter

So I feel that. I feel that every time, like, we get something to Vue ecosystem or, like, something that's related to the Vue ecosystem, like, that's amazing, great, and some people might port it over whatsoever. But usually-

44:07

Aaron Francis

Uh-huh

44:07

Alexander Lichter

... of course, with React being sadly the dominant framework, sa- sadly from my position personally-

44:13

Aaron Francis

Mine too

44:13

Alexander Lichter

... um, then it's like, okay, we port things over, like, I don't know, ShadCN or Radix-

44:17

Aaron Francis

Mm-hmm

44:17

Alexander Lichter

... or whatnot.

44:18

Aaron Francis

Mm-hmm.

44:19

Alexander Lichter

And it's great that this is also happening. It takes people who do that work, and that's amazing, and sometimes that also turns into something own. But of course, y- people are usually happiest, like, "Hey, this is, like, first-class citizen. This comes from-

44:32

Aaron Francis

Mm-hmm. Mm-hmm

44:32

Alexander Lichter

... from that ecosystem." So also on, on that note, thank you so much for, for bringing that out, right?

44:38

Aaron Francis

Yeah, of course.

44:39

Alexander Lichter

That's-

44:39

Michael Thiessen

Yeah.

44:39

Alexander Lichter

I think it's, it's really amazing.

44:41

Aaron Francis

Yeah. Thanks. I... Like I said, I started with Vue back in the 1.0 days when Taylor Otwell, creator of Laravel, was like, "Hey, Vue's kinda cool."

44:50

Alexander Lichter

A legendary tweet.

44:50

Aaron Francis

"Let's, let's..." Yeah. "Let's use Vue." And I, I've been using it ever since. And actually back in, like, I think it was, like, 2016 or something, I had a, I had a Vue project that was somewhat similar to this, but it was all based around, you know, we used the active record pattern. Um, we used Eloquent.

45:06

Alexander Lichter

Yeah.

45:06

Aaron Francis

And it was all based around, like, sending rich models to the front end. And so it attached... It was kinda the same thing, frankly, but it attached, like, model methods to your Vue, like, your Vue objects. And even back in 2016, I was thinking, like, "Man, how do I combine Vue and Laravel even more?" Um- ... and so I've just, like, I've been around Vue.

45:28

Vue makes sense to my brain. I like Vue a lot. Don't tell the subreddit, but I like Options API. I think it's great. It just makes sense to me. I think one of the big distinctions on options and composition is, are you historically a back-end or a front-end developer? I think that's, like, where a lot of the lines fall down, is like, as a historically back-end developer, that structure-

45:50

Alexander Lichter

Yeah

45:50

Aaron Francis

... just makes a lot of sense to me. And I've seen Evan's, like, image of, like, all the colored blocks and they're all split up-

45:56

Alexander Lichter

Yes. Yeah

45:56

Aaron Francis

... and then with the setup they're all together, and I'm like, "That also makes sense to me." It's just, like, a preference thing. So yeah.

46:02

Alexander Lichter

Mm-hmm.

46:02

Aaron Francis

I've been around Vue. I love Vue. I love what Evan and team are doing with it. I hope whatever's new, Void zero, doesn't, you know, distract him from keeping Vue going, because Vue is, Vue is my favorite front-end framework by far.

46:15

Alexander Lichter

A lot of things dropped here and yeah, that's, that's I think a, a lot him to review there. Amazing.

46:21

Aaron Francis

Mm-hmm.

46:23

Michael Thiessen

So your vision for Fusion, you know, you're... It'll have been released by the time this podcast comes out.

46:29

Aaron Francis

Mm-hmm.

46:30

Michael Thiessen

Are you, like, at the point where, where you've basically done what you wanted to do with this? Or do you have, like, plans and plans for, for the future of this thing? Like, where do you see this going? Are there-

46:43

Aaron Francis

Yeah

46:43

Michael Thiessen

... other areas where you think you can simplify things and make it easier and-

46:46

Aaron Francis

Totally. Yeah. So I do have, I do have a few big things on the roadmap. There, there's a whole, um, already forming a, a community of people that are trying to get it into React, and I'm super grateful for them, and I think that will be important for the story. I don't know React. I've never written React in my life, and so I'm gonna rely on community a lot for that. I think the thing that I am most interested in, the couple of things coming up here, one would be, um, shared types across the front and back end.

47:15

And so-

47:17

Michael Thiessen

Mm-hmm

47:17

Aaron Francis

... one thing that is already possible, and I have already done it, but it's not good enough to, like, um, say that it's done, and so I've, I've pulled it out. But one thing that is already possible is because I'm taking all of your PHP code and walking that tree, I know either by your, um, PHP type declaration, which we have pretty robust type support in PHP, I either know by the fact that you declared it a certain type, or we also have type annotations where you can annotate and say, like...

47:47

It's kinda like JSDoc, honestly.

47:48

Michael Thiessen

Mm-hmm.

47:48

Aaron Francis

And say, like, "This is the type. Please trust me." I can parse both of those, and because I'm writing a shim file for every single component, I can translate those types into a JavaScript type. And so I actually have... I, I found somebody through the power of the internet that's on the Vue Core, like, language team or whatever.

48:10

They helped write a plugin, which I've not implemented yet, but they've written a plugin wherein I can augment the TypeScript or definition of the Vue single file component, such that when you start to type one of these magic variables that was defined in PHP, your editor knows exactly what you're talking about. So you get, you know, type completion, you get the dot, and then it pops down all the other methods.

48:32

Like, you get everything. And so that's a big story. I think if this is going to have any legs in the JavaScript community, it needs to have some level of either type safety or type hinting or type inference or something like that. And even I as a historically PHP developer that doesn't rely on strict types, when I'm typing in my, you know, view template and I'm getting auto-complete for these variables, it's like, yeah, I want that.

48:58

Like, of course I want that. So that's big one. Um, and is technically totally feasible. The other... I think the other two that I, that I really want, one would be right now everything is defined at the page level. So, um, we have this concept of, like, pages that map to routes, right? And the page is just a, it's just a view component, but it's, it is a page.

49:22

And then you've got all your other components, you know, podcast row, podcast favorite button, all of that stuff. But the podcast page is where you can write PHP. I think it would be nice if every component could write some subset of PHP. Not probably, not, um, sending data down, because the data would probably still need to come down from the page as props to the sub-components.

49:46

But if every component could define API endpoints where it does a thing, um, without having to emit out to the page and then go out to the PHP and then come back and down, I think being able to write a PHP block for a view component that is not a page would be very, very interesting. And then finally, the thing I think, um, that brings me all the way back to 2016 is having a rich fusion resource.

50:13

And so, like, in Laravel we've got eloquent models. That's our active record implementation. There is a thin layer on top of that that can be used to translate between the eloquent model and then HTTP response, and that is called a resource. So you can have, like, a podcast model, and then you can have a podcast resource which says, like, "Don't show the updated timestamps, and in fact, let's change the, uh, auto-incrementing ID into a nano ID so we don't expose our IDs," or whatever, right?

50:42

And that resource handles the translation to, like, what is your API response. I think having a fusion resource where you can say, like, "Here's the podcast model. Here's the fusion resource which defines what state or, like, what is the representation of the state, but also what are some methods," right? So maybe you want to, in this fusion resource, you want to have, like, you know, favorite podcasts, you know, listen later, whatever, delete.

51:08

And you can send that out to Fusion, and then in your view components you can say, like, podcasts.delete, and it, like, executes an HTTP action because it was sent out as a fusion resource. And so that's still a little murky. It's, uh, that's further off in the distance, and so it's not totally clear yet. But I think having the ability to, one, define how the state is represented for a model, and two, define some behavior for a model specifically is a little bit different than defining it at the component level because then anywhere

51:38

you send a podcast, you're getting the same kind of, like, rich representation of state and behavior.

51:45

Alexander Lichter

Super interesting. I, I think you already mentioned something that is also on, on the list for sure, the whole, uh, type safety part. Uh, do you remember who, who helped you on... Who worked, like, on the, I guess, like, Volar or View, View extension or something?

51:57

Aaron Francis

I don't. I, I'm gonna open Discord right now.

52:00

Alexander Lichter

Yeah.

52:00

Aaron Francis

But, um, it's funny because it's somebody with, like, an anime avatar.

52:05

Alexander Lichter

Mm-hmm.

52:06

Aaron Francis

And somebody that, like, I don't know. I have no idea who this person is. And the way that I paid this person, so this is, like, paid work of course. You know, I'm like, "Hey, I need help. I'm willing to pay." Um, the way that I paid this person was I sponsored somebody named Jonathan, I think, um-

52:21

Alexander Lichter

Johnson probably

52:21

Aaron Francis

... for, for... Johnson, yes.

52:23

Alexander Lichter

Yeah.

52:23

Aaron Francis

I sponsored that person for $400, and then presumably they sent the money to this other person, 'cause the, the original person was like, "I can't receive money where I am." And I was like-

52:34

Alexander Lichter

Ah, okay

52:35

Aaron Francis

... "Okay. Well, how, how do I pay you?" KazariEX is the name.

52:39

Alexander Lichter

Ah, yeah, Kazari. Yeah. He contributes a lot to, like, the, the View extension, so, uh-

52:43

Aaron Francis

Yeah, there you go

52:44

Alexander Lichter

... big shout-out. Also, like, lots of Volar.

52:46

Aaron Francis

Yeah. You know, I originally-

52:48

Alexander Lichter

Mm

52:48

Aaron Francis

... um, reached out to, um, Next guy, Daniel, right? What's, what's his last name?

52:52

Alexander Lichter

Yeah, Daniel Rome. Yeah. Also-

52:53

Aaron Francis

Yeah, Daniel

52:54

Alexander Lichter

... friend of the show

52:54

Aaron Francis

Great guy. Super, super nice guy. Love him to death. Reached out to him, and then somebody turned me onto Johnson, and I DM'd Johnson, and then Johnson was like, "I can't do it. Why don't you talk to this person?" It looks like their real name might be Memori Maburashi, um, but their, their handle is KazariEX.

53:13

Alexander Lichter

Yeah.

53:13

Aaron Francis

And this person just came out of nowhere with an anime avatar, someone I've never met, and I paid them US dollars to produce a thing, and it's just like the power of the internet. It's amazing.

53:22

Alexander Lichter

It certainly is. Yeah, I know, like, Kazari made some really, really good contributions. I also don't know their, their real name, but, uh, that, that person is super involved.

53:29

Aaron Francis

Yes. Super smart too. They had it done. I thought like, "Oh, I don't know if this is possible." And they had it done in like, I don't know, six, eight hours or something.

53:38

Alexander Lichter

Wow.

53:38

Aaron Francis

And yeah, it was crazy. And they gave me a repo, and I still need to integrate it, but the, the video they sent me showed them clicking on a variable in the view template, and the cursor pops up to the PHP block where that variable is defined.

53:50

Alexander Lichter

Ooh, that's so nice.

53:50

Aaron Francis

And I was like, "Holy crap, this is amazing." So they did some amazing work.

53:57

Alexander Lichter

Sweet. And I remember, like, Evan was also commenting or, like, tw- tweeting as like, "Hey, is everything works regarding, like, IntelliSense, uh, with-"

54:04

Aaron Francis

Yep

54:04

Alexander Lichter

... "like, PHP and the block there?"

54:06

Aaron Francis

Mm-hmm.

54:06

Alexander Lichter

That also, like, brought me up like, okay, how does the tooling support look there?

54:10

Aaron Francis

Yes. So tooling support, that's a great question. So right now the editor that I use is, uh, JetBrains editor. It's called PhpStorm. And in PhpStorm you can do, like, a language injection. So you can, like, say, whenever you see this XML tag, which in our case is just PHP, inject the language PHP. And so- Right out of the gate with nobody's help, like no JetBrains help, we get syntax highlighting, a little bit of auto-complete.

54:36

But the language injection, it's almost like you're writing a PHP script. It doesn't recognize the broader context-

54:43

Alexander Lichter

Yeah

54:43

Aaron Francis

... of like import these classes, auto-complete this import, that sort of stuff. And so I am currently in an email communication with the JetBrains team to figure out how do we bring more robust support to like a PHP tag, so that it is aware of all of the composer dependencies that are able to be imported and that s- type of stuff.

55:04

And then on VS Code, I don't know. We've got a lot of people, you know, d- in... I've got a Slack going. We've got a lot of people that use VS Code, and this one guy, Miguel, has already written some support for like PHP inside of a tagged template literal for React. And so like there's definitely some tooling work to be done, but I think it will come relatively quickly.

55:25

Because you're writing like honest to goodness PHP, you're not like writing a new language, it's just a matter of saying, "Hey, please recognize this block as PHP."

55:34

Alexander Lichter

Mm-hmm.

55:34

Aaron Francis

Not like, "Here are all the rules for my new language that you now have to support." Like I imagine that's what probably Svelte went through, which is like, "We're inventing new syntax. Like please support it." We don't have to go that far, 'cause it's, it is pure Vue and pure PHP, just in places you wouldn't normally expect. And so I'm hoping it will be quick.

55:54

Alexander Lichter

Yeah, I guess also that's like you could even go a bit further of like, okay, you can write PHP there, and if you need some like Laravel specific, I don't know, auto-imported things, I know if there's a thing like, I don't know, a DD-

56:04

Aaron Francis

Mm-hmm

56:04

Alexander Lichter

... or something.

56:05

Aaron Francis

Mm-hmm. Mm-hmm.

56:06

Alexander Lichter

Um, then probably like if there's... I don't know how the state of Laravel VS Code extension is, but if that's already available-

56:12

Aaron Francis

Mm-hmm

56:12

Alexander Lichter

... um, yeah, it's just-

56:12

Aaron Francis

Totally

56:13

Alexander Lichter

... like plugging that in the right spot. And also, uh, the framework, like framework that Johnson wrote, it's called Volar. Uh, that's powering-

56:20

Aaron Francis

Mm-hmm

56:20

Alexander Lichter

... for example, the Vue extension and also like MDX-

56:22

Aaron Francis

Mm-hmm

56:23

Alexander Lichter

... support and whatnot in, in Astro and all that. So that could maybe also be of help here for doing like more than just saying, "Okay, here's the PHP tag. I recognize PHP and have-"

56:31

Aaron Francis

Right

56:31

Alexander Lichter

... like auto-completion, but even going beyond it. So I'm really curious where, where that way is going with-

56:36

Aaron Francis

These Volar people, these language tooling people, they are on another level. It is... I've looked. The, I think Johnson was like, "Why don't you go look at Volar?" And I looked and m- my eyes just... I like-

56:46

Alexander Lichter

Yeah

56:47

Aaron Francis

... what is going on here? They're so smart.

56:50

Alexander Lichter

It's insane, and I really like... I, I love to highlight that fact that Volar... So that was originally just like the Vue extension, and then Johnson realized-

56:58

Aaron Francis

Mm-hmm

56:59

Alexander Lichter

... hey, this could work for, let's say, Angular components or Svelte components-

57:03

Aaron Francis

Mm

57:03

Alexander Lichter

... or, or anything out there, so why not make it more general? And that's how Volar was born. So like going the extra mile, like, I don't know, Vue did with Vite, or also like the whole-

57:12

Aaron Francis

Mm-hmm

57:13

Alexander Lichter

... like all the UnJS things. So basically moving something that works for a certain community a step further to improve the whole like BAP ecosystem. This is so lovely. Now even being used-

57:23

Aaron Francis

Mm-hmm

57:23

Alexander Lichter

... for communicating with, with Laravel and Vue hopefully. It's, it's always great to see.

57:27

Aaron Francis

I know. I know.

57:28

Michael Thiessen

So I've been thinking about, as, as you've been describing this, I've been thinking, well, why not do this with Nuxt? Like Nuxt is a whole different... Like we're writing-

57:35

Alexander Lichter

Mm-hmm

57:35

Michael Thiessen

... JavaScript on the back end, so why not also have this with Nuxt? And I ended up finding there's a, some project from about two years ago, a year and a half ago, called Server Block Nuxt, which is a similar kind of thing, but you're actually like writing the HTTP handlers-

57:53

Aaron Francis

Mm

57:53

Michael Thiessen

... like in your single file component. So it's not quite as sugary, um-

57:58

Aaron Francis

Yeah

57:58

Michael Thiessen

... but it would be, that would be very interesting to, to see how, how far you could take that with, with Nuxt and see like can you-

58:05

Aaron Francis

Yeah. So-

58:05

Michael Thiessen

Can you also do something similar with it, with the Nuxt, Nuxt framework, yeah.

58:09

Aaron Francis

Yeah. So I will rely on, uh, you here, because I don't know very much about Nuxt, and so I'll ask you a few questions. One is, um, so, so with Nuxt you have this back end ability, right?

58:19

Michael Thiessen

Correct.

58:19

Aaron Francis

You've got this back end place where you can write code. So somebody I think on Twitter was like, "Hey, why don't you bring Fusion to Nuxt?" And out of sheer ignorance, I had no answer. Because my thought was, with Nuxt you have your, Vue front end and your, you know, JavaScript back end, and, you know, you combine the two with Nuxt. But then once you get onto the back end, I know that some people use Nuxt with Laravel.

58:44

So is it like the front end makes the API request to whatever this back end handler is, and then this back end handler in JavaScript makes an API request over to a Laravel back end? And so that was the thing that I was like trying to figure out was that feels like too many steps to me to have two back ends at play. But again, not something I'm super familiar with.

59:06

Alexander Lichter

Yeah. So the good part is that, let's say, you can write your whole application, of course like full stack in Nuxt, say, "Okay, I have my, my JavaScript, TypeScript back end and do whatever I want there."

59:15

Aaron Francis

Mm-hmm. Mm-hmm.

59:15

Alexander Lichter

But nothing stops you, similar to a Vue SPA, to say, "Okay, I have my Nuxt application, no matter if it's server-side rendered or not," and that just does API requests to any kind of API. It can be Django, Laravel, whatnot, JavaScript. So on, on that level, that would work. And you don't really have to integrate much with any kind of like extra back end, so to say.

59:35

Aaron Francis

Mm-hmm.

59:35

Alexander Lichter

So probably you could do the same transforms. You just say, "Okay, where is basically my, my Laravel back end so I can..." I don't know. Let's say you have a monorepo. So these two projects, Git repository-

59:46

Aaron Francis

Mm-hmm

59:46

Alexander Lichter

... all together, and then say, "Okay, yeah, I do this, this build step. Oh, here is my Laravel back end. Just move it there and write it there." So I don't see why that wouldn't necessarily work. I think the trickier part is more like the whole DevOps thing of like, okay, execute a deploy together. But all in all, I think that's, that would be possible because-

1:00:05

Aaron Francis

Interesting

1:00:05

Alexander Lichter

... I, I see the point that you're like, okay, we have this like own, let's say, server engine called Nitro, which you can also use standalone. It's a bit like Express.js, so like very barebone, but has a lot of integrations. Nevertheless, you can of course write your back end there, as I mentioned, but you don't have to use it. So you can just say, "I do an API call. It's all fine." And you can still like integrate a lot of things thanks to like all the hooks that Nuxt offers.

1:00:30

Yeah. You can integrate like a Vite plugin very easily, or you can even say, "Okay, I, I want to customize things on my own." So that's definitely something that might be worth exploring.

1:00:40

Aaron Francis

Hmm. Okay. Yeah. If it works, I'm all for it. I think it would be very interesting to try to figure out how to make that all happen. This is another, like we talked about at the beginning, I'm not qualified. Like, there are so many things that I just don't know, and so, like, this is very helpful to understand that life cycle. It's very helpful to have React people in the Slack to, like, tell me what React is and how it works.

1:01:03

And like-

1:01:04

Alexander Lichter

Definitely

1:01:04

Aaron Francis

... I think that's another fear that people have is like, I have to know everything. Listen, y'all, I know very little. I know, I know so little. Um, and so thank you for explaining how that, how that could potentially work.

1:01:16

Alexander Lichter

No problem at all. I mean, in the end, how would you know all of it? You didn't try all the technologies, and even then you're not an expert in all of these, so-

1:01:23

Aaron Francis

Exactly, yes

1:01:23

Alexander Lichter

... it, it, it's-- I think it's also so key to say, "Okay, here is a knowledge gap," and that can be just on purpose. Like, "Oh, no, I, I don't write React every day," or like, "I, I never did." So I-

1:01:34

Aaron Francis

Mm-hmm

1:01:34

Alexander Lichter

... find people who are interested in saying, "Hey, we can work together to make that happen. Here is what the mental model is. How can that fit?" And-

1:01:42

Aaron Francis

Mm-hmm

1:01:42

Alexander Lichter

... like the whole collaboration part, I mean, that's also how frameworks like especially Vue in the end works out. Of course, like Evan put a lot of effort into that, but there's so many core team members and of-

1:01:52

Aaron Francis

Yeah

1:01:52

Alexander Lichter

... course also like then the whole, like, uh, tooling part with, with Roller, as you-

1:01:56

Aaron Francis

Mm-hmm

1:01:56

Alexander Lichter

... mentioned as well. People working on Vapor Mode right now, which is also super interesting, and in the end it's all a big collaboration. While, for example, I know if you're a Vue user, you n- not necessarily are good at writing a framework. So like also getting that-

1:02:09

Aaron Francis

Right. Totally

1:02:10

Alexander Lichter

... you, you get in touch with people and that's-

1:02:12

Aaron Francis

Yep

1:02:12

Alexander Lichter

... that's so key. Fully agree.

1:02:13

Aaron Francis

Yeah. Michael, I don't know, I don't know if you get this a lot, but I get a lot of, because I make videos, people are like, "Hey, why don't you compare Laravel and Phoenix?" And I'm like, " 'Cause I've never used Phoenix." Like I-

1:02:24

Michael Thiessen

Yeah

1:02:24

Aaron Francis

... I can't. I would-- it would be dishonest. Do you get that a lot?

1:02:28

Michael Thiessen

Yeah, or sometimes I ask for feedback on like, "Oh, what should I, what should I do with, uh, mastering Nuxt?"

1:02:35

Aaron Francis

Mm-hmm.

1:02:35

Michael Thiessen

And then they, they give me some extremely specific like- ... "Oh, show how to use this UI library that I've never heard of." "Also to make like, you know, a, an app for a bowling alley-"

1:02:49

Aaron Francis

Yes

1:02:49

Michael Thiessen

... "so they can do this." And it's like, I mean, I've been bowling before, but I don't know what this other thing is.

1:02:56

Aaron Francis

Yep. Don't know the rules of the game, never used the library.

1:02:59

Michael Thiessen

Yeah.

1:02:59

Aaron Francis

What do you, like, what do you want me to say?

1:03:01

Michael Thiessen

Yeah.

1:03:02

Alexander Lichter

I think also like this is, this is so common that a lot of people also just try to do it. Like, a lot of people are like, "Okay, I wanna do everything." Like, "Okay, I will compare all of this together." And then you have the problem that, well, how do you differentiate between is this actual someone who has like, I don't know-

1:03:21

Aaron Francis

Yes

1:03:21

Alexander Lichter

... a profound experience in both to compare that? So, and-

1:03:24

Aaron Francis

Yep

1:03:24

Alexander Lichter

... this is super tricky. Like also as someone who's doing videos every week, it's like I try to be really clear with like, "Okay, look," um, or like on, on one of my streams actually it was like someone talking about UI libraries and-

1:03:36

Aaron Francis

Mm-hmm

1:03:36

Alexander Lichter

... how, how this is performance-wise worse versus that, and if I could have a look, like I am not contributing to any of these libraries, I can't tell you much. I can look through the-

1:03:44

Aaron Francis

Mm

1:03:44

Alexander Lichter

... GitHub issues and tell you my opinion of the discussion, but that's all. So like-

1:03:50

Aaron Francis

Mm-hmm

1:03:50

Alexander Lichter

... in a way it's also like having the courage, but it's just being there to say, "Hey, I don't know." This is-

1:03:55

Aaron Francis

Yes

1:03:55

Alexander Lichter

... so important. I am very happy that-

1:03:57

Aaron Francis

Yes

1:03:57

Alexander Lichter

... like I learned it after time. I was also like a little bit of a know-it-all and, "Oh, yeah, this and that."

1:04:01

Aaron Francis

Mm-hmm.

1:04:01

Alexander Lichter

But in some ways, like the powerful words of "I don't know," or sometimes it's just a, a no, they're so good and they're so important.

1:04:07

Aaron Francis

You are absolutely correct that it takes a lot of courage to say, "I don't know," because everyone wants you to give like a definitive answer, and everyone like, you know, you know, we all know that the more definitive, controversial answers you give, the better the engagement is. And so it takes a lot of courage to be like, "I'm sorry, I like, I can't offer an opinion on that.

1:04:29

I've, I've never used that," or, "I've never shipped that to production," or, "I don't have a deep enough knowledge." It's like-

1:04:34

Alexander Lichter

Mm-hmm

1:04:34

Aaron Francis

... "Sorry, guys, I can't help you there." I think that is the right thing to do if it is the true thing, but it's still like, ugh, I kinda wanna just-

1:04:41

Alexander Lichter

Yeah

1:04:41

Aaron Francis

... you know, start a, you know, start a storm of engagement, but that's not the right thing to do.

1:04:46

Alexander Lichter

It's even beyond tech, right? It's, in a lot of things, like, I don't know, a classic thing is, uh, uh, sports for example. Everybody's like a sports expert now and give their opinion.

1:04:55

Aaron Francis

Mm-hmm.

1:04:55

Alexander Lichter

Where it's like, yeah, I'm, I'm also like if someone asks me, I'm like, "Okay, I'm happy to share my thoughts, but look, I'm not there to judge these because I don't know. I, I didn't, I don't know-

1:05:04

Aaron Francis

Yep

1:05:04

Alexander Lichter

... study it for long enough. I didn't, uh, research enough." Or just say, "Hey, I'm happy to, to talk about it. I... and for myself, next time we have a conversation, let's talk about it," or-

1:05:11

Aaron Francis

Mm-hmm

1:05:11

Alexander Lichter

... I, I write a post later on. That's always better than like, "Oh, here's some like dangerous, like half-cooked, half-baked knowledge that you bring into that," and then people, I don't know, quote that, use that further, and it's always tricky. But, um, yeah, that's definitely a skill that a lot of people... If you feel like, oh, you don't say no often enough, or I don't know, that's definitely something to train. That's, uh, surely one of-

1:05:32

Aaron Francis

One of, one of my favorite, one of my favorite ways out of that is to just say, "I don't know enough to say." Like-

1:05:37

Alexander Lichter

Yep

1:05:37

Aaron Francis

... "I, I, I don't have enough information. I can't, I can't give you an answer."

1:05:41

Alexander Lichter

That's also good, or like, "I don't have an opinion on that."

1:05:43

Aaron Francis

Mm-hmm. Oh, that's the best. Eh, no opinion.

1:05:46

Alexander Lichter

Yeah.

1:05:46

Aaron Francis

It's like, really? You don't have to have an opinion on everything?

1:05:50

Alexander Lichter

Surprise.

1:05:50

Aaron Francis

You sure don't. You sure don't.

1:05:53

Alexander Lichter

There's one more thing. We-- I think we get a kinda, kinda bit technical once again on Fusion-

1:05:57

Aaron Francis

Okay. Please

1:05:58

Alexander Lichter

... because that, that came up when you said, "Okay, you have, you have to do these PHP calls under the hood." And-

1:06:03

Aaron Francis

Uh-huh

1:06:03

Alexander Lichter

... especially in the front end, we have a lot of, of course, state management to do. So-

1:06:07

Aaron Francis

Uh-huh

1:06:07

Alexander Lichter

... as these are all API calls, how do you handle things like errors, the status of the request, and then-

1:06:14

Aaron Francis

Mm

1:06:14

Alexander Lichter

... from that even further of like parallelization possibly, can we do like certain-

1:06:19

Aaron Francis

Mm-hmm

1:06:19

Alexander Lichter

... things together, avoiding waterfalls, so like all these more, let's say, technical, tricky things, well, I don't know, things like TanStack Query or like Pina Colada, which just work on Progress exist to deal with like server states, like fetching these things.

1:06:32

Aaron Francis

Hmm. I've not heard of Piña Colada. That's a great name. I do like piña, but I've not heard of Piña Colada. Um, so kind of the, the life cycle somewhat handles a lot of that. So, like, when you first load/podcasts or whatever, the data is going to come down with the response. And so, like, all of your, you know, the list of podcasts or whatever state you have declared is going to come down with that first response as, like, a JSON blob or bundle or whatever.

1:07:00

If it's like a, um, I'm-- I've opened a new tab and navigated to the site, it all comes down in, like, embedded in the page. And if it's like a, um, I click on a link, an Inertia link, the, um, response that comes back from the server is the JSON state decorated with a little bit of like, "Hey, here's the component they're loading." And so all of the state is going to be there.

1:07:23

Now, when it comes to, like, I wanna execute an action, um, so I wanna, like, favorite the podcast or whatever. When Fusion writes, you know, quote, "writes" the functions into your, uh, view component, um, it does it in a way that is, um, that is slightly decorated. And so let's say you have... You've, on the back end, you've exposed a method called Favorite.

1:07:47

So then in your front end, you have this function, this JavaScript function called Favorite. That function is basically just a thin HTTP, you know, it's just kind of a shim around a common HTTP request, and we'll, like, gather up the correct data, send it off, get it back. Inside of, like, this broader... So, like, um, Favorite and Unfavorite are basically just decorators around this big function call.

1:08:10

And in the function call, it does a few things. One is it is actually a proxy, and so this function, Favorite, if you, like, look really closely, you'll see that it is a proxy. And what this allows me to do is not only have, like, Favorite open close parentheses execute the action, you can also say, like, favorite.busy, and that will tell you if that function is in progress or not.

1:08:37

Alexander Lichter

Oh, okay.

1:08:37

Aaron Francis

Right? Because... Yeah, so every single Fusion function comes with the, with its own reactive state that is actually on that same named variable. So you could do Favorite open close parentheses. That will fire the request. You can do favorite dot, I forget what it's called, in progress, and that'll say true or false, and it is a reactive. And so you can just throw that in your template, and it will, you know, flicker the, like, loading indicator or whatever.

1:09:02

It comes with succeeded, failed, and finished, so you can see all of those. But it also comes with recently succeeded, recently failed, and recently finished. And what that allows you to do is, um, have, like, a flash message that says, like, "Success," and then it goes away. And so instead of, like, writing your own set timeout for, "Hey, this thing just finished. Let's turn success on to true, and three seconds later turn it back to false." Like, we'll handle that.

1:09:27

We handle that for recently succeeded, recently failed, and recently finished. We also have, because we are a Laravel, you know, tool, we know what a 422 response back from Laravel looks like, right? And so what we can do is we can pull the errors off of it, so you get, like, an error bag that says, like, "Here are all the fields, and here are all the messages." And also Laravel provides a top-level message.

1:09:52

So if you, like, wanna traverse the whole errors object and put stuff everywhere, you can. If you just wanna show a single message, Laravel gives you, I think it's probably, like, the first error, it gives you the, like, the readable message.

1:10:03

Alexander Lichter

Yeah.

1:10:03

Aaron Francis

And so in this example, you have favorite.errors, and that's just, like, a JSON object of all the errors. You've got favorite.error message, and that's just, like, the human-readable message. And so all of these things are kind of, like, decorated around this HTTP request response. And so what we do is we send off the request, we get the response back.

1:10:24

We do a little bit of processing as, as Fusion, um, which would include, like, is it a 422, set this stuff, um, you know, change the state from in progress to not in progress, whatever. But we also, because we're in control of both sides, we can grab this response and see if there's any, like, Fusion state that needs to be updated, right?

1:10:45

So we can send the response back, get... or send a request, get the response, inspect the response and say, "Hey, did Fusion send me anything that needs to be updated? Forget, like, whatever the user's function returned for a second. Did they send me anything where I need to update some state? If so, let me update that state and then strip all of that out." And so then the, the, the response that you get in your view, you know, script tag or whatever is the response that you would expect from your PHP because we've taken away all of this meta information,

1:11:16

done some interesting things with it, like sync the query string perhaps.

1:11:19

Alexander Lichter

Mm-hmm.

1:11:20

Aaron Francis

Done some interesting things with it, and then we give you, like, the honest-to-goodness response that you would've been expecting, having processed everything out of it at that point.

1:11:29

Alexander Lichter

That was a lot. But I think that makes a lot of sense, and I, I, I really like how, let's say, nice and in sync, uh, the implementation. Of course, ba- because it's, like, Laravel and Vue together, it is the fly. Okay, we can go for the errors. It's not a problem. We know how the shape looks like. So in a way that it's focused on Laravel-

1:11:51

Aaron Francis

Mm-hmm

1:11:51

Alexander Lichter

... gives the benefit of, like, hey, we know-

1:11:52

Aaron Francis

Yes

1:11:52

Alexander Lichter

... we know exactly how things look like.

1:11:54

Aaron Francis

Yep.

1:11:54

Alexander Lichter

So I really like that benefit there. Plus also, as you said before, using the underlying power of Inertia to just say-

1:12:00

Aaron Francis

Mm-hmm

1:12:00

Alexander Lichter

... okay, here's the JSON. That's all good.

1:12:02

Aaron Francis

Mm-hmm.

1:12:02

Alexander Lichter

That's, that's super helpful.

1:12:04

Aaron Francis

Fusion is my interpretation of what Inertia would have been if it focused only on Laravel. And so Inertia had a different vision, which I think is a, a good and correct vision. It's just different. Inertia was like, "We can be all things to all people," and they successfully pulled that off.

1:12:20

Alexander Lichter

Yeah.

1:12:20

Aaron Francis

Like, Rails uses Inertia, React uses Inertia. Everybody can and does use Inertia. Fusion is my vision for what if Inertia was Laravel only, and we leaned fully into that? And this, this is, these are some of the good things that we get out of that, is we know what's gonna come back. We know exactly what's gonna come back, and we know how to route it on the back end.

1:12:44

So that's the kinda stuff that I'm excited about, is we're, we're living in, in one back-end world. And we can control it very strictly

1:12:53

Alexander Lichter

Though I also think the same would probably work with the same, let's say, blueprint in terms of the, let's say, idea behind it, right?

1:13:00

Aaron Francis

Mm-hmm.

1:13:00

Alexander Lichter

Okay. We have the build step. That could probably also work-

1:13:02

Aaron Francis

Mm-hmm

1:13:02

Alexander Lichter

... in like, I don't know, Phoenix, Ruby, for like-

1:13:04

Aaron Francis

Oh, yeah

1:13:05

Alexander Lichter

... Rails, Django. So the, the concept itself can be, let's say, copied. Um-

1:13:11

Aaron Francis

Yes, 100%.

1:13:12

Alexander Lichter

Of course, it has to be adapted to the frameworks then, but the same idea-

1:13:14

Aaron Francis

Mm-hmm

1:13:14

Alexander Lichter

... could then also work. So maybe even in the future, could you imagine that you also, let's say, at least open up the opportunity to people say, "Hey, there's a Fusion not for Laravel, but like a Fusion Django or similar?"

1:13:26

Aaron Francis

Oh, I would, I would love that. If, if you're out there listening and, um, thinking, "I wanna do this for Django," call me. I would love to help with that. I do think that this space is, is wide open. Like, if you're out there, and you're a Rails developer, and you're, like, looking to make a project or make a name for yourself, I think this space is wide open. Like, Inertia went very wide, and for going so wide, it went very far.

1:13:50

Alexander Lichter

Sure.

1:13:50

Aaron Francis

But I still think there's a lot of ground to cover in terms of, like, let's bring Rails together with React. There's just like, there's so much open space, and nobody, in my opinion, is tackling it yet.

1:14:04

Alexander Lichter

Yeah, so definitely call Aaron. The phone number is in

1:14:06

Aaron Francis

Yeah. Yeah. Call, call me. It's x.com/aarondfrancis.

1:14:12

Alexander Lichter

Easy. Easy peasy. No, I, I, I'm really curious how and if that will sh... I mean, not if, the if is clear, how that will shake up, um-

1:14:20

Aaron Francis

Mm-hmm

1:14:20

Alexander Lichter

... the, the front end space. Because in a way, also you have this pendulum of, like, server, client-

1:14:27

Aaron Francis

Yeah

1:14:27

Alexander Lichter

... back to server, but we're, we're, like, going close and closer together, and I reckon Fusion is really doing that. It, it fuses these two parts together.

1:14:34

Aaron Francis

Mm-hmm. Yeah, exactly.

1:14:35

Alexander Lichter

Love the na- the naming there as well, which is, like, on point, so.

1:14:38

Aaron Francis

I owe that to someone you might know, Josh Seery. He works at Laravel.

1:14:41

Alexander Lichter

Yes.

1:14:42

Aaron Francis

He's a big JavaScript guy. I was DM'ing him and Joe Tenenbaum, friend of the show. I was DM'ing both of them 'cause they have good taste, and Josh has a lot of JavaScript experience, and Joe's the Inertia guy. And I was like, "All right, here's some ideas. What do you think?" And they're like, "Yes, no, yes, no." And then I finally said, like, "I need a name. I don't have a name for this freaking thing." And Josh gave me, like, four names, and Fusion was one of them, and I was like, "Fusion is perfect." So thanks, Josh Seery.

1:15:04

Alexander Lichter

Shout out there, yes. I also love to have him on the show, so Josh, when you, when you're, you're reading, no, when you're listening to that, it's because you read the tweet mentioning you.

1:15:12

Aaron Francis

There you go.

1:15:12

Alexander Lichter

Come on. Come on. Yeah.

1:15:14

Aaron Francis

He's great. He would be great on the show. I like him a lot.

1:15:16

Alexander Lichter

100%. I... But, like, we had a panel recently, actually just the previous episode, we had an AI panel at Vue.js Nation. Then we also did a panel on, on Laravel and Vue together. Um-

1:15:25

Aaron Francis

Mm

1:15:25

Alexander Lichter

... so that was, that was really lovely to listen to.

1:15:28

Aaron Francis

Cool.

1:15:29

Alexander Lichter

I, I think we, we got some really good grounds covered there.

1:15:31

Aaron Francis

Mm-hmm.

1:15:32

Alexander Lichter

I wonder, maybe we could go into, like, a little bit in terms of Vue specifics, uh, so a bit-

1:15:37

Aaron Francis

Mm-hmm

1:15:37

Alexander Lichter

... further away from Fusion. So you, you mentioned, and we ask this a lot of guests here, you mentioned that you're a big fan of the Options API, not so much of the Composition API. Now-

1:15:45

Aaron Francis

Mm-hmm

1:15:46

Alexander Lichter

... you already explained briefly why you think that makes sense, and I really was interested in the take of, and I heard it before as well, that, like, people, especially coming from the back end, prefer the structure of the Options API, while-

1:15:56

Aaron Francis

Mm-hmm

1:15:57

Alexander Lichter

... people that are, like, I don't know, start maybe from another base, maybe even React or, like, okay, the-

1:16:02

Aaron Francis

Mm-hmm

1:16:02

Alexander Lichter

... the front end world are more of the, the Composition API fans. Why, why do you think is that?

1:16:07

Aaron Francis

Mm-hmm. I look at the Composition API, and it reads top to bottom, right? So you look at it, and you're like, "I'm gonna do some stuff and do some more stuff," and you just work your way all the way down, and then finally it's, like, done. And, like, you, this magic stuff gets exposed. No problem with magic stuff. I love magic stuff. But from my point of view, the traditionally back end developer typically likes to work in an object-oriented pattern, right?

1:16:33

And so unless you're, like, a functional programmer or, you know, whatever, but I think m- a lot of back end developers feel very at home in, like, a class structure, where you can say, like, uh, you know, "I'm gonna declare my class level properties at the top. Then I'm gonna write some public methods and then some protected methods, and then very rarely some private methods or whatever, and it kinda encapsulates all of this state and behavior, and I know where, like, to go look for stuff." And so I think back end developers looked at

1:17:03

the Options API and were like, "Oh, this maps, like, this maps relatively to kinda like a back end class." Like, you start at the top, you've got your data, and then you move down, you've got your lifecycle hooks, then your methods or maybe your computeds and then your methods and whatever. And that, to me, like, just slots into my brain super well.

1:17:24

Whereas the Composition API, I'm, like, looking at it and I'm like, "This feels like procedural PHP," where it's, like, old script PHP. Which is not to say-

1:17:35

Alexander Lichter

Mm

1:17:35

Aaron Francis

... that it's a bad format or it is an old JavaScript style, but it does remind me of an old PHP style. And so when I look at that, I think, "Boy, this is like writing PHP scripts in 2002, 2003, before we had, like, the enlightenment of object orientation." And I, I think that's a little bit of the dissonance is in PHP that is an old style.

1:17:59

In JavaScript, that's a perfectly modern and acceptable and maybe even preferred style. And so, like, this also happened to me when I observed from the outside React switch away from class-based components to this, like, this functional hooks. Like, you gotta have all these use, use, use, use, and it's like, that just doesn't make a lot of sense to my brain.

1:18:20

Alexander Lichter

Mm-hmm.

1:18:20

Aaron Francis

Which is not to say that it's wrong. It is to say that I don't like it. And so with the React hooks, don't like it, makes no sense to me. I have no idea what all these side effects are, what is going on. With the Vue composition, I'm very sensitive to Evan's great diagram of the colors becoming all close together.

1:18:39

Alexander Lichter

Yeah.

1:18:39

Aaron Francis

Like, you know, do all these things together. It just doesn't, like, click with my brain. And so I don't know if I'm speaking for all back end developers, but as a back end developer, that's how I view it

1:18:51

Michael Thiessen

I've never heard that take before, but it's a very interesting one that it's, that it's like, fits in with the back end mentality in a bit-

1:18:59

Aaron Francis

Mm-hmm

1:18:59

Michael Thiessen

... a bit more. Yeah.

1:19:00

Aaron Francis

Which is ho- honestly, I think a, a big reason when Taylor was like, "Hey, y'all, we use Vue now," everybody was like, "Sure, that makes sense." Like, yeah.

1:19:07

Michael Thiessen

Hmm. Okay.

1:19:08

Aaron Francis

It's kinda like a class on the front end. We've got some state, we've got some behavior, and that's great.

1:19:12

Alexander Lichter

It's interesting, like, yeah, the, it fits a bit more to OOP in terms of also, like, okay, you have things structured. You have, like, your, I dunno, class fields, let's say. I wonder if it's more about how people write code with the composition API. Because you said-

1:19:26

Aaron Francis

Maybe

1:19:26

Alexander Lichter

... the structure, and I think this is, this is a big part. I see this, um, almost day to day in projects where options API, at least people know where to put things, right?

1:19:35

Aaron Francis

Yes.

1:19:35

Alexander Lichter

Okay, I put in my data.

1:19:36

Aaron Francis

Totally.

1:19:36

Alexander Lichter

I put in my methods.

1:19:37

Aaron Francis

Totally.

1:19:38

Alexander Lichter

In composition API, the problem is people have to come up with the structure, right?

1:19:42

Aaron Francis

Yes.

1:19:42

Alexander Lichter

It's, it's like Wild West, because you can put things everywhere. You can have these... We talked about 5,000 lines com- uh, controllers. You can have 5,000 lines, like, components with script setup there, all just like, as you said-

1:19:52

Aaron Francis

Hmm

1:19:52

Alexander Lichter

... like, imperatively, procedurally, like, written down. And the problem there is that this, of course, is, is not really how the composition API was imagined. So i- it's really good you mentioned-

1:20:05

Aaron Francis

Yes, totally

1:20:05

Alexander Lichter

... you mentioned this, this wonderful, the chart with the, with the colored blocks we often, like... Re- I, I-

1:20:10

Aaron Francis

Mm-hmm

1:20:10

Alexander Lichter

... reference to it, like, in almost every workshop, and also on, on the show-

1:20:13

Aaron Francis

Mm-hmm

1:20:13

Alexander Lichter

... a few times. We'll also include it in the show notes as well. The fun part is people sometimes ask, "Yeah, this is, like, very pixelated, of course, because it's more about the big picture."

1:20:20

Aaron Francis

Right.

1:20:20

Alexander Lichter

"But how does the code look like?" And if you take a look at the code itself, then you have a Vue file from the Vue CLI, which is not used anymore, of, like, options composition API, and Evan rewrote that. And the interesting part is what he's doing is something that Michael and I commonly refer to as inline composables. So-

1:20:37

Aaron Francis

Hmm

1:20:37

Alexander Lichter

... instead of just writing these, like, I dunno, a couple of hundred lines or so, like, from top to bottom, you have functions. Like, you also write-

1:20:45

Aaron Francis

Mm-hmm

1:20:45

Alexander Lichter

... of course, functions like PHP or plain JavaScript or TypeScript, whatever.

1:20:48

Aaron Francis

Mm-hmm.

1:20:48

Alexander Lichter

And now we can say, okay, these you could just put in your methods and you're done, but then you still have, of course, have the problem of, like, okay, you have to go through the whole code to find the things. So instead-

1:20:58

Aaron Francis

Mm-hmm

1:20:58

Alexander Lichter

... you say, "I have this certain thing." You can imagine it being like a PHP class, or just in this case, it's a composable with the use in front. And I have everything-

1:21:06

Aaron Francis

Mm

1:21:06

Alexander Lichter

... related to, to one concern in there. Like, how can I get the, the current, uh, working directory or the network whatsoever?

1:21:12

Aaron Francis

Mm-hmm.

1:21:12

Alexander Lichter

So you execute that in there. Everything runs. There's, like, the, let's say, their own little cosmos in there, like it would be in a, in a PHP class, and you get something out there-

1:21:20

Aaron Francis

Yeah

1:21:20

Alexander Lichter

... that you either reuse or say, "Hey, use in template," or whatnot. And if you have, especially with bigger components, then structuring is not like, oh, damn it, I'm, like... It's just like code overflow everywhere. It's too much.

1:21:32

Aaron Francis

Right, right, right.

1:21:33

Alexander Lichter

It's really more like, okay, if I have really things that I can't spin up in other components because, like, orchestration, a lot of business logic, I can at least split them up in certain composables with their duties. I can put them extra files, but I don't have to. So in this way, at least, and especially in bigger components, it's more manageable. There still-

1:21:48

Aaron Francis

Mm-hmm

1:21:49

Alexander Lichter

... needs structure, obviously. And yes, like, we also had, for example, Natalia Terleuna from the core team who does a lot of documentation work, said also, like, yeah. She works at GitLab, and they have, of course, like, a ton of developers. Finding a structure-

1:22:03

Aaron Francis

Hmm

1:22:03

Alexander Lichter

... that works for all of them will be tricky, so they're also migrating composition API at some point and saying, "Yeah, options API, it, it's just easy. You know where to find things, no matter which skill level." While, like, someone who's, like, a, an expert programmer versus a junior would do, do things totally different, where to put things, where to structure things.

1:22:18

Aaron Francis

Totally.

1:22:18

Alexander Lichter

So there are definitely, like, let's say, advantages if you have a rather big skill difference in your team, or like, like rather small, for example. But at least with, let's say, applying the composition API in what it was meant to be or, like-

1:22:32

Aaron Francis

Mm-hmm

1:22:32

Alexander Lichter

... how it was thought, at least it can help a bit. But I still, I still get the point, for sure.

1:22:36

Aaron Francis

Yeah. I think the most compelling example in... It, it's in the, I think it's in the Vue docs talking about composables, is, like, the use Mouse or use Mouse-

1:22:45

Alexander Lichter

Yeah

1:22:45

Aaron Francis

... position or whatever that is. And that's very... Like, that resonates with me. You know, the example is basically, like, let's encapsulate a little bit of state and a little bit of reactivity, maybe some behavior, I don't remember, into this, like, use Mouse position or whatever. And then you can just consume it. And, like, boy, that speaks to my OOP heart, where it's like, let's encapsulate some stuff.

1:23:07

I love encapsulating.

1:23:08

Alexander Lichter

Exactly.

1:23:09

Aaron Francis

So that, that part makes total sense to me. Going back to how composition API was intended and how it is being expressed in the real world, this goes back to the I don't have an opinion. And so, like, one thing that I like about the options API is that it has opinions for me.

1:23:25

Alexander Lichter

That's true. Yeah.

1:23:25

Aaron Francis

And so I don't have to come up with or read or listen to or argue about what is the correct way to format my composition API. Like, what is the best practice? Those are great things for people to talk about. That is not something that I am interested in, in talking about, right?

1:23:44

Alexander Lichter

Sure.

1:23:44

Aaron Francis

And so I like the options API because it's like, it's kinda like the right down the middle. Like, is it the best? I don't know. Is it the worst? I don't think so.

1:23:53

Alexander Lichter

Definitely not.

1:23:54

Aaron Francis

But it works.

1:23:55

Alexander Lichter

Yeah.

1:23:55

Aaron Francis

And so that-

1:23:55

Alexander Lichter

Yeah

1:23:55

Aaron Francis

... that, that's another, like, that's another thing, and, and Evan, if you're listening, please don't ever get rid of it. But that's another thing where I'm like, this is just a total, like, religious, spiritual battle of I prefer this and you prefer that, and we're gonna fight. And it's like, you know what? Like, you made a very compelling argument just then for composition, and I'm still gonna use options because it's like-

1:24:19

Alexander Lichter

Yeah

1:24:19

Aaron Francis

... ah, it's a, it's lower mental overhead for somebody that is not a Vue-

1:24:24

Alexander Lichter

Yeah

1:24:24

Aaron Francis

... expert.

1:24:24

Alexander Lichter

That's a key part. Yeah, 100%. Like, it, if it resonates, if you, and that's also important, can be productive with it.

1:24:30

Aaron Francis

Mm-hmm.

1:24:31

Alexander Lichter

Like, if you, if you can achieve what you want in it, use it. And also on that note, luckily, we had Evan on the show a couple times, and he luckily uh, confirmed options API won't go anywhere, also not in Vue 4. So we're safe for a little bit.

1:24:44

Aaron Francis

Thank you, Evan. Thank you, Evan. Sorry, sorry to all the Redditors and the listeners who hate it.

1:24:48

Alexander Lichter

Act-

1:24:48

Aaron Francis

But thank you, Evan. I appreciate that.

1:24:50

Alexander Lichter

Actually, you would be surprised how many people on Reddit love the options API and say, "Hey, composition is horrible." You, you wouldn't believe it.

1:24:56

Aaron Francis

No.

1:24:56

Alexander Lichter

Yeah, yeah, yeah.

1:24:57

Aaron Francis

Really?

1:24:57

Alexander Lichter

It's, it's-

1:24:57

Aaron Francis

On Twitter, it's the exact opposite.

1:24:59

Alexander Lichter

Yeah. That's right. That's right.

1:25:02

Aaron Francis

How funny. Okay. Well, that's good. Maybe I will go back to Reddit.

1:25:04

Alexander Lichter

Yeah.

1:25:04

Aaron Francis

Who knows?

1:25:06

Alexander Lichter

I'll, I'll ping you in the next options versus composition- Post. So yeah, I really think also their Vue's options API was and still is a- an identity part o- of the whole framework, right? That's why a lot of-

1:25:21

Aaron Francis

Yeah

1:25:21

Alexander Lichter

... people picked it. Because not like-

1:25:22

Aaron Francis

Yeah

1:25:22

Alexander Lichter

... I, I don't know, I don't have a PhD in TypeScript to use it, or, like, for example, I know I have to understand all the patterns of Angular, but just like, okay.

1:25:29

Aaron Francis

Mm-hmm.

1:25:30

Alexander Lichter

It's pretty simple, small things. Yeah, data-

1:25:32

Aaron Francis

Yeah

1:25:32

Alexander Lichter

... props computed, all smooth.

1:25:35

Michael Thiessen

I think we talked about a lot of stuff. I have one, one last question for you that's completely non-technical, or maybe-

1:25:42

Alexander Lichter

Tell me

1:25:42

Michael Thiessen

... it is technical. I don't know, it depends on your answer to this. But, so I've got a 10-month-old daughter, and you have two sets of twins- ... if I'm correct. And so I'm, I'm curious, how do you get anything done?

1:25:56

Alexander Lichter

Yeah.

1:25:56

Michael Thiessen

'Cause it seems like you're, you're producing courses, you're-

1:26:00

Alexander Lichter

Yeah

1:26:00

Michael Thiessen

... creating the, the next, the next hot open source project. So-

1:26:04

Alexander Lichter

It's... Yeah. Also, so I do.

1:26:07

Michael Thiessen

We didn't even mention, uh, the, the podcast.

1:26:08

Alexander Lichter

Oh, th- that's true. Yeah.

1:26:10

Aaron Francis

Yeah, yeah.

1:26:10

Michael Thiessen

Mostly Technical.

1:26:11

Aaron Francis

Um, so a few things. One, yes, to set the stage, I have two sets of twins. One set is three and a half years old, boy, girl. One set is one y- year old, boy, girl. Um, so when-

1:26:23

Michael Thiessen

Okay

1:26:23

Aaron Francis

... the second set was born, we had four children that were two and a half and younger. And so those were tough days. Um, so m- many, many, many answers here. The first is it would be completely impossible if my wife was not a stay-at-home mom. So all credit truly goes to her because she, like you, you mentioned very kindly a lot of things that I'm doing.

1:26:46

She works, like, five times harder than I do. But she s- she stays at home with the kids. We also have, um... When the new set was almost here, we welcomed a young woman from Germany to come live with us, so we have an au pair. So we have somebody-

1:27:02

Michael Thiessen

Wow

1:27:02

Aaron Francis

... that lives with us full time because we talked to... We actually, weirdly, in our church, there is somebody else that has two sets of twins that are the same distance in age. They're a little bit older-

1:27:14

Alexander Lichter

Wow.

1:27:14

Aaron Francis

... but they're the same distance in age.

1:27:16

Alexander Lichter

Yeah.

1:27:16

Aaron Francis

And so we like, you know, we crawled to their feet and we're like, "Please tell us how to do this." Um, they're like, "Listen, it'll be fine." We went out to dinner and they're like, "You have to get help because you cannot get four children that need to be put in car seats, you cannot get them into the car or out of the car at Target. You, you just can't do that as one adult." And so-

1:27:38

Alexander Lichter

Mm-hmm, mm-hmm

1:27:38

Aaron Francis

... they very smartly turned us on to the au pair program, which is like a state, you know, a federal level program. And so this person came over, she lives with us, like we, you know, pay for her. She's basically like a, you know, the sister that's like 10 years younger than us. Just an absolutely amazing, um, wonderful helper.

1:28:00

She is incredibly good at her job. So that's another big thing. The other thing that I'm never shy about talking about is that I, I work a whole lot. And so, like, I don't ever wanna give off the impression that, like, life is easy breezy and, and if your life is not easy breezy, you're doing it wrong, because life is very difficult for me. It is very, very difficult.

1:28:21

There are a few things that I don't compromise on. Like, I always leave... This is my office, I always leave here in time to be home for bedtime with the kids. Like, it's just something I don't miss because I'm not gonna sacrifice, like, their childhood for my, whatever, open source dreams or whatever, right? And so, like, for example, last night, uh, or yesterday, I left here at 6:15, went home, played with the kids, put all the kids down, had dinner, and then after that, like, I got back on my computer.

1:28:51

And I don't... Like, it's not prescriptive because I don't think that, like-

1:28:54

Alexander Lichter

Mm-hmm

1:28:54

Aaron Francis

... that is, um, necessarily the best way to live forever, but this is a phase in my life right now.

1:29:01

Alexander Lichter

Yeah.

1:29:01

Aaron Francis

This is a phase. There are a lot of things I wanna do professionally, and there are things that I wanna do on the family front. And so I don't watch sports, I don't play video games, I rarely ever exercise. And so, like, I'm not a beacon of, like, having it all. I'm a beacon of, um, deciding what few things I want and then trying to optimize for that and eliminate the rest.

1:29:21

And at some point I would love to have, like, this carefree, easygoing, play video games, watch a bunch of new, you know, Severance or whatever, but that's just not the phase of life that I'm at. And so I've made certain decisions and also it is difficult. There's just no two ways about it. It is very difficult.

1:29:40

Michael Thiessen

All right. Thanks for being transparent about that. And, like, it's so easy to be online and to try and make it seem like everything is easy, and you're just breezing through and you're just like, you know, "Whatever, I just put together this project. I just put together this course-"

1:29:56

Aaron Francis

Nope

1:29:56

Michael Thiessen

"... and that was... You know, it's easy." But it's, it's hard work.

1:29:59

Aaron Francis

It's not.

1:29:59

Michael Thiessen

Yeah. Thank-

1:30:00

Aaron Francis

It is hard work.

1:30:00

Michael Thiessen

Yeah. Thanks for, for sharing that.

1:30:02

Aaron Francis

Yeah, you're welcome. And I, I want that to be clear. Uh, like I, I wrote a year-end review post, um-

1:30:06

Alexander Lichter

Just wanna mention it, actually. Yeah.

1:30:08

Aaron Francis

Yeah. I, I, I-

1:30:08

Alexander Lichter

I read that, yeah.

1:30:09

Aaron Francis

Yeah. So it was year-end review 2024, and basically the gist was like, this was the hardest year of my life, and there were many, many times after putting the kids down I sat at the top of the stairs and just cried, 'cause I was like so freaking stressed out. 'Cause I got laid off in March. Like, we started a company-

1:30:26

Alexander Lichter

Yeah

1:30:26

Aaron Francis

... yes, but it was because Steve and I both got laid off. So I've got four kids at home, I've got, including the au pair, seven mouths to feed. I got laid off, and it's like, I've also got rheumatoid arthritis, and I have Type 1 diabetes. And like, I just sat and cried. Like, the... It's hard. It is just hard. But my hope is I can at least be some sort of encouragement that, like, even when things are hard, you can keep going.

1:30:54

And that is, that is the hope. Not that it will be easy, but that it is possible.

1:30:58

Alexander Lichter

Yeah. I don't know what else to say to that. I think this is like-

1:31:00

Aaron Francis

Yeah

1:31:00

Alexander Lichter

... this is such a good, such a good summary. And also, like, it's just brutal honesty as well. Uh, plus what you just mentioned, you didn't... and what you mentioned earlier, you didn't become like a cynical, snarky-

1:31:12

Aaron Francis

Mm-hmm

1:31:12

Alexander Lichter

... internet person. No, it's quite the opposite. So yeah, I hope that, like, this at least gi- gives a little bit of inspiration to, to people out there listening. Aaron, I ha- I have one last question. Um, where can people follow you? Where can people find you?

1:31:25

Aaron Francis

Yeah. You can find me, um, on x.com, which is a ridiculous name. You can find me on Twitter, um, at Aaron D. Francis, uh, D as in Daniel. I'm also on Bluesky as aaronfrancis.com. And as you mentioned briefly, we have a podcast, Mostly Technical, which is a generous name. It's barely technical, but it is a lot of fun.

1:31:45

So you can find that at mostlytechnical.com.

1:31:48

Alexander Lichter

Perfect. Of course, all the links as usual in the show notes/description if you're watching on YouTube. Aaron, thank you so much for taking the time, coming here to the show and, uh, talking with us about Fusion, Vue, Laravel, life. Uh, and I hope this won't be the last time, uh, we'll see you either here or maybe in real life.

1:32:05

Aaron Francis

Mm-hmm.

1:32:05

Alexander Lichter

Maybe at some conference, uh-

1:32:07

Aaron Francis

Ooh, that would be awesome

1:32:08

Alexander Lichter

... whenever. 100%.

1:32:09

Aaron Francis

Yes. Thank you both so much for having me.

1:32:10

Michael Thiessen

Yeah. Thanks for coming on.

1:32:11

Aaron Francis

Thank you for welcoming a, a, a Vue outsider, but a, a big fan of Vue. Thank you for having me on.

1:32:16

Alexander Lichter

Oh, you, you're a lot of things, but you're surely not a Vue outsider. Definitely not a Vue outsider.

1:32:20

Aaron Francis

No, that's very, that's very kind of you.

1:32:22

Alexander Lichter

Of course. Um, we're curious how to see, uh, how Fusion will go, and, um, yeah, then l- latest we will come here for another update on it. Until-

1:32:30

Aaron Francis

Can't wait.

1:32:30

Alexander Lichter

Perfect. Until then, uh, take a look at the older, uh, shows, the older episodes as well, of course, the linked one with Inertia. If you have still no idea what Inertia is, check it out. Joe's explained it phenomenally. If this is not the latest-

1:32:41

Michael Thiessen

Mm-hmm

1:32:41

Alexander Lichter

... uh, HPV episode, then, well, just, uh, keep listening, and see you in the next one. Bye, folks.

Get the next one by email

I’ll send you some more. Not too many.

Join 7,500+ other readers.

Read past issues