chantastic.fm

30: Develop in the Cloud with Christina Holland

Episode 30 · November 28, 2018 · 00:32:21

Hosted by chantastic · With Christina Holland

Download MP3 · Jump to transcript

React Holiday

Season two starts December 1st.
Signup here!


Christina is a developer at Google and speaker at React Conf 2018. Chantastic asks her about her cloud development process. They talk about changing careers, building brains, cheating imposter syndrome, speaking at conferences, and all the services you'll need to create your next app with less software and fewer servers.

Featuring

Links

Editor/Env

Hosting/Platform

Auth

Transcript

[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. Today we have a great episode with Christina Holland. I was really excited to sit down with her and hear about how she's moved her entire development process into the cloud. This is something that I've tried over and over again, but have never gotten quite right and have never been totally comfortable with. And I had so many questions and she has the answers for us. If you have wanted to move more of your work into the cloud and worry less about the machines and maintaining and provisioning your box, this is a great episode for you. I'm really excited to share it with you, and we will dive in right after a word from our sponsor. This episode of React Podcast is brought to you by React Training. They provide hands-on, in-person training for development teams taught by community leaders and experts. For more information, visit reacttraining.com. Christina, thank you so much for joining me on this show today.

[00:01:09] Christina Holland: Yeah, thanks for inviting me.

[00:01:10] Michael Chan: So we're at React Conf 2018, and you had a really compelling talk where you developed a like a to-do list with a couple twists. Uh one, it was gamified, and um two, you did it all in the cloud, which is uh which is pretty ambitious. You didn't really download, I mean, download anything to make the app run to your computer. Is that right?

[00:01:35] Christina Holland: Yeah. All I had on my computer was the browser, Chrome OS. It's a Chromebook, factory Chromebook without Crostini, without the Linux installed. So that's the only possible way I could have done it.

[00:01:45] Michael Chan: That's so crazy. So you were using that Chromebook on stage?

[00:01:48] Christina Holland: Yep.

[00:01:48] Michael Chan: So that's like pretty ambitious. Were you nervous?

[00:01:52] Christina Holland: I was extremely nervous. In fact, like the day before that I was practicing, Node just came out with version 11.

[00:01:59] Michael Chan: Oh no.

[00:02:00] Christina Holland: And I had been NVM install Node which installs latest, and one of my dependencies doesn't work with Node 11. So it was hanging, I couldn't figure out why, and I was like, "Oh, if this happens on stage, I'm screwed."

[00:02:12] Michael Chan: All of the demos that I've seen that fail on stage are because of internet connection.

[00:02:17] Christina Holland: Yeah, really.

[00:02:19] Michael Chan: So this is very brave of you.

[00:02:20] Christina Holland: Yeah, but I had no choice because the whole point of my demonstration, as I was telling Sophie during our dry run, is I have to prove that this can be done in 20 minutes quickly. And that means I have to actually do it. I can't just tell people, here's some video, here's some screenshots, trust me.

[00:02:38] Michael Chan: Yeah, it doesn't mean as much if you just took videos of you doing it. In the back of everyone's mind is like, oh, well, I couldn't do this because I don't have like a persistent internet connection or like internet's not reliable. And you were able to kind of prove that like over the conference Wi-Fi that you could give a talk where you did it.

[00:02:53] Christina Holland: Well, I gotta confess, I had an ethernet connection.

[00:02:56] Michael Chan: Oh!

[00:02:57] Christina Holland: I would not have trusted conference Wi-Fi

[00:03:00] Michael Chan: Yeah, yeah, yeah. We'll go into that, the specifics of the app that you built in a second, but I just wanted to get a sense of like how your experience was talking at React Conf.

[00:03:11] Christina Holland: It was really cool. I was really nervous. Uh, one of the things I gotta admit I like about talking at conferences is I get to feel like a celebrity. And uh, I used to work in the movie business, so I kind of missed that.

[00:03:26] Michael Chan: What did you do in the movie business?

[00:03:28] Christina Holland: I used to work in animation for 10 years.

[00:03:31] Michael Chan: Oh, cool.

[00:03:31] Christina Holland: Worked on such movies as uh Megamind, Madagascar 3, How to Train Your Dragon 2.

[00:03:37] Michael Chan: Wow, I've watched those with my kids. I've seen your work.

[00:03:41] Christina Holland: Yeah, my name would be at the end.

[00:03:42] Michael Chan: Nice, nice. So you were doing those, um what kinds of technology were you using to do those?

[00:03:47] Christina Holland: Uh there's a software, so I was working on the crowds team, which is developing- making any scenes that have more than 8 characters in them is how it's defined at DreamWorks.

[00:03:58] Michael Chan: Interesting.

[00:03:58] Christina Holland: So there's a software that was developed for Lord of the Rings to do the massive battle scenes, and it's called Massive. And so it's like you create AI characters and you can- so you build their minds and their brains, and then you instantiate as many as you need, and they kind of do their own thing.

[00:04:18] Michael Chan: No way.

[00:04:18] Christina Holland: So it was my job- so I interned there. At the company that was started to sell that software. And then uh I was a consultant for a while, and I taught other clients how to use that software. And then um I decided I wanted to work on actual movies myself and get my name in the credits. So I asked to get referred to a company, and I started making them. So I worked at the companies building the characters, building their brains and AI. And then- hand them off to artists to put them in the shots.

[00:04:51] Michael Chan: That's so fascinating. We've talked a lot in this first day of React Conf uh talks, kind of the idea of like declarative versus imperative, and that seems kind of like a declarative way of programming those scenes of saying like, "Hey, here's here's the way you think about the environment, now go do it." Yeah,

[00:05:11] Christina Holland: the building the brains is really interesting. It was uh kind of like a state machine basically. Like every action would be a pose, so stand would be a pose and walk would be a pose, and then you would have actions that they play as they go between them. So after you set up the tree of motion capture clips and uh which clips play between which poses, you just tell the character, "I want you to walk now," and it'll take whatever steps it needs to get from the current pose to walk. So if it's standing, it'll play stand to walk, and then it'll play the walk loop.

[00:05:43] Michael Chan: Oh my gosh. That must be super fun. I mean, to see those things come to life. Yeah. Not necessarily know what you're gonna get.

[00:05:50] Christina Holland: Yeah, it's like, uh, a lot of people are like, "Oh, you're doing AI, you're programming things." And I was like, "No, it's a UI, I'm just connecting nodes."

[00:05:59] Michael Chan: So how does that work? Do you do a bunch of takes and then just take the best one, or-

[00:06:05] Christina Holland: Oh, the actual motion capture?

[00:06:06] Michael Chan: Yeah, the motion capture.

[00:06:07] Christina Holland: Yeah, yeah, yeah. You go to the studio, you have an actor, and you have them do walks very precisely, 'cause you have to be able to connect them to each other. So you're like, your step length has to be this long, you have to end on the right foot, stuff like that.

[00:06:20] Michael Chan: So how- How then did you transition from that type of animation into uh web development?

[00:06:25] Christina Holland: In that job, I'd been doing a little bit of coding in Python to help me manage the files. Because all of those files uh were saved as text files, so you can go in and edit them. And some of the more complicated stuff, it's more easy to do it that way than through the UI. So I was just doing these really sloppy Python scripts to help me do that work. But I didn't really know how to program. I never had any formal programming training. So, when the company went belly up and my choice was to uproot my family and move to LA or find a new job, I was like, "Well, uh, I live in the Bay Area, so, you know, software is never gonna go away, so I'll do software," even though I didn't know anything about it. And I was uh 4 months pregnant.

[00:07:11] Michael Chan: Wow.

[00:07:12] Christina Holland: And I was like, "That's okay." Uh, so what I need to do is I need to, in the next 5 months, learn how to do software and then get a job in about 2 weeks. So yeah, I went to a boot camp for 3 months, had a month left when I finished boot camp. So just kind of crashed all job applications by filling out like 70-something applications in 2 weeks and then got a bunch of interviews. And took the first offer I got because the baby was due.

[00:07:48] Michael Chan: Look, I gotta close this deal fast.

[00:07:51] Christina Holland: Yeah, but it was, uh, I also had a good feeling about the company, and it was a really good company.

[00:07:56] Michael Chan: That's crazy. Uh, so how, how long ago was that?

[00:08:00] Christina Holland: Uh, about 2 and a half years ago.

[00:08:03] Michael Chan: Nice. So what did you do in that job, and what are you focusing on now?

[00:08:07] Christina Holland: Okay, so in that job, it was a startup called Pepper Data, and We were a B2B business. We sold uh a service to people who have distributed computing clusters like Hadoop and such, Spark. And we helped them monitor what was going on in their systems and optimize it. So there's a dashboard, I worked on the dashboard. We used React and there's a lot of charting involved. Yeah. So all of my previous talks have been about charting. So that was a lot of fun. And now I work at Google. And we don't use React on my team. Other people at Google do. And the product I work on is called Keep. It's part of Docs. It is a note-taking app. And it's available-

[00:08:50] Michael Chan: Yes, I used it.

[00:08:51] Christina Holland: Oh yeah. It's available on Android, iOS, and web. And I do web. Most of our users are on Android.

[00:08:57] Michael Chan: Well, that's awesome. That's crazy that you were able to make that career shift and then you're less than 2 years later end up at Google.

[00:09:05] Christina Holland: Yeah, um, I guess I have I have very high expectations of myself because um I'm Asian and I was raised by Chinese parents. And my mom was always, uh like I guess her mantra was, "You're smarter than this and you're wasting your potential." So everything I did, I always felt I could do better.

[00:09:26] Michael Chan: Yeah, it's kind of hard to get those messages of our parents out of our uh our brain.

[00:09:30] Christina Holland: Yeah. So, um, so yeah, I think a lot of people talk about like having imposter syndrome and how it kind of sets you back. And I guess how white males do better because they have a sense of entitlement, that they feel like they should deserve this job or should be able to do this or that, and they don't get held back by imposter syndrome. So, um, I kind of have the same thing because my mom for example, tells me I should be able to do anything and I'm smarter than everyone else. So when I go apply for a new job, when I go like, "Can I go into software from animation in 5 months despite not knowing anything?" I'm like, "Of course, because I'm so great." Not really something to be proud of, but-

[00:10:16] Michael Chan: I mean, in terms of uh work, I feel like that's a great-

[00:10:19] Christina Holland: It's handy.

[00:10:20] Michael Chan: A great quality to have.

[00:10:21] Christina Holland: It's handy to have the confidence of a white male, as people say.

[00:10:26] Michael Chan: So now, your your talk that you gave this morning was not at all anything to do with Keep. It was um around a to-do app. How did you come up with the idea of gamifying a to-do app?

[00:10:37] Christina Holland: Well, this is kind of a running joke that to-do apps are the go-to demo and that nobody likes them because they're really boring. So uh every time people say things like that, I take it as a challenge. I was like, nobody could possibly make a to-do app that could hold my interest. And I'm like, challenge accepted. So I was like, I bet I could, you know, you just have to think out of the box. Yeah. So I was like, what could I do?

[00:11:07] Michael Chan: That white male confidence. Yeah.

[00:11:09] Christina Holland: Yeah. If anyone tells me I can't do something, then I'm like, hmm, I bet I could. So yeah, I was like, uh, How would you do that? Because if you check off- all you can do is check off boxes. I don't want to stack the deck and add other interactions. So if all you can do is check off boxes, then what choice does the player have other than to check off the boxes or not? So it was like the player cannot check off the boxes. And I had to cheat a little bit because the only way this would have an effect is if you put in a time element.

[00:11:41] Michael Chan: Yes.

[00:11:42] Christina Holland: So I had to add a clock. So if you don't check off the box by a certain time, something else happens.

[00:11:48] Michael Chan: I noticed that. There was a there was a point where like an angry mob came after you.

[00:11:51] Christina Holland: Yeah. Yeah, well, there's like a plant that I never watered. And as I continued to not check the plant boxes, it began to it died, it began to rot, and then it attracted flies, and then I had maggots in my apartment.

[00:12:05] Michael Chan: That's not good.

[00:12:08] Christina Holland: No, yeah. So it's a lesson, I guess, about something.

[00:12:12] Michael Chan: Well, goal number 1 was accomplished. It was very compelling. And um the second goal was that you did it all in the cloud.

[00:12:19] Christina Holland: Yeah.

[00:12:20] Michael Chan: So um tell me about that experience.

[00:12:22] Christina Holland: So that was um kind of inspired actually by starting work at Google, where a lot of the work is done in the cloud. And so we SSH into machines, we use a cloud IDE. And at first it was kind of weird, 'cause I'm used to the standard development paradigm where you have a MacBook, you get cloned stuff onto your hard drive, and you run local dev server on your MacBook if you need. A SQL server, you start a SQL server on your MacBook.

[00:12:50] Michael Chan: Yeah.

[00:12:50] Christina Holland: At Google, they don't do it that way, and I thought it was kind of weird at first. And then I was like, wait, it's actually kind of cool, because I can go home and do this, I can go on another computer and do this, and I can be in the lab or in the classroom, and I can go change something at work really quick. So I was like, this is really cool. And then I was like, I also want to continue working with React on my personal projects, because I really like React. But I don't I can't use the Google tools for that because that's my personal projects. And I have this Chromebook and I can't download anything onto it, and I probably shouldn't because it's work machine. So I decided to see what I could do with publicly available services. Uh looked around for an IDE and um you know I always kind of wary of Amazon because it's it's the competition.

[00:13:39] Michael Chan: Sure.

[00:13:40] Christina Holland: And AWS is notorious for not having a great UI, but I looked around and it was really the best option. I tried some of the free options and they weren't quite as user-friendly, had some UI glitches. CodeAnywhere, I think, had a couple of glitches I wasn't too happy about.

[00:13:58] Michael Chan: Yeah. So so what were some of the options that you found? So you have the AWS Cloud9.

[00:14:03] Christina Holland: Right. CodeAnywhere, something called CodeEnvy. C-O-D-E-N-V-Y, which looks like Codenvy to me, but I think it's supposed to be Codenvy. And I haven't tried that extensively. And there's also something called Glitch. That's-

[00:14:19] Michael Chan: Yes.

[00:14:20] Christina Holland: That's a company now. It was put out by a company that used to be called Fog Creek.

[00:14:24] Michael Chan: Now it's Glitch, right?

[00:14:26] Christina Holland: Yeah. And it's their mission is to make coding easy. And it's a lot like- yeah, it's a lot like doing the Amazon thing. It has a little more limited features, but it's easier to start up with. It's uh if you want to just transfer your standard developer workflow into the cloud, uh that might not be the tool because you got to get used to a new way of thinking about it. But it's pretty cool and it's free. Uh Amazon does charge for the EC2 instance and for the EBS instance that stores your files.

[00:15:00] Michael Chan: Okay.

[00:15:01] Christina Holland: But it's like, yeah, I've been practicing all month. For this talk, starting up things and developing my own other projects. And it was only $7. So it's not really prohibitive.

[00:15:12] Michael Chan: So when you say you're developing in the cloud, you have so you have Cloud9 as the IDE, um but then also you're you're npm installing stuff somewhere, right? Like so you showed us um using create-react-app. Is that right?

[00:15:26] Christina Holland: Yeah.

[00:15:27] Michael Chan: And so is that where the EC2 instance comes into play?

[00:15:29] Christina Holland: Yeah. So you when you open up the IDE, you get a shell into the EC2 instance that it has started up for you. And that's uh the settings for it, the bashrc and all that, that's permanent as long as you keep that instance. Even when the instance shuts down, spins up again, everything you put in your environment persists.

[00:15:48] Michael Chan: Wow. So what is it like then doing the inspection, like looking at the browser? Is that part of the IDE or do you just uh visit that EC2 box, like, by URL?

[00:16:02] Christina Holland: There's a link directly to it in the IDE. You can just click Preview Running Application and it'll open it up for you in a pane. If you don't like seeing it in a tiny pane, there's a little button you can push to open the whole thing up in a new tab. I don't know how to generate that URL. It's like 50 numbers and letters. So I require those buttons. And that's only accessible to the person who is running the IDE. It's not- you can't pass that URL to somebody else and say, take a look.

[00:16:30] Michael Chan: So there's a level of security that you have in development.

[00:16:33] Christina Holland: Yeah. So it's more or less localhost, except the localhost is the EC2 instance in Amazon US East 1 somewhere.

[00:16:41] Michael Chan: So what were the big wins in your mind of using this approach? You mentioned that it's a technique that you use at Google, so you're like comfortable with it. Um, but are there other wins that you found working on personal projects that weren't work-related? In this kind of cloud environment?

[00:16:59] Christina Holland: Oh yeah, so the environment, it retains its state wherever you go. So even if I'm working on something on one computer and I don't remember to git commit and push, even if I go to another computer, I can log in and stuff is where I put it. I don't know if anybody's ever run into the problem where you use GitHub, but you got to git clone every time you go somewhere new and git pull, and then you're like, oh, I never pushed.

[00:17:27] Michael Chan: Yes, that is so frustrating. So you can effectively just pick up any computer and start working.

[00:17:34] Christina Holland: Yes. In fact, theoretically, because it's just a browser, you should be able to do it on an iPad. And I was gonna try to demo that, but there's like a little hiccup getting Cloud9 running on iPad because of sockets maybe or something.

[00:17:50] Michael Chan: I have had- I've tried a number of the um kind of code playground, like CodeBin type things, um on iPad, and I have had like kind of bizarre difficulties with mobile Safari for whatever reason.

[00:18:04] Christina Holland: Yeah, something about mobile. Yeah, the rest of the workflow is available on the iPad though, so if I want to screw with my Firebase config, I can do that.

[00:18:13] Michael Chan: So that, that brings up an interesting question. What are you using for the the peripheral services? So we we have a we have an editor, we have a box, um but what are you using for things like login? What are you deploying to, etc.?

[00:18:30] Christina Holland: Right. So all the backend as a service, I've been using Firebase because it's really convenient and not because I'm shilling for Google, which owns it.

[00:18:42] Michael Chan: It's a good product though.

[00:18:43] Christina Holland: Yeah, it is. And it's pretty much the only game in town as far as I can tell since Parse went away. It provides auth, it provides a database, a real-time database. It provides storage for like images and movies and whatever. And it provides hosting that I don't like as much as Netlify.

[00:19:03] Michael Chan: Okay.

[00:19:03] Christina Holland: Or now. And it provides cloud functions.

[00:19:09] Michael Chan: Oh, awesome.

[00:19:09] Christina Holland: And it also has an ML kit now that lets you set up your app to recognize street signs or faces or whatever.

[00:19:17] Michael Chan: Really?

[00:19:17] Christina Holland: That I have not tried yet, but yeah.

[00:19:20] Michael Chan: That's amazing.

[00:19:20] Christina Holland: But I see it in the sidebar, so it's there.

[00:19:22] Michael Chan: So using Firebase, you could set up a whole app.

[00:19:26] Christina Holland: Yeah.

[00:19:27] Michael Chan: How does the authentication work and um storing users and and all of that? Is that all baked in as well?

[00:19:33] Christina Holland: Yeah, so you can the auth, you can set up any kind of sign-in, including email, and a bunch of OAuth providers like Google, Facebook, Twitter, GitHub, Google Play for some reason. Um, oh, because because Firebase is uh a lot of a lot of it is targeted at mobile apps.

[00:19:54] Michael Chan: Gotcha, okay.

[00:19:55] Christina Holland: So that's probably why.

[00:19:56] Michael Chan: Like native mobile apps.

[00:19:57] Christina Holland: Yeah, that's probably why the Google Play. Yeah, so you set up those services and it will take care of everything for you. It'll link them together if they sign in with both email and Google, for example.

[00:20:09] Michael Chan: That's amazing, because I've had some experiences where I go to a site and I'll use like Twitter and then they add GitHub and I'm like, I can't remember what I used. And then I sign in with GitHub and now I have two accounts. Oh no. It's like so irritating.

[00:20:20] Christina Holland: Yeah, so it creates the the whole user account, all the stuff you need, display name, grants them a unique UID, and then there's a Firebase UI library that you can use to just put a button on the page for sign-in.

[00:20:33] Michael Chan: Now, are there competitors in the authentication um login space?

[00:20:38] Christina Holland: Yeah, definitely. That's probably not the primary. Um, Firebase probably doesn't dominate the market for auth. So two big players I know are Auth0 and Okta.

[00:20:48] Michael Chan: Okay.

[00:20:49] Christina Holland: Um, here I've heard good things about Auth0 but haven't tried it. I have tried Okta at my previous work and we did not like it. Didn't love it.

[00:20:59] Michael Chan: So if you didn't need Firebase, if you were using some other type of backend, could you still use Firebase for auth?

[00:21:05] Christina Holland: Yeah, it can work independently.

[00:21:07] Michael Chan: Now, what are the other some of the other pieces that you had to figure out in order to do this whole cycle in the in the cloud? You mentioned now.

[00:21:15] Christina Holland: Right. So after all of this auth and database stuff set up and you got the localhost running, I mentioned that the preview that you see in the IDE has a URL, looks like it's on the internet, but nobody else can see it. And there's a number of steps that Amazon makes available so you can make it publicly available so other people can see it. But the steps, uh I went through it in the presentation, it's a very long series of steps that I've not even been able to read through.

[00:21:45] Michael Chan: Okay.

[00:21:46] Christina Holland: So public deployment is like something that people are can be kind of nervous about. They're like, oh, I just want to show a couple of friends or my coworkers or my teammates. I don't want to make it publicly available to the internet. I don't want to go through the whole deployment thing. So uh but now is actually not very onerous. It's uh it's just like uh one command pretty much.

[00:22:08] Michael Chan: Yeah.

[00:22:09] Christina Holland: You just npm install a Now package and then you type Now and it deploys. Uh you have to make- the first time you type Now, it makes you make an account, but that just consists of putting in your email and then checking your email and pushing a button.

[00:22:22] Michael Chan: Yeah.

[00:22:23] Christina Holland: And then once that's set, you just type Now and it'll automatically deploy your app. You didn't even have to build it to the internet and give you a URL and everybody can see the URL. And every time you type now hereafter, it'll uh put up a completely new deployment. So you have a history of every deployment you've ever deployed. And then it lets you do an alias, so you can get a you know a human-readable name and point it to whatever deployment you want the public to see.

[00:22:50] Michael Chan: That's so wild. So that's such an amazing product.

[00:22:54] Christina Holland: Yeah.

[00:22:54] Michael Chan: Yeah. I've I've been long impressed by the work that they're doing. With um with Now and a lot of their open source work is really incredible.

[00:23:03] Christina Holland: Yeah. I mean, deployment went from being like, oh, something I should only do at the end because it's so hard to like, I'll just do this whenever.

[00:23:10] Michael Chan: Yeah. Well, and rollbacks just become like, oh, point the alias to this other thing.

[00:23:15] Christina Holland: Yeah. So Netlify also works like that. It doesn't have that easy one command deploy at the beginning, but it it uh does. And Now also does this, deploys when you push to GitHub master.

[00:23:26] Michael Chan: Yeah.

[00:23:27] Christina Holland: And it allows you to have more deployments and it does and it they're always up. The thing about now is they it spins down when it's inactive and spins up when somebody hits the URL.

[00:23:38] Michael Chan: I see.

[00:23:39] Christina Holland: And you can only have 3 instances running at one time.

[00:23:42] Michael Chan: Crazy. So so those seem like some of the joys and some of the great experiences. Uh were there also bad experiences, poor experiences, things that you had to you felt like you had to worry about that you might not have had to worry about if you did local development?

[00:23:57] Christina Holland: Yeah, so a couple of things are just not having reliable internet connection all the time. You can't really do this on a plane. Uh, some people saw during the demo, when you're developing on Firebase, uh, and you leave it open, then it's uh it's kind of a security problem.

[00:24:17] Michael Chan: Anybody who has- Oh yes, people started adding to-dos to that.

[00:24:20] Christina Holland: Anybody who has your API key and project name can mess around with your Firebase if you haven't set the rules yet.

[00:24:27] Michael Chan: Did that startle you a little bit?

[00:24:29] Christina Holland: Yeah, I didn't know what to do with that, but I was like, okay, that's fine.

[00:24:33] Michael Chan: I remember seeing the first talk I ever saw online about Node was with Ryan Dahl, and he was- he was presenting this idea of Node and opened up a TCP connection, whatever, and was like showing everyone how it worked, and immediately people started posting messages to it. So yeah, it's one of those things that I feel like you kind of assume people are just like watching, but like some people are just super quick on the draw and they're like, I see it, like copy and paste it in, and then just start hitting you with to-dos.

[00:25:05] Christina Holland: Yeah, so that's obviously the worst if you're doing a presentation and people can actually see your code while you're doing it. But even if not, when you're in the cloud, everything that you have is on the cloud. So even during development, you have to secure your stuff.

[00:25:19] Michael Chan: Now, um, Firebase has good tools for that. Is there a baseline strategy for securing your app? I know that that might be a step that a lot of people who are experimenting with Firebase might not, um, might not think about right off the bat.

[00:25:32] Christina Holland: Yeah, probably the first thing to do is to go to the rules and uh set a read-write rule on all documents that a user has to be logged in. If you haven't set up login for anyone else, then that's just you. Uh, if you have set up login for other people, you can also say the only person who can read and write is you by putting in your user ID or email or display name or something. And then when you are actually ready to deploy to prod, you can set more granular rules for users being able to do their own stuff.

[00:26:03] Michael Chan: Any other tips or tricks that you have for someone who's looking to move their development experience into the cloud?

[00:26:09] Christina Holland: Like if you're just trying stuff out, think about possible lock-in. There's no real lock-in with Amazon. Cloud9 because anytime you want to get out, you can just git push your code and then shut down the whole instance. Firebase is harder to get out of because uh it's got its unique way of storing data. So you can export it, but then you have to figure out a way to import it to the new thing you want to use. Um also, as far as getting out of Firebase, when you- so you have a limit of projects on the free account, which is 8. I think, and when you hit your cap, you might think you just delete a project and then start a new one, but it actually takes 30 days to actually really, really delete it.

[00:26:54] Michael Chan: Really?

[00:26:55] Christina Holland: Because it's some kind of Google Cloud policy. When you really- when you delete some one of the Amazon Cloud9 instances, it's gone the moment you say you want it gone.

[00:27:06] Michael Chan: Okay.

[00:27:07] Christina Holland: So-

[00:27:08] Michael Chan: Good to know.

[00:27:09] Christina Holland: Yeah.

[00:27:10] Michael Chan: So you can't fill up that block at uh 8 and then just kind of hot swap them.

[00:27:15] Christina Holland: Yeah, this is something I figured out as I got very close to the actual presentation, is they warned me that my quota was getting full and I was like, I didn't know I had a quota. And I tried to delete some and they didn't, they didn't uh go. They said it'll be gone in 30 days.

[00:27:28] Michael Chan: Gosh. So did you have to repurpose one of the ones you already had?

[00:27:31] Christina Holland: Yeah. So I was like, I gotta reuse one of the old ones every time I practice then.

[00:27:35] Michael Chan: Oh, crazy. Uh, what do you recommend for people who are trying to find a project that they want to work on in their spare time, um, but maybe are coming up short uh with inspiration?

[00:27:48] Christina Holland: Yeah, I, I mean, I never have trouble coming up with projects because I'm just one of those people who's always coming up with crazy ideas and not executing them. So I have the opposite problem. Yeah, I just don't have time. But um most of my inspiration comes from solving problems in my life. Um not the to-do app, obviously, but I guess that kind of came from solving a problem. Like I saw people complaining about how boring to-do apps are, and I was like, "That's not a problem. I can fix that." But uh I recently built a forum for a bunch of friends of mine that— uh like we've been online on this comedy website forum since 2003, and uh the uh the personal part of the forums is shutting down. So I wanted to build a forum for everybody to go to by the end of this month. And everybody was talking about migrating to Reddit or this or that, and I was like, no, no, no, I can do it, I promise. I'm gonna do it in React, it's gonna be so easy. Um, it wasn't so easy, but I did it. Nice. So, and then another app idea I had Uh, I I had this problem with friends. I have a lot of old friends that they're really good friends and I want to keep in touch with them, but I, you know, we just, we have kids, we don't have time, we live far apart, so we don't really see each other or talk to each other more than once or twice a year. But I want to make sure it doesn't turn into 2 years or 3 years. So obviously for that length of time, setting up Google Calendar reminders or something is probably not the way to go. So I set up an app where it's basically like, on the surface it's an address book. You have a list of all your friends you want to maintain contact with, and then you set up rotations for, "I want to make sure that I text this friend once a week," or that I call my friend twice a year. And then when the time comes, um, it'll remind you. And then it also lets you track important details about them, like their kids' names or their their relationship status. So, you know, if it's been a couple of years, you don't remember their kids' names or how old they are. So now it'll tell you that their kid Joe is 5, and you can be like, oh, is Joe starting kindergarten?

[00:30:02] Michael Chan: I need this in my life.

[00:30:06] Christina Holland: Yeah. So I wanted to build that, and I wanted to build a mobile on React Native, which is maybe too ambitious. But, um, so I haven't finished that yet. But yeah, it was just problems I noticed in my life, and then I was like, there's an app for that, or there should be.

[00:30:21] Michael Chan: Should be an app for that. Well, what projects and people are doing work that you're excited to track with over the next uh kind of weeks, months, and years?

[00:30:30] Christina Holland: One thing that seems really interesting is GraphQL, which reminds me a lot of Firebase.

[00:30:37] Michael Chan: Yeah.

[00:30:38] Christina Holland: In how you query the server, it's much more intuitive than your standard REST query. I've always wanted to use it. It seems really easy to use on the client side and really tricky to set up on the server side.

[00:30:49] Michael Chan: Awesome. Uh, any parting wisdom for us?

[00:30:52] Christina Holland: Yeah. If you have any great ideas for an app that you think should exist, no matter how dumb it is, you know, go ahead and do it because you see how easy this workflow is. It costs it costs you very little. If you uh if it doesn't work out, just throw it away and never tell anyone about it. But you can try it out in like half an hour.

[00:31:12] Michael Chan: Awesome. Well, Christina Holland, thank you so much for sitting with me, telling us how we can move our developer experience into the cloud. I really appreciate your time.

[00:31:20] Christina Holland: Thank you.

[00:31:22] Promo: This has been episode 30 of React Podcast. Thank you so much for listening. For notes to the people, projects, and things mentioned uh in this episode, visit reactpodcast.com/30.

[00:31:39] Michael Chan: As I mentioned last week, we're doing another season of React.Holiday. It's a 25-day course in React starting December 1st. And it will be great for beginners, but also an awesome opportunity for you to learn hooks and Suspense. We've already got hundreds of people on the list, but it'll be way more fun if you're there to enjoy it with us. So go to React.Holiday and sign up for the newsletter. As always, thank you so much for listening. We'll be in your ears again next week with an amazing episode with Ryan Florence.