day in the life of a software engineer | 8 hours of productivity | coding with my junior

This content was created by Phil Choi. This content was uploaded by Phil Choi. This is a YouTube video titled "day in the life of a software engineer | 8 hours of productivity | coding with my junior" created on January 13, 2025. It features Phil Choi discussing various topics including software development practices, personal goals, and technical challenges. The content includes a mix of personal reflections and technical discussions, such as coding in Flutter and Elixir, and handling data structures like hashmaps.
Chapters
This looks like a dating app. Right now we need to kind of hook up the back end to the front end, right? He thinks it's his toys in here. Look at this. Look at it. He thinks it's in there. Dude, he's gonna be so bummed out. Like, when he put it in there, I put my hand and I intercepted it and I put in my pocket. Like, now he's like, where is the car? He packed a train with some tractor stuff, bro. Dude, he's gonna be bummed out, bro. Name is Caesar. A good kid. It's Caesar Chanu Choi. So it's like three Cs. Whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa. Channel. Let's get started. It's cold, huh? But I think it was colder yesterday. So the. The principal over at that school. School, he got cancer, so we have to move his daycare center by March. So we've been going and interviewing at night at these other places we got accepted into. Hold on. Everyone's always asking me about my monitor. This is a smaller version of my monitor. Oh, really? This one? Yeah, yeah, the smaller version of it. I always say, like, you know, a day is like another day. But, you know, like, in 2025, you can kind of make promises to yourself. This month, I'm trying to do dry January, try not to drink, lose some weight, go back on looks, max season, you know, level up, dude, and just keep it going. I gotta start studying some more. I gotta study some new thing I might get into. Flutter. Yeah, the thing is, like, I've done flutter, and I heard you can build faster with flutter than react native. So I might switch over to flutter. Just a lot of more. It's a lot more rules, right? And what I was used to using is like, build runner. But there's like these patterns and like, it very, like, oh, strongly typed flutter. Seems okay. Elixir. Gotta get an elixir. And that might be my stack, dude. Flutter and elixir. Flutter. Yeah. Flutter in the front end and elixir in the back end. My stack right now is all node js, you know, react native microservices for backend with molecular and mongo. But I might want to change it up this year and just, you know, it'll give me a reason to go to the cafe and study a little bit more. Going at it, like, what's the issue now? Like, that that president was no longer the president anymore, but he still has followers. The people are protecting him. Because the people that are protecting him are thinking like that North Korea is going to like take over South Korea or something. Come on. They're saying. So we have a hashmap, right? So we can basically say. What I want to do is I want to say one true right when it comes in. And then I want to check if one exists in there. And if it does, then I don't need to add it. You know what I mean? Let's do new map, right? It's a data type. So if hashmap has. And then we'll say const current equals array.I or array I. If it has current, then I just want to continue. I learned this from Jocelyn. And then else, right? Else I want to do hashmap set at the current to true. All right, now at the end, I would like to console log hashmap. Can you run the code real quick? Yep. And do you see how it's 1, 2, 3, 4, 5, 6, 7, 8, 90 and it got rid of all the duplicates. So basically what we're saying is, hey, if it's been seen, right, don't do anything else. Hey, just set it to true. But a lot of people do with an object. And that would look more like this. Like this, right? Or you can say new object or whatever you want. And then basically we can change the logic to more like if hashmap or hashmap hasown property on the current only if that is false, then we can say hashmap at the current equals true. And then we can just return object keys on the hashmap. That should work. Can you try to run it now? Then we just have to do a dot map on number and that should be. That should get rid of all the duplicates. If it's a. Yeah, numbers. You could actually do it many other ways too. There's so many ways to remove duplicates, but it's a common problem you'll run into. That's crazy, bro. Isn't this sick? Yeah, that is pretty sick. Up is like they sell these at the pharmacy. So you take your kid to the pharmacy. Oh, my God. And then they're like crying over the toy. Yeah, yeah, yeah. They know, dude. They know. Jesus. So now we can do add skill wanted. So can you test it out? Skill with no s. Because it's. We're only adding one skill. Okay, now let's turn it into a post request. Then we're going to pass in. And then right there, can you put an API 3000? There you go. And then put the rest of the path in id. No, not here. Because this is a Post request now in the body. We just need to pass in. Okay, so what user. So I want me to want cooking. Okay, so the user id of phil or the guest gmail.com get the user id from there and then get the skill id for cooking. And I want, I want that to be added. That one would be skill ID and that would be cooking. Okay, so you see the skills wanted got put in. Yep. Can we actually go. Yeah. Can we actually please go into the. The Mongol and see how that looks right now? Yeah. I don't know why skills provided is coming back as an object or array object because we stored it as a string. But we put the populates inside of the settings and I'm wondering if that get by ID is automatically transforming the document. We have to look in the users. Okay, it comes back. Do you see how skills provided becomes an object in the response? Because we added the logic, but we never added the logic for skills wanted. Right. Okay, so we need to fix that. All right, so now inside of the login user we're going to have to do something very similar. So here we're going to actually call this skills skills provided. Now we got to do the other way. Let skills wanted equal find user skills wanted. All right, if skills wanted. So if it's not null, we need to do the same thing. Okay, so now he wants, so he, this guy is, does web development and he wants cooking, right? Phil wants cooking. Okay, now we need to add a skill wanted to of web development to mini. Can you do that? So add skill wanted. So you need to get his ID and you need to get the web dev ID. That's that ID right there. I see it. It's on line 13. Can we take like a two minute breather real quick? Be right back. Both of the people have skill wanted and skill provided now, right? Yeah. So now how the app needs to work is you need to find matches, right? So say that I walk in, right? I walk into the app and I provide a skill, right. I need to find people that need my skill and I want their skill. Right. So how would I do that six hours later?
More from Phil

day in the life of a software engineer | 5 hour productivity | building my dev agency 🔥

day in the life of a software engineer | 3 hour productivity | coding my 6-figure community startup

day in the life of a software engineer | 5 hour productivity | coding our sns startup app LFG

day in the life of a software engineer | 5 hour productivity | creating apps that makes big money






