Transcript
00:00 Alright. Let's go ahead and make that type. So this is gonna be type task and the properties are going to include a number, a title, and completed. And, of course, our AI knows exactly what to do from here, so let's just review it to make sure that it didn't make any mistakes. So here's our first task.
00:17 It is of type task and the AI is saying, hey, you don't need this right here. And, yeah, technically the AI is true, but check out what happens if I say blah blah. Everything is fine. And maybe that really is fine to have that extra data. Like, maybe it's okay.
00:34 But, yeah. Maybe it's not. Or what if I did this? Uh-oh. Now I'm in a bad spot because false as a string is not actually false.
00:43 And so what this is doing for us is it protects us from making those kind of silly mistakes. And, yeah. This is actually really helpful in arguments and like options that you're passing to a function or something like that. Being able to have an object, that has a structured set of properties is quite useful. And I use this very often.
01:06 So there you go. Hope you enjoyed that one.
