7: React and Electron with James Long
James Long is a prolific blogger and the author of several open source libraries including Prettier. He has recently started developing Actual, a budgeting app built in React and Electron. In this episode we talk about James' approach to business, as well as take a peek behind the scenes at how he works with React.
Featuring
- James Long — Twitter, GitHub, Website
- Jed Watson — Twitter, GitHub, Website
- Michael Jackson — Twitter, GitHub, Website
- chantastic — Twitter, GitHub, Website
Links
Transcript
[00:00:06] Michael Jackson: This episode of the React Podcast is brought to you by ReactTraining.com. In-person, hands-on training for development teams from React community leaders and experts. Visit ReactTraining.com to learn more. Hello, everybody, and welcome back to the React Podcast. I am your host Michael Jackson, and I'm joined by a very special guest with me here today, Mr. James Long.
[00:00:36] James Long: Hello everyone, I'm excited to be here. Thanks for having me, Michael.
[00:00:39] Michael Jackson: Yeah, yeah, no worries. Uh, we also have two, uh, awesome friends of mine, and, uh, you know, and anybody who's been listening to the React Podcast for any amount of time will already know both of these guys, uh, because they were on the previous iteration of this podcast. But I want to welcome them back to the show on this episode and and possibly on future episodes. We're not 100% sure how it's gonna work yet, but uh Mr. Michael Chan.
[00:01:08] Michael Chan: How's it going? Oh, sorry, no, I just jumped right in there. I was just so eager to get back on the podcast.
[00:01:14] Michael Jackson: And Mr. Jed Watson.
[00:01:17] Jed Watson: Hey everyone, it is really nice to be back.
[00:01:19] Michael Jackson: Awesome, I'm super stoked that uh Michael and Jed are gonna join me on this podcast today. Uh they're longtime friends of mine and uh and people whose whose opinions I really, really value and respect uh when it comes to React especially. So without any further ado, we wanted to talk about James's uh project today. So James, um if you in case you don't know James, uh he is actually one of the guys who first introduced me to React. Uh I don't know if uh either of uh you guys, Michael or or Jed, remember uh the post that James wrote about uh rethinking um UI. Uh, he talked about, he was doing like a a list and he was he was doing like a uh like a windowed uh list um in React. And he did it using this little library that he called Bloop. Does that does that sound familiar to either of you guys?
[00:02:15] Jed Watson: I actually, I remember quite a few really influential articles back around the time of that first React Conf.
[00:02:21] Michael Jackson: Yeah.
[00:02:22] Jed Watson: Um, I don't remember a library called Bloop.
[00:02:24] Michael Jackson: No, it was just his like made up thing just for that post.
[00:02:27] Michael Chan: I I do remember that one. I don't rem- I I. The more vivid in my memory is the one, um, it was like you'd kind of like scroll through and there was like a whole bunch of different React examples that kind of incrementally taught you about React.
[00:02:40] James Long: Yeah, it's it's it's the same one. Yeah, that's all just one long massive post.
[00:02:44] Michael Chan: Oh, I just skipped over the Bloop part then.
[00:02:46] James Long: Yeah. No, all of those use my own, that like all those use Bloop. They didn't even use React. That was kind of the cool idea about it.
[00:02:52] Michael Jackson: Yeah. And he had like his own timer or anything, but anyway, to to get to get to, you know, To to not get too far into that, but but uh James has been writing about React for a long time. Uh he's done a lot of work with React at— um previously you were at Mozilla, right, where you wrote a bunch of the Firefox DevTools in React. Is that right?
[00:03:12] James Long: Yep, that's right. I kind of spearheaded an effort to uh use React and convert, because we we weren't using React when I started DevTools, and I helped kind of start migration onto React and and help get that going.
[00:03:24] Michael Jackson: And uh since then, let's see, he has moved on and he is now working on building his own uh budgeting software, working on a uh a budgeting app called Actual that is, I believe, in beta right now, right, James?
[00:03:39] James Long: Uh yes, I'm calling it a a private beta, which is pretty silly because I'm about to tell everybody how to download it. Um but it's it's sort of just because like I'm I'm rolling it out pretty slowly just as as I'm learning, and also um I'm getting more more more feedback than I really want right now. Um There's uh I'm already getting a lot of stuff that's uh like helping me me do it. So I'll do like a a real launch, um that's that's still probably a beta in probably about a month or so.
[00:04:06] Michael Jackson: Well, huge congrats for um making that transition, by the way. That's uh that's kind of a like you you're essentially making this transition from like developer to developer slash marketer slash product guy slash like business owner, slash you know everything, right? Is that how's that going?
[00:04:25] James Long: Uh it's going it's going well. Um it's definitely pretty time-consuming. I'm sort of thinking about ways to to help with that. Like I would love to have some other people involved. I just don't really know how to figure that out yet. Um nobody that uh I thought would be a good fit was interested in in in in um helping so far. But in in general, I it's that's kind of why uh that that's what was so enticing about it to me, um is that it would challenge me in in in other ways. I'm still very interested in tech. Uh, but the the real, like, being thrown into the deep end of the pool, you know, no idea what you're doing, you're gonna drown if you don't figure something out in like the next couple weeks, like that that feeling's kind of gone from tech. Um, for me, there's still like a a crap ton that I could learn and and be thrown into the deep end of like AI or machine learning. I don't know anything about it. Um, but I think I've been looking for more of a like, man, I just love this. Like, how do I market this? How do I get people? How do I sell this idea? Um, and it's been really fun to to like just figure out all this stuff that's that's very, very different from from tech.
[00:05:27] Michael Jackson: I think Jed could probably speak a lot to that as well. Jed, uh for those of you who may not know, runs his own, uh I guess, how would you say, consulting company in Australia, in Sydney, Australia called Think Mill. Um you at some point had to make that a similar transition, right?
[00:05:43] Jed Watson: Yeah, we call it a development consultancy 'cause I haven't found a better word for it. Um It's kind of like, I really try and avoid the word agency because no one likes agencies, but it's kind of, you know, we we people pay us to do things and we do it for them, we do it really well. Uh but we put a lot of time into open source and it's all kind of driven by the tech that we're using and the products that we create rather than, you know, um I don't know, something more business-like. We we kind of had this idea that we wanted to create products and the best way to do that without doing a lot of the stuff that uh James was talking about was to team up with other people. Um, it's kind of cool because we get to work on a lot of different ones, but we actually have— uh a lot of the team here have gone through the startup thing before. Like, we had an idea, we got funding, we ran out of funding.
[00:06:31] Michael Jackson: Yeah, so there's there's more than one way to to run a startup, right? You can get get funding, you can bootstrap it. Uh James is is bootstrapping his thing up to this point, I think, which is super cool. I'm I'm actually doing something similar with like a crypto app that I'm working on. Anyway.
[00:06:46] Jed Watson: So, I'm I'm super curious, James, just you were talking about thrown in the deep end of all these um all these new things that sort of tech isn't challenging you as much in the same way anymore. And I'm curious to know what you think about the idea that uh like what in in your life as a developer or the way that you approach problems technically has kind of prepared you for this, because I sort of find this to be quite an interesting idea where I solve problems one way in when I'm programming, and then I've realized that there's sometimes I solve problems using a similar thought process when I'm dealing with a business or marketing or explaining something.
[00:07:20] James Long: I feel like it's a little too early for me uh because I'm still at the point where I just don't have the intuition about the right way to to market things or to to to run a business. I feel like that's that's kind of the first thing that you get when you learn something. Like when the first time if you're trying to do a hobby like how to make a like how to do woodworking, um you have just no idea what you're doing and so, you make cuts that are like horrible. Whereas like once you do it the first time, then you're like you have a little bit of an intuition. It's like, oh, I see. Um, I I don't know if I'm even doing it right so far. I haven't even gotten past that first, like, um, that phase. But I I approach it, um, I do approach it pretty methodically because I am a I am a developer. Um, I do, you know, break things up into small pieces. I probably get that from development. Um, things that things can be overwhelming. I think that's probably that's probably the main thing is that things can definitely be really overwhelming, especially when you're doing this yourself, just like one person. Um, leveraging um techniques to to break up problems and be like, all right, let's just like get one step done, get that done this week. And then like you make progress slowly over time. Um, also just like working with people, um, and this is probably just in the tech world, I don't know, it's not specifically in tech, but really just like in, if it's if it's with anything, like people will help you out and you can ask them questions and you can do that. And I guess I've learned that some from open source, I've learned that some from working at Mozilla, there's just a bunch of people around me that I could ask questions for.
[00:08:46] Michael Jackson: I was gonna say, open source teaches you a lot about working with other people, right?
[00:08:50] James Long: Yeah, yeah, definitely. I mean, um, being collaborative and like, it's it's messy and it's it's hard a lot of times, but it really does um just help a lot.
[00:09:00] Michael Jackson: So so let me ask you this. So how did you decide on uh Actual? How did you decide on building some budgeting software? Is is is uh finances, you know, personal finance, is that something you've been passionate about for a while now?
[00:09:12] James Long: Um, yeah, I think for for a while, Probably around 4 or 5 years ago, I just I got sick and tired of not really knowing what's going on with my finances. And so, I just I tried a couple of ways to budget and none of it really clicked with me. And I just got kind of frustrated about um like like why is why isn't this working? Like why can't I why can't I learn this? Um and so, it sort of became you know something that I was originally I was like I'm building this for me, which is I think um a pretty a pretty powerful thing because like I am very invested in this. Um personally, it's something that I use every day. And so, I I just learning from that experience, it took me like so long to really learn how to look at a budget and be like, "Make a decision. Can I buy this thing at the store?" Um, how to go how to go from from A to B, to have a budget to making those decisions, um, was a very long process for me for some reason. I don't know why. Um, and I think that made me— like while I was going throughout that process, I was talking to friends, I was talking to people. Um, and I I I I started just building it for me, but over and over, like over time, over several years, I just kept talking to people that were just like very lukewarm about their their solution for for managing finances. And so, it's just something that kept coming back um over and over again. And I I've always wanted to build something. I've always wanted to do a product like just with me or just just with a couple of people. Um, and so, that sort of formed in my mind. Uh, just, it seems like a problem that might have us might might have room for another app. It's definitely a crowded market, but it's such a huge market that there's definitely room for um lots of lots of apps. So I'm not looking to make millions, you know, I'm just hoping uh that I can get something going.
[00:10:56] Michael Chan: So I'm I'm super into personal finance as well, and I'm and I have also had a really hard time uh trying to find a product that that worked and felt right and matched my mental model of money. What would you say like the failing of the other software that you've used was and kind of the, the, um, the key difference that you infused into your, your app Actual?
[00:11:19] James Long: I would say the first thing is, is that it's just, um, the, the UI design is just super overcomplicated in so many of the apps out there. Um, I mean, you look at some of the screenshots of these apps and there's like 50 numbers on the screen, like on just any arbitrary page, right? Um, I mean, that's a little bit of an exaggeration, but like the simplest question that you want to answer is is what I just said, right? What is my finances right now? Should I buy this thing that's $200? Like, can I buy this PS4? Like, how much is that gonna hurt me? And like, even though I was using like Mint and and other systems for like months, I just felt like I could never really understand why. And I can't, like, I'm not entirely sure why, but I think part of it is just the UI design just doesn't show you that one number. Budgeting is semi-complicated inherently. So even if you see like a list of categories and numbers by those categories, the the UI needs to teach you how to interpret that data. Um, it can't just throw everything at you uh in a really complex way. And so that's sort of the philosophy in Actual, which is like the UI is like extremely stripped down. It's supposed to be extremely simple. It's not supposed to be intimidating, uh which encourages you to to kind of learn where those numbers came from. And that goes into my second point, which is that it doesn't really- I felt like none of them were actually teaching me. Um, none of them were telling me how they came up with this number. They would say, "Your account balance, the forecast of it in 3 months is gonna be $50." Uh, well, how did you get that number? I have no idea if that's if that's accurate, right? Like maybe you're basing it on like a really weird month that I had last month, um, for that category, uh, which is usually the case, right? So I feel like they didn't really explain how they got those numbers, which is like it's just pointless to me, like, because then I can't actually uh know how accurate that number is. Because if you're if you're operating on bad data, then the whole thing's pointless.
[00:13:04] Michael Jackson: Yeah, what you really want to know is— and I love how it's built into the name, right— is how much how much money do I actually have? What can I make this purchase or can I not? I don't need a calculator. I need something to kind of inform decisions, right? I don't need a balance tracker. I need something that, uh you know, helps me to learn how to spend my money uh essentially how to allocate the resources that I've got.
[00:13:27] James Long: Yeah. And um so, in in actual, the way that that manifested, um at some point throughout this process, I learned about this thing called like zero-based budgeting or envelope budgeting, that's what people call it. Um and that's like, I thought it was like too complicated at first, but there is a way to do it which which really um resonated with me, which is like basically you have all these accounts, you have $5,000 distributed amongst those accounts, but you still have $5,000. That's the cash you have right now. The envelope-based budgeting- and you can do this like in an app, you don't have to use cash envelopes, which is how it actually started- you distribute this money into those categories and it it it basically represents cash that you have right now. And that's what answers the question. You have this money right now. You can have other money coming in somewhere else and represent that somewhere else in the app, but when you see that fund in the category, that means you actually literally have that cash to spend. You can go into the budget and change the number and see how it propagates out right into the next month because it actually rolls over. Um, so that's how it manifested itself into the app. And I I do want to say one last thing. Different people budget differently. It's it's it's so funny to me how many ways different people budget. I mean, I don't know if every single person budgets the same way. Even if they use the same app, they use it differently. Um, so, if you're not into zero-based budgeting, I don't think that's a bad thing. I'm not trying to say like- You're a bad- your budget's, you know, bad if you, if you do it somewhere. That's totally cool. But uh it's something that, that at least resonated with me and I know resonates with a lot of other people.
[00:14:57] Michael Jackson: Yeah, absolutely. I would agree with you there. Zero-based budgeting. Before I started using uh zero-based budgeting, for me, uh it, it was really just like buckets, right? Like, okay, I know I have this much in this bucket and I've got that much in that bucket, but I don't know what everything in that other bucket is for, right? So zero-based budgeting really forces you to, for example, take a look at your savings account and allocate that money for something. What is it for? Why why are you saving money? What is it for? Maybe you're gonna do a down payment on a house. Maybe you're gonna down payment on a car. Maybe you know you you you need to you're saving that for for college or or for whatever sort of thing in the future. But it it forces you to kind of go down to zero uh so that every dollar uh has a job. You know every dollar is is sort of allocated. So So I think it's super powerful. Well, let's let's talk, let's get on to talking about, uh I mean, this isn't a personal finance podcast, this is a React podcast, gosh darn it. Let's talk about uh let's talk about a little bit of the way you're you're building this. So you chose Electron, which is no doubt the de facto for uh people who are building uh desktop apps these days. Even even I think, uh you know, people have been building some really interesting apps with uh with Electron. There's Guillermo Rauch has been building uh that terminal, uh what does he call it, Hyper with Electron. Uh when I when I saw that, I was like, oh, wow, I guess you can really build anything you want with Electron. Um so how's that been going uh with React and Electron? Have you found that to be a pretty pretty good uh pretty good pair?
[00:16:31] James Long: Yes, absolutely. Um it took a while to figure out figure out how to set everything up. Um like, you know, there's just there's so many little cuts and and things here and there that um If you don't, if you're not used to, to native apps or, um, yeah, like if you're just not used to just throwing some HTML in a browser, um, you do kind of have to learn how to set things up appropriately. Uh, but like you have to manage, manage the different processes and stuff like that. Um, but generally speaking, like that was just part of the learning process. Um, and like, I mean, it's gone super well. I would definitely, I would definitely do it again. Um, people love to bash Electron, but like-
[00:17:06] Michael Jackson: Do they? I haven't, I haven't seen that. Are people bashing Electron? I mean, what, what, what on earth are you gonna use if you're not using Electron?
[00:17:13] James Long: They they bash the memory usage and the the the download, like it's like 170 megs to download my app, which is which is ridiculous. Cause like there's probably a ton of stuff in Chromium, like video. I don't have any videos on in actual, there's probably like 10 megs of code, you know, for videos. Um, which is, I I would love to see more more work towards that. But like, yeah, I mean, seriously, it's really not that much to download and it, um, if you're careful with RAM, it's not that It's not that bad. Uh, but I like, I pointed, um, Electron, I think it's builder or packager. There's actually two of them. Um, I pointed it to my app and I like told it to sign my app, told it to, um, make the right parts so that it, so that it can auto-update. And then I like threw up an auto-update server and you've got an app that's signed, um, can auto-update like instantly. And I mean, it's just amazing. I did that in like 4 hours.
[00:18:03] Michael Jackson: So, so you get, so you get auto-updating basically. Uh for free if you're if you're using Electron. Do you just do you pull the files down from your server in your production app that you you deploy?
[00:18:13] James Long: Yes, it checks. There's a JSON feed that it's pointing to, and when it comes back and when that feed says, hey, there's an update, that feed also gives it the URL to download, and then it downloads it um and automatically applies it, and the user just restarts.
[00:18:26] Michael Jackson: Is that something that you set up, or is that something- did you use like some deployment script or process that's kind of well known that a lot of people use to deploy their Electron apps?
[00:18:36] James Long: Yeah, so um I use I used Hazel, which is um Zeit's update server, um for the server part. And it's but it's really even a couple hundred lines of JavaScript. It's really not even that hard. And then I use GitHub releases to host the releases. And so it, you know, when you make a release on GitHub, it has like you can upload binary attachments. And so I literally drag the entire like .dmg and the other files onto GitHub releases when I'm making the release. And then the auto updater server says, oh, there's a new release on GitHub, and it tells the app, and then the local app just goes off, downloads it,
[00:19:07] Jed Watson: So a little bit of background on where this question is coming from. I actually started an Electron app about 4 days ago. Oh, nice. Put together a little little utility, and that was actually before I knew that we'd be talking to you about Electron today. So this is super convenient for me. I just want to ask you all the questions.
[00:19:22] James Long: Ask away.
[00:19:23] Jed Watson: Yeah, the getting started experience is really- I think the hurdle for me was it's really easy to get an app um kind of running and booting, and then there are these really cool tools like you mentioned for publishing and packaging, and I saw all the GitHub release integration. Uh getting it to the point though where it's actually- I've got my usual React dev loop running was kind of the most challenging thing. There was some really intense boilerplates um that I didn't really want to go all in on because then you've got everything from uh Webpack to Redux to sort of really opinionated kind of choices, and I wanted to understand everything that was going into it. But you know. You can set up an Electron um like sort of build process uh that will package everything with Babel. You can um you can set up you know a webpack dev server. You've got all these different ways of kind of trying to get back to the normal dev loop of running in the browser. And I was really curious to hear sort of where you started, what you're using now, and your progression through that.
[00:20:24] James Long: So I used I started with Create React App because I I really have bought into this um idea where I don't even touch webpack anymore. I I love this tool that I can just upgrade. Um, now, a side note, I do have my own like JWL scripts so that I actually do have, I have customized how it compiles stuff. That's an that's another story. But I still love that architecture, right? Like I I can still just rebase my JWL scripts onto Create React App scripts and it's the same thing. Um, but anyway, like it's still hosted way outside of my app and I can reuse it on on other projects. Um, but I even, I didn't do that until way late in the project. I still used use the default Create React App. I don't remember having too hard of a time. Maybe it's because I, I mean, I'm not sure if you're using Create React App or not, but like I, like all the webpack stuff and how to set stuff up, um, it's using Chrome. And so I felt like the complexity of like setting up a React project was pretty, pretty much the same as it would've been for the web. Because for Electron, you can, uh, for, for the longest time I didn't even have, have anything to deploy, so I didn't do any build special Electron building. I just pointed the window to a, in like a local, like HTTP localhost, you know, on port 3000 and developed it like a normal app. Like you, like I could have hit that in the browser as well, 'cause I wanted to develop it in um Electron just so that like I was in the environment that I was going to be in. Um, but I don't remember running into a whole lot of problems specifically to setting up like a React project within Electron. I do remember like Yeah, yeah, you have to set like some things in create-react-app's package.json so that it has the right like prefix on the URLs.
[00:22:02] Michael Jackson: Yeah, so create-react-app just kind of worked out of the box and gave you all the dev stuff you wanted in Electron.
[00:22:07] James Long: Yeah, like are you using create-react-app, Judd?
[00:22:09] Jed Watson: I'm not actually. I ended up going with Electron Forge to create the kind of like initial boilerplate. It's like a generator, and then it includes the scripts for starting and packaging. It actually looked and felt a lot like create-react-app for Electron, and then I'm kind of working out how to get in there and set it up. So that comes with Babel. Um, but yeah, I'm honestly, I might be doing it kind of the hard way. I I think part of it, maybe I'm I'm overcomplicating things in my head because really Chrome is so good these days with JavaScript. Um, you know, I could very happily live without a transpile process except for JSX.
[00:22:44] Michael Jackson: You're talking to the man, the the one man that I know who just like refused to use JSX for the longest time. James, right? Right? Isn't this-
[00:22:56] James Long: Yeah, the first version, the first version of the app didn't use JSX.
[00:22:59] Michael Jackson: Yeah, I gotta respect you for that, man. I gotta salute you, especially with like the way that things are going now with, uh, with React. You know, there are lots of people are using the, you know, render props all over the place. The JSX can get kind of gnarly. I kind of wish we were still using factories, you know.
[00:23:16] James Long: It's, it's a toss-up. I mean, there's definitely, uh, niceties about JSX, but it is true, like I I, I found some old code and I was like, oh yeah, I didn't use JSX. And I converted some code I was writing to not use JSX. I was like, how would this look? Um, and it used like render props. And I was like, this is actually pretty nice. I think, I think it's, I think JSX still ultimately is just nice enough that it's probably worth it. Cuz, um, if anything, it's just because I don't think, I don't think you can overstate the fact that it looks more like the web, like. It's, um, I, I'm a big believer that technology, um, a huge part of how we use technology is, is people and social and collaboration. So to have somebody who looks at this crap that's like function calls, like it's just not as welcoming as looking at stuff that looks like HTML tags, even though we know it's not HTML tags.
[00:24:04] Michael Jackson: Absolutely. I'm working on a project right now with, uh, with a friend of mine, uh, who's a, you know, he's a developer, uh, you know, designer. And and I told him, I said, look, if since you're working on the UI, why don't you just do the HTML and the CSS, and then you could just hand that over to me. And how easy is that to convert into a React app? It's like 2 seconds, right? You just convert all the places he says class into className, and you're done. And you and you've got a React app, you know?
[00:24:33] Jed Watson: It's kind of funny actually, JSX was the thing that, I mean, well, React, and but because of JSX was the thing that got me into having a build process in the first place. This is 4 or 5 years ago, I I didn't really- I'd sort of, you know, played around with Browserify and it wasn't- it didn't feel like, you know, a change to everything. Um, and Babel was still not even 6 to 5 yet, like that that didn't really exist. We just had the JSX transformer. Suddenly, I needed to get my head around how to actually put a build process in my frontend JavaScript, and it started me on this journey of like, understanding understanding of bundler, being able to use packages that were on npm, understanding how to you know actually kind of lean into that whole ecosystem that was developing at the time. And it was really cool. And I used to tell people like, you need to try React, not just because React is awesome, because it will kind of force you to learn all this other stuff that is really awesome. So you know years and years later, we've got Babel, and this is just kind of a given now, I think, for front-end web development for a lot of people. And React was just kind of how I got there. And now it feels like I've come right to the other end of this, and almost all of it is uh natively supported in Chrome, um and everything else is probably going to be soon, except for the JSX. And I'm like, damn it, I still need this build process because I still got- I'm like back where I started.
[00:25:52] Michael Jackson: Hey, um, so let me ask you about, um, let me ask you about, you you were tweeting a couple of weeks ago about, um, you had you said you had some really cool like error reporting stuff set up in your app. That was, uh, I think you said you were using Sentry, and, uh, and, and that's honestly something that I haven't ever really dug super deep into. Are you, are you using any of the new kind of React 16 componentDidMount stuff, or did you just kind of, uh, you know, build up your own kind of thing from scratch? And tell us, tell us a little bit about what that's like, because I, I know that, you know, you've actually been a developer more than most developers who have ever uh really worked with or or known uh who's talked about error handling a lot more than than most developers. I still remember the talk that you gave at React Conf in 2015 where you were talking about you know the different models, uh you know the promise versus async/await, et cetera, uh you know models for doing asynchronous stuff and and how you would handle errors in that situation. So anytime you talk about error reporting, I'm all ears. So uh so you're pretty excited about the setup that you've got in Actual?
[00:27:01] James Long: Oh yeah, it's totally blown away. And it's probably not totally Sentry-specific, um but it just feels so empowering to have an online service. Um I know there's like, I think New Relic, it's, I think New Relic has a like a much broader, like they they offer all kinds of stuff. I think they do error reporting. Um there's a couple other ones as well, but I I like Sentry. I like their, um I like the way that their UI looks and everything. But um it's, so the way that it works is, um it's actually not very React-specific, to be honest. The React part of it's a little bit boring. So I do I do use componentDidMount, but I actually, there's a couple places that I probably could use it more specific, um but I actually only have one at the very top level. And the only reason why I have that is um kind of 'cause React 16 sort of forces you to have that 'cause it it crashes if there's a problem in it um in the UI, right? Which I thought was kind of weird at first, but the more I think about it, I was like, that's actually kind of brilliant because the the when the UI is in in inconsistent state, the user might have not have any idea that a user that an error happened. Um so what happens in in Actual is if there's a if there's a JavaScript error within the React components, it actually crashes. And in production, a nice, like the whole screen goes white and then a nice little like fatal error, um sort of like a Windows blue screen comes up and says like, oh no, I'm sorry. I have no idea what happened, but there's a problem with the UI. You can report it here. Um like like email me at hello@actualbudget.com if you're. Got it. If you need somebody to talk to about it. Um, um, so I I have that like top-level catch just to like show something to the user, like, I'm sorry, you have to restart the app.
[00:28:36] Michael Jackson: Okay. So you've got one catch all the way up top, and then that's gonna report an error uh back in uh back in Sentry. But is that gonna is that gonna give you enough contextual info to know, you know, what, you know, what the user was doing when when it was happening? Are you gonna, are you keeping like all of your state in one spot and so you can report all of the state of the app, et cetera?
[00:29:00] James Long: Sentry takes care of all of that. So, um, that componentDidCatch does forward the error to to Sentry. Sentry also um installs global error handlers. So if like an error happened outside of the UI, um all of that goes to Sentry. Um, now there's actually, remember there's 3 processes going on here in the desktop app because it's a a local app. So there's also the backend process, which is where all the actual heavy lifting works. All of those errors are automatically caught and sent to Sentry. And then there's this main process, which is kind of um controls all of the subprocesses, and there's like an IPC to to to um talk to each other. And so there there's a very there's very small amount of code in that main process, but it's a very critical code. Um that's also forwarded into Sentry. If there's an error that happens anywhere, it's forwarded into um into Sentry, and that error object has enough to give you almost everything. Like it. It gives you the stack and Sentry supports source maps, so it'll actually automatically source map the whole entire stack for you. So you'll actually see a piece of code in Sentry's UI that says it happened on this line and that line will be highlighted. And then you'll see the whole stack and you'll see, you know, pieces of code where that pieces of the parts of the stack point to. Um, but what's even cooler than that is actually Sentry automatically captures breadcrumbs across the app. So when the URL changes, which, you know, the user doesn't see the URL in this native app, but there are actually URL. I'm actually using React Router, Michael. Thank you.
[00:30:27] Michael Jackson: Oh, sweet.
[00:30:28] James Long: Yeah, it's awesome. Um, but what's so cool is like when the when when a user clicks on anything in the app, um, and when the when the URL changes, it sends a breadcrumb. Well, it actually saves a local breadcrumb to your computer. So there's this big array of breadcrumbs. And then when a crash happens, it sends like the last 100 breadcrumbs, um, to Sentry. So I have this whole list of actions that led up to the error. Um, so I can say, I can see, oh, they navigated to budgets. They, they loaded, um, this like this month and they clicked on this thing.
[00:31:02] Michael Jackson: Sweet.
[00:31:03] James Long: And then this really obscure error happened. But because I know the exact order of operations that, that led up to that error, It's phenomenal. It adds this whole amount of context to it that I've almost never had to follow up with users themselves to figure out bugs. I've been able to easily be like, oh, I know exactly what happened.
[00:31:20] Michael Jackson: And you've set up already this uh this quick method of deploying things. So once you identify where the bug is, you go, you patch it, you push, and then everybody gets the uh build probably within an hour or so.
[00:31:33] James Long: Yep, exactly. So that like super tight feedback loop. Um is really, really important to um making users happy in my opinion. I mean, they see a bug, they didn't even know that it was reported to me, but it was reported to me. And then they see a version is out next week or next, you know, the next day.
[00:31:50] Michael Jackson: That's amazing.
[00:31:50] James Long: And it's fixed. And it's sort of this like really, yeah, that's, that's kind of how I'm trying to um nurture like an early community of people and, and uh help them, help them be happy. I, I can see actions on the server, like, and the client in the one long list in sequential order. So I can literally see what happened on the client that pinged, like, that called something on the server, and then the server returned something to the client. I see all that in one list, right? Like, it's amazing. It's just, it's insane.
[00:32:20] Jed Watson: So I was curious about what else you're using, um, in terms of packages that, you know, people would recognize in the app, because it's kind of a slightly different sort of problem, I think, building an Electron app that's meant to be kind of long-running and really doesn't play to the traditional kind of web app processes. Obviously, these lines are super blurry these days, but you mentioned you're using React Router, which I think is really interesting when you think about a desktop app that there is still actually a router running behind the scenes, helping it figure out what to display and how to navigate. There are a number of different kind of UI libraries that have been released. I'm not sure if you've used any of them or just rolled your own. And then there's things like, what are you using for state management? Does the fact that it is a desktop app kind of change your view on that in any way? You know, and and I guess, what are you using for styling? All these kind of questions.
[00:33:15] James Long: I I definitely experienced that overwhelmingness. You know, when I when I it's kind of easy to to brush off people's complaints about like Things being overwhelming because it's like, it's amazing that things are moving so fast, um, which it is, but like when you need to sit down and make a project, I mean, that that is a weakness of the React ecosystem is that there just are a lot of choices. Um, there, I mean, there there's no way around it. Like you you can't have you can't have both, you know, things. You can't have your cake and eat it too. Um, I still think it's amazing. I think it's worth it, but it's, uh, yeah, I had to go through a long time of just like trying out new things and I swapped out one styling system for for another one. But I use uh I ended up using Glamour for this styling system and I've been meaning to look into Emotion 'cause evidently like it's the same API and it's you know even even um 3.1, the creator of Glamour says Emotion is cool.
[00:34:08] Michael Jackson: You know, we're actually gonna have Kai, uh the creator of Emotion, on the show in a couple weeks. I'm glad you mentioned that because I've heard good things about it as well and from from Sunil as well. Yeah.
[00:34:19] Jed Watson: I'm a massive fan. I actually just switched. Um I've got a PR that I opened last night for React-select switching from glam to emotion. 'Cause I've been using it on everything and I love it. It's so good.
[00:34:31] James Long: Yeah. So I I I'm probably gonna write a blog post on this at some time. I've definitely, this has helped me um shape shape my opinions on on all that stuff. 'Cause it's easy to talk about things when you haven't had to like go through a whole app and experience it with it. Um once you go through a whole app and try to do styling with like libx or liby, Um, I think it's, I don't know, it's just, it's very good to try something in a real production app. Um, but I like, I don't really even care as much about which style system I use as long as it does the optimizations um correctly. But I've really grown to like the React Native style of things, which is like everything is a view and everything takes a style prop and the style prop is an array. Um, and that's pretty much how I built my whole system. And um, I even, I actually wrote my own custom Babel plugin to hoist style props in the right way, because the built-in one isn't powerful enough.
[00:35:26] Michael Jackson: Have you looked into using uh React Native Web at all? When you're building a product, right, you have a certain number of uh dollars, I think, that you can spend on like experimental stuff. Because at the end of the day, you just gotta get stuff done, right? Um and so like, you know, if you're if you're like using an experimental database, you've already spent basically all of your dollars. Uh if you're using, you know, an experimental uh UI library, you spent one of your dollars, right? So I don't expect you to be using everything, but you know, what you just said led me to believe, maybe maybe he would like React Native Web.
[00:35:58] James Long: Yeah. So it's actually a funny story. I it it actually I actually started the app with React Native Web because um because that was around when Airbnb released React Primitives. Um and I totally bought into this idea. I think I still think it's a great idea, but nobody's really— it needs it's gonna need a lot of work. Um where you you have this primitive base of components, which is like a view and a text, and you can use it on the web and you can use it on on iOS. And there there's a subset of overlap of the functionality that lets you write these generic components. And I'm we've gotta make this work because I'm running into this problem now, 'cause I'm starting to do the mobile app. Um and I'm like almost there 'cause I have the view and I have style, but like I haven't done the like real separation of semantics to like do it well. Um, but yeah, I actually started with React Native Web, 'cause like that, like React Primitives use use React Native Web on the web and then use React Native on on iOS. And I actually built a lot of the app on it. Um, I ended up running into, I don't know if it's just how I was using it. I think it really wants you to use the StyleSheet.create API. Um, and I I really love just putting, I know people, I know some people are probably gonna hate this, but I love putting styles literally inline into the component. Like when I say view style. It's amazing, right? Like it's so co-located and so like right there. And it it it probably helps because I actually separate out my design components into its own package. Like actual design is literally a sub package of the thing. And that's where all of my like, um like it's not connected to Redux, it's not connected to any, like they're literally just components that you can plop on a page and render. Um and so there, that's where all of the stuff is. So it just makes sense that like all the styling is embedded throughout all those components because those are the design components. Um, now in my in my real app, it's true. Like when I'm using those components and I'm hooking everything up, I do tend to like, those are my like, you know, those are my controllers. Like let's just say it, those are like, we're back to MVC. Um, but um, so it just, it feels weird to like, I don't really care about having the style in the component. So.
[00:38:03] Jed Watson: This is this is one of my favorite things about Emotion actually, the way that you can flip in and out of creating a styled component like a primitive that you're gonna reuse, but then when you're in a, you know, you're just in the middle of something and you just want to add some padding or some margin, and you can just drop in and stick a CSS prop on it and know that it's gonna be handled by the style system the same way as everything else. It's like, it's just so easy and powerful having this really clear abstraction, but then not always being forced to use it.
[00:38:34] James Long: Yeah, oh, exactly. Glamour, I think you said- did you say glam or glamorous?
[00:38:40] Jed Watson: I actually said glam. I kind of work full-time on a UI library and it's using styled-components. I have a lot of opinions on all of these, but I've been following the whole CSS-in-JS things for years and Glamour was my first one I saw where I was like, man, I really like this. I feel like this just gets it right. And then Sunil came out with Glam and I was just in love. It was so small and so fast. And is now so unsupported.
[00:39:05] James Long: Yeah, I think it was like an experiment.
[00:39:08] Jed Watson: Yeah, but it really feels like Emotion is kind of the successor to that. And I was digging around and found Emotion Next last night, which is- I felt very early adopter because it's got about 25 stars, but it's um right in the credits, it says it's heavily inspired by Glam, and it seems like even like an experimental kind of next generation almost doing to Emotion what Glam did to Glamour, where it just pulls it apart and goes straight back to basics and makes it all composable.
[00:39:35] James Long: Cool. Yeah, I'll definitely have to check out Emotion. But yeah, I mean, basically just just to go back to the— like, I've learned a lot about all this. Like, and I use Glamour for styling, I use I use React Virtualized, I use Redux very, very, very sparingly, shall we say. Um, I just put like some very basic stuff that's just obviously global. Um, I use Victory for the charts and that's about it. The other stuff, I I like to build things my own myself, to be honest. I've been doing this in a very web development-y way. Like, um, you were Jed, Jed, you were kind of talking about does a desktop make a whole lot of a difference? Um, I haven't, the only big difference is like storage. Like I'm using SQLite and I'm using the backend is where a lot of these questions are a lot harder and I had to figure out a lot of stuff there. But for the frontend, uh, I've pretty much just been doing it like a normal web app.
[00:40:24] Michael Jackson: Let me ask you about one more. I just wanna give you one more question. I saw something that you were uh talking about today, and this actually may have to do with what we were just talking about with the styling and with, you know, using libraries, reusing other people's uh other people's stuff. Uh you tweeted this morning, you said, "I will forever advocate for dangerous low-level APIs first and then safe high-level APIs second. If you don't provide the former, you're seriously limiting your capability." Uh, and then you said, I say this as I'm forking several projects and ripping a ton of junk out that I don't need, and it's only making it impossible to integrate the way that I want. Um, so you basically- I, I call that unwinding somebody else's abstraction, right? You're like, they, they built up this sort of palace and they said, this is the way that I want to do something. And then you got there and you were like, I hate this. I, I mean, I need that one thing that's in the middle, but, but the rest of this stuff I just don't need. So you have to kind of unwind that whole thing. Um, how do you how do you think about that, right, James? How do you how do you approach a problem? Because I really think that this is one of the things that uh that separates like a really great engineer from just kind of a mediocre engineer is the ability to like identify um what the core important abstraction is, right? I think, for example, React, the component abstraction, I think. Uh, is one of its huge, huge strengths and and what allows it to have such a tiny API. You know, it's got such a tiny API, you can hold the whole thing in your head, um, and you don't have to always go back referring to the docs. I can't remember the last time I referred to the React docs because it's a great abstraction. It's all just right there in your head and you can hold the whole thing. Um, how do you how do you think about that? Any tips for thinking about, you know, how you're going to build up an API or any kind of rules of thumb that you use for not falling into this this trap of building an abstraction that turns out to be bad?
[00:42:22] James Long: It's a great question. I mean, it's abstraction. I think abstractions are just really, really hard to, to get right. I think it always takes a couple iterations, um, 'cause I, I don't think there's, I feel like there's very few things in the real world that we think about like this, like virtual abstraction software thing that we do. Um, it's just very non-intuitive in a way. And I think, I think if, if anything, The way we think think about things in the world actually makes um it harder for us to build good abstractions. Because I think the better abstractions usually are built in a way that's not- like we think about things in the world as like it's a they're grouped by a thing. Like a person is made up of like hands and feet, um but you don't build a person, right? It's better the the abstractions are better if you have like a whole bin full of feet and this is getting really morbid and weird.
[00:43:17] Michael Jackson: Well, let's talk about- let's talk about building a house or a sandwich. Yeah, right. Yeah, if you want to build a house, you don't have to go and purchase a lumber mill,
[00:43:28] James Long: right,
[00:43:28] Michael Jackson: just so that you can churn out all of the wood that you're eventually going to need to build the house, right? You could just go and buy the lumber, right? You don't- you don't need to sort of create this abstract representation of a- of a house before you can just go and build- build it, you know? I think that's an interesting way of looking at it.
[00:43:45] James Long: What I was trying to say is, um, there's a big, big difference between building a library and an app. And I think when you're a library, you need to be very, very careful about all this stuff. And I think you should provide something that's as like generic as you feel comfortable doing. And it should kind of be grouped by by technology. Um, that makes sense. Like don't, just like we were saying before, don't provide like like a mini house that's like pretty and it's a full house, but it's small, you know, 'cause you only had so much time. Like focus on one thing and make it great, um and pro- and provide somebody the ability to go build a house. Um but like when, when I'm doing this app, I'm very rigorous about like my abstraction can't can't be, I am building the house and so I'm, but I want it to be the best house possible. And so I will go and I will, I will fork a project easily and, and rip it to shreds and just take the things that I need out of it and like, and I will maintain that and I'm fine with that. And so there's two, there's kind of two different mindsets and, but the abstraction for that need to be very driven by the practicality and like the way that the app actually needs to work. Um, but also but also the vision, right? Because I'm gonna be developing a mobile app and a desktop app, and I'm gonna share like 90% of the code between them. And that required foresight from the very beginning to architect things in a way that could work in that way, if that makes sense.
[00:45:02] Michael Chan: Without throwing any projects under the bus, um, is there a good example of something that you had to kind of rip apart and rebuild up or unwind a certain abstraction in building Actual?
[00:45:15] James Long: Oh, yeah, totally. That's what I did today. And I mean, that's what that tweet came from. It was React Native React Native SQLite storage. And I'm still I'm still just so surprised that there's not a solid SQLite interface for React Native. Because what what that basically what that project does was it tries to provide a WebSQL interface to it. But like, um, if you look at the code, I don't, I'm not gonna, I'm not saying the code is terrible, but it, it, it is pretty messy. Um, and there's just like, I like to look at code and, and feel like I can kind of read it from top to bottom and understand what it's doing. And it's hard to do that with that. And I was, I was just getting some weird errors when I was trying to use it. I was like, I'm not gonna rip this apart. I don't have time for this. Um, but I just couldn't get it to work. And so I forked it and I like stripped everything. Like it basically like allowed um you to have multiple open database connections at the same time and it had all this crazy transaction support, which I need only simple transaction support. It was trying to support all these things that I don't need and therefore making everything way much more complicated. Um it had a really weird scheme for specifying where the database was located. Like it didn't just take a path for some reason. So I, you know, and that's a great example that, that like open the database file function used to be like 3, like 200 lines long of like really weird, hard to read code. Um, my version is like 10 lines long and it, and it works. Like I couldn't even really get the other one to work.
[00:46:43] Michael Jackson: What you just said actually, James, I think is a huge red flag for when you are building up a bad abstraction, right? Is that it gets very, very long. You know, and I I I I kind of look at my methods that get really, really long and I think, I mean, sometimes they're good, sometimes they're necessary, whatever. But um, you know, if if if I've got a super long method and all it takes is like an options hash, like it doesn't even have real arguments, I I tend to I tend to look at that thing with the side eye and go, "Eh, you're probably not what we need here." You know, I probably just needed to like Get to the point, stop providing so many options, you know, 'cause uh you know, like you could imagine a database connection library could have, well, you could specify a string or you can specify all the different, you know, part pre-parse the URL to this thing, or you can specify, you know, a a a a full, fully qualified URL or or whatever you want.
[00:47:35] James Long: Yeah. And I mean, I think the real interesting thing for for me at least uh from this example is that it has all these transactions. Support uh built into it, which wasn't really work- one, it didn't work the way that I wanted it to. Um, but I actually need the same- I I I need the exact same transaction semantics on the desktop and in React Native. And so what's interesting about this is like, I actually want to control the transaction support. I'm I'm going to implement it in JavaScript in my layer on top that's running both of them. So that, that's kind of where my tweet was saying, was like, just give me the freaking SQLite connection and don't even implement transactions, cuz I'm going to do that cuz I need it in both places, right? I think developers, I don't know, I, I, I like to build software that is just like not tied down to even like React Native. Just like, if you're gonna build something tied to React Native, provide the one thing and then build like some generic thing on top of that, if that makes any sense.
[00:48:34] Michael Chan: Yeah, I think it makes total sense. Do you do you have— I guess for for someone who's like starting a library right now, like so let's say they have like a high-level need, um need, and then they're gonna like build this thing and publish it. Um, I mean, do you recommend that they kind of figure all of that out before publishing it? Or um just be like more mindful of it? Like what would you like to what would you have liked to see in this particular project or projects like it?
[00:49:01] James Long: Like if you're writing a a SQLite library for- because React Native requires a SQLite um library because it's abstracted away from the host, um from like the Swift and the Objective-C platform, right? So you you literally- and it actually, it's even a different process. It needs to talk over a bridge. And so that's just some complex stuff that you don't want to write from scratch, right? So you so you want to use a library to to access uh SQLite. But what I would like to see normally is like, let me feel like I'm just using the SQLite APIs straight up from JavaScript so that I have SQLite in React Native. That would be SQLite in React Native to me is I have the SQLite APIs. Don't don't try to build an entire database abstraction yourself on top of SQLite. Like that's, you're going 5 steps in the wrong direction and that's, I'm gonna have to take 10 steps and you know. in the other direction. So just if you're gonna do one thing like that, just like provide what it should be. Um but then, you know, if you're interested in building a database abstraction, do it in a way that's like database agnostic, um or at least platform agnostic so that it could work with BetterSqlite, which which is Node's SQLite thing. You could build a transaction library on top of that, which does cool things. Um then you can like use it both in Node and React Native. So just sort of, that's that's kind of what I meant by like picking your grouping your, your efforts into technology, um, where some are like very bound down to a platform. And if that's the case, I, I like just low-level API, um, APIs. But then in, in, in other cases, focus on like, you want to implement transaction semantics and that's interesting. That should be a different, that should be in a different place.
[00:50:41] Michael Chan: Sure. It feels like maybe they put two things in the same, in the same project.
[00:50:45] James Long: Yeah. Cause, and I, that literally won't work for me because I need the other thing in desktop, which is a completely different environment. All of this though is super hard to get right. I mean, um, you need to make these decisions like 10 times on a daily basis. And, you know, I I don't mean to like rant too much about one specific project, cuz I'm sure I make all these decisions on a different project in the wrong way as well. Um, but yeah, just, I don't know, just kind of, it takes experience too. Like you'll, you'll get better as you're working more and more. Don't take this too much as you need to do the right thing at the beginning either. Definitely just like, if you're trying to figure out what, like how to do something, if you're stuck, you should just do something that will get you going and help you learn more about what the right thing should be. Sometimes you just need to have a bad abstraction until you even learn how it should be separated later too.
[00:51:32] Michael Jackson: Absolutely. Absolutely agree. We, uh, we learned this kind of the hard way through, uh, early versions of React Router when we were building Uh, you know, it it before we got to a good abstraction, we had to basically go through a whole, you know, slew of bad ones uh before we figured out where we wanted to be. So sometimes you just kind of have to to learn from experience, and and as you adapt the code to different situations, then you'll see where your abstraction kind of breaks down.
[00:51:59] Jed Watson: I've found recently I'm using monorepos more and more, and it really helps me get my head around where to put the abstraction layers. I can build up these kind of basic packages and make them usable by the rest of whatever it is that I'm building. And it helps me think through where the kind of boundaries of different modules of my system are, and really forces me to consider kind of the interface for each of them. Um, you know, 'cause I end up building really small packages, even though they're all designed to work together. And I know even um React Router implements has since version 4 been implementing a monorepo, not like, you know, there's only 4 packages in it last time I looked. But it does sort of seem to help with that boundary concept. And James, you mentioned sort of right back at the start that you're putting all of your library uh code or your UI code in a separate package, and I was wondering if you were actually doing something similar even within an Electron app.
[00:52:52] James Long: Yes, I actually use— um I still use Lerna. Um I've been meaning to migrate to Yarn Workspaces because that came out. Um I I used Lerna before Workspaces was available, but yeah, it's great. I mean, I don't so I'm a little bit more like the case you just said where It's um like 4 packages, but it's it's um you don't want to develop an entire app literally as as one big repo. Like you want to separate it out at least into some things. Um so, but I I think you're right. Totally. Like I think it helps like when you want to separate something out, um using a monorepo and something like Lerna to to make it easy to separate out, um is great. Cause you it encourages you to uh separate things out. And I think that can be a really good thing. Um, I I don't separate out like a whole lot except for just like I have my design system separated out mainly because um I can actually run in like I that's a Create React App as well. So I can actually do npm start and actually see a whole design system in the browser. So it basically finds all of my components and it mounts them all on one page. Um, and every single component that's mounted has hot module reloading on it. But although it's it's not true hot module reloading, it's it uh each one is like a Each one is its own React.render, right? So it's actually like multiple routes. Um, and I watch, I tell Webpack to watch the files and when something changes, I just blow away, completely blow away. I un- I think I literally call React.unmount component at that place and then I remount it. So it loses the state, but because they're individual components, like so small, you know, so small and like piecemealed, um, I don't really care. Like I can still develop a dropdown. Um, I, I even have like all of my modals, like you can just scroll past like 15 modals all on one page. Um, and that's how I develop my, my UI. It's like its own little separate ecosystem. Um, and then I can pull in all of those components in into the main app. But yeah, that, that's just like a, an actual design sub, sub package.
[00:54:47] Michael Jackson: I was curious about that. I haven't actually ever used React Storybook, but I, I know a lot of people have, and it seems like it'd be the, for that kind of thing.
[00:54:53] James Long: Yeah. The thing I don't like about it, I mean, It's cool. I I like um I had another tweet about this, which the thing I don't like about Storybook is it forces you to use all these like special APIs, like Storybook like add story and all that stuff. Um and I just, I like to see all of the components at once. I don't know if I'm unusual in that, but like when when I'm talking about all of my components are mounted on one page, like they're literally all mounted on one page. I can scroll through my entire app in one really long page in like 20 seconds. Um.
[00:55:20] Michael Jackson: Yeah, no, I I don't think there's anything wrong with with with preferring things that way. I was just wondering if uh if you had if you had used it. I I've never used either of them, uh or I've I've never actually you know tried to visualize my whole UI library on a single page like that. I think that's an interesting approach though. I think I'll definitely uh I'll definitely try that out with this other app that I'm building.
[00:55:38] Michael Chan: I'm like agreeing with James on like all his opinions. The uh the like the no JSX, we've talked about that before. The like just put the style in the style prop. The style prop is like the best API for style. And then just show me all the show me all the library stuff on one page.
[00:55:52] Michael Jackson: Hey, we we only have smart people. On the React podcast here, Michael.
[00:55:56] Jed Watson: I'm gonna I'm gonna pitch in something different then. Uh just by the way, on monorepo tooling, um check out a a project called Bolt, um bolt-pkg.com. That's something that the team that I'm working with at Atlassian on their UI library developed. Um James Kyle actually has been kind of leading that based on all the things he learned about Lerna and wished kind of could be done differently if he rebooted the project, and then that happened. It's, I think, loosely based on the spec for Yarn Workspaces as well, but it is it's kind of like everything I ever wanted in a monorepo package manager and like nothing I didn't. Um it's made it much, much easier for me to get my head around using monorepos everywhere, whereas previously it kind of felt like a little bit more intimidating and hard to kind of get set up the right way and know how to use.
[00:56:44] Michael Jackson: Cool. Hey, James, before you go, um I just wanted to know, you know, if you had any kind of anybody that you wanted to give like a shout out to or anybody that you kind of wanted to recognize, uh you know, who's doing some awesome work in the React community, anybody you wanted to thank, um and uh and then definitely give you a chance to pitch uh Actual one more time and tell us how we can support you.
[00:57:07] James Long: Um man, I feel like I've been so heads down. Um I'm not even sure what's going on in the React community right now, to be honest. Um if I was to say thanks to anybody, um there's there's one user. Nikita of Actual, who's been like, who's like excited about it, giving me feedback like every day. And so I don't know if you're gonna listen to this, but I just wanna say you're awesome. 'Cause like, it's just cool to have like a user, you know, like like other, I've gotten a lot of downloads. Like I got like 500 downloads the first day, but I think a lot of people, you know, tried it out and was like, oh, that's cool. And then, but they're not using it. So I just wanna give a shout out to Nikita 'cause he, I think- Yeah, that's awesome. Yeah, I don't know. It's just cool. Thanks for all the feedback. Um, wait, I actually do have one, one person that I wanna thank. I have to thank Kent C. Dodds. I have to thank him. I have to thank him because he made React Testing Library and I've already tweeted about this the other day and I did a livestream about it, but React Testing Library is literally the coolest testing library out there right now. I mean, there's like a ton of other work that I, that I definitely should, should thank for. I'm, I'm definitely building this on, on a lot of other people's work. If you wanna download Actual, go to actualbudget.com/beta. It's a very rough site right now. It's kind of, um, it's not, you know, I'm not even linking that in a lot of places. I'll have a more public launch soon. But if you're, if you're listening to this and interested and wanna see what's, what's, uh, what it's all about, you can go to actualbudget.com/beta and give it a spin. Hopefully it will help your finances be easier to figure out.
[00:58:35] Michael Jackson: Awesome. Well, hey James, I have learned so much from you. I've learned again from you today. Thank you so much for coming onto the React Podcast. Uh, thank you all. Also to Michael Chan and Jed Watson for co-hosting uh this episode with me here today. And uh we will see you again on the React Podcast next time.
chantastic.fm