Placeholder Image

Subtitles section Play video

  • everybody.

  • Welcome to live coating with Jesse.

  • I'm Jesse.

  • And today we're going to finish, uh, the division mode.

  • And depending on how much time we have, we'll see what else we're going to do.

  • But I definitely want to try to get division working properly.

  • Um, so let me check the last chat.

  • Just say hi, everybody.

  • Um well, question about the programming language will use its gonna be JavaScript.

  • Also have a question or suggestion to get fire code and enable ligatures for those You don't know what that is.

  • That's like a font for a code editor.

  • And it does some cool things with, like, aero functions in equal signs and stuff like that s o I actually have had fire code installed before on a different computer.

  • So on my work computer at my old job, I had that.

  • So it is pretty cool.

  • I may do it again, but probably not for this dream, because I want to get other stuff done, but, uh, definitely definitely looks cool.

  • So I'm open toe having that again.

  • For those of you are just joining, I'll give you a quick breakdown of how this goes.

  • This is ah, live project.

  • I did not rehearse any of this before, so I will most likely make mistakes.

  • Ah, and also some of the stuff we do on the show.

  • A lot of it I've never done before at all s.

  • So we're gonna try to figure it out As we go along.

  • I usually try to set a Pomodoro timer.

  • Ah, that means I'll do 25 minutes of coding, take a five minute break and answer some questions in the live shot.

  • If I have time at the end of the Lifestream streams usually go about an hour long.

  • If I have time at the end, I'll answer as many questions as I can in a live chat.

  • So go ahead through the questions in there.

  • Um, any you can ask whatever questions you want.

  • So don't worry if if you think it's a new question or something, like, there's a lot of beginners in here.

  • Um, so any questions air fine.

  • Also feel free.

  • If you see a question in a live chat that you can answer, go ahead and answer it.

  • Uh, like to have a nice like community that's helpful to each other on the streams And I think that's it for all the getting started stuff, eh?

  • So let's jump into it.

  • First things first.

  • I want to give a shout out to ah to do for the poor request that I just merged.

  • I'm not gonna go over this one because we did in the last dream.

  • So if you're interested, check it out on Lee.

  • Thing that changed was there was some division logic in there.

  • Ah, that was removed because it was I did a bad job of explaining what I wanted toe happen.

  • Eso We clear that up in the last dream.

  • So this just clears the input after a submission.

  • Eso we'll see that now.

  • Since it's merged in, If you have the project running locally, make sure you update Update your fork s so you get all these new updates also harsh.

  • It submitted a pool request where he migrated all of our testing from puppeteer and mocha to Cyprus.

  • I checked out what changed in the code, but I haven't done anything with it myself.

  • So we'll run our tests.

  • Sweet.

  • Just to see, Like what it looks like.

  • Um, but thank you so much hardship.

  • I'm excited to try out Cyprus.

  • So I've heard good things about it.

  • And those were the pool request for today.

  • Ah, the link to this repo is in the description for the video.

  • If anybody's interested, please check it out.

  • Feel free to contribute code if you want or listing the issues.

  • We still have some open issues here.

  • We're gonna do this one today.

  • Um, but this project is definitely a great project for beginners to get in your first pool request.

  • If you need help doing that, just let me know.

  • I'll be happy to walk through it with anybody.

  • Um, if you submit a pool, requesting is totally wrong.

  • I'm not gonna be upset.

  • Um, I want this to be ah, like a very pleasant experience for anybody who's trying to get into using Get up.

  • All right, so let's go over what we want to happen with division, and then we'll go through.

  • If anybody's interested in what this project actually is, I recommend you, uh, check out like video one and two of this series.

  • So I remember what this is.

  • Um what numbers?

  • His project Seven.

  • So any videos you see this have p seven and them.

  • It's that's part of this project together, like P 71.

  • That would be the first video.

  • I explain it more, um, in there, but you'll catch on as we go along.

  • It's a pretty simple app.

  • Okay, so here's what I want, Since this is an app for little kids who are just learning mass, at least for the level one, which I hope to add more levels to this eventually.

  • Level one division needs to be Onley numbers that when you divide them, will give you a whole number.

  • So I have examples here.

  • So examples of good problems tohave would be nine divided by 34 divided by two.

  • But we're never gonna have one that will result in a decimal or fraction right three divided by 29 about it before s.

  • So that's the problem we're going to try to solve today is how do we make sure that it's only numbers that equal whole number?

  • Um, I could see the easy answer is we could hard coat it just right off the top of my head.

  • However, in my mind, I could see this game having increasing levels of difficulty that would include right now, it's only single digit.

  • It could include double digit triple digit.

  • In that case, hard coating wouldn't be a great option.

  • Uh, that's some point.

  • You know, we may want to include decimal numbers in the game when it gets that hard.

  • But first, I'd like to continue to keep it whole numbers.

  • So, um, we need to keep that in mind.

  • So I'm gonna say hard coating is not an option for this.

  • Even though, you know, for for just our problem sets for this show.

  • Specifically, it probably would be the fastest solution.

  • Um, let's go to the code way.

  • All right, first things first, and I recommend doing this whenever you open up your code editor at the beginning of the day, always do a get pool.

  • That way, if anything has changed in the project, you have the latest changes.

  • Uh, let's see, youse ref is not defined.

  • No undefined.

  • What do you have?

  • All right, let's check out.

  • So we have and air here.

  • Uh, let's go.

  • I shouldn't say that this is Ah, it's not an error.

  • Error is just kind of like r e s rules.

  • Since we haven't actually run anything yet.

  • Uh, line 21 in our app.

  • Js file use rough.

  • So made him for you.

  • All right, this all right?

  • Huh?

  • All right, let's check this.

  • Ah.

  • Oh, harsh it.

  • I could see her.

  • Should Already has some ideas for how to, um, how to implement the division.

  • So harsh it.

  • I'm gonna I'm not gonna forget that.

  • I'm gonna read that in just a 2nd 1st I want to see ah, let's let's go back to get hub and check out that pool requests for this one to see what changed.

  • Uh, files changed.

  • If you haven't used get her before.

  • This is so useful to be able to go back and see changes like this.

  • Um, not you couldn't do it other ways, but this makes it so easy.

  • I just That's what I thought.

  • OK, so that used rough is in addition here and okay.

  • And this, this might be we might need to import use, ref.

  • That's what I think.

  • Yeah, okay.

  • Harsh had already caught that.

  • Yeah, so let's go ahead and just import use, Ref.

  • Um, in years, I could hear all right, so you could see here.

  • So we're trying to use to use Raph here, but we haven't imported it.

  • Okay, so that's why we're getting Ah, that air, so is rough.

  • Okay.

  • And now if we say that should be fun.

  • Oops.

  • And that looks like use should be used effect that I accidentally delete that.

  • Probably.

  • Uh Okay, cool.

  • So let's check this.

  • Ah, here's our app.

  • Just to make sure things were working.

  • And what should happen now is I can put in a number in here when I hit.

  • Submit.

  • It clears.

  • And the focus remains.

  • Right.

  • So great.

  • And are I'm just hitting answer now with that.

  • Awesome.

  • Okay, so let's move over to division.

  • Um hey, that actually works out for cool.

  • Um, now I'm going to read What?

  • Harsh.

  • So Ah, harsh.

  • It is a long time.

  • Ah, Livestream contributor here.

  • Uh, so, uh, harsh.

  • It is really, really awesome.

  • Software engineer.

  • Um, So he's suggesting that we make to random numbers, multiply them and make a problem, uh, dividing them.

  • It will always be a whole number and an easy problem.

  • Okay.

  • Yeah, that makes sense.

  • Um, yeah, that'll work.

  • We do need to add for level one.

  • At least we need to add a check to make sure, um that the product of the, um multiplication is not two digits, right?

  • Yeah.

  • Okay, also, let's see what we have currently for division to Ah, that might be a great place to start and just say, Is there anything we could very easily do to modify what we currently have?

  • So everything.

  • All of our logic is I believe in apthe Js right years are is it or do we move it now?

  • Even we moved it.

  • So I haven't even looked at this for a week.

  • So, um, been working on other stuff?

  • I do want to let you know once we get the, um the logic done for level one.

  • Ah, what I'd like to do is actually run this in a simulator.

  • So probably like the IOS simulator or Oh, no, I'm on Windows machine too.

  • Maybe I'll try to run it on my my android either way, like the next step.

  • What I'd like to do is is actually run this on on a mobile device.

  • A TTE first.

  • It would just be like proof of concept that we can run the same code on a mobile device and on the web.

  • Um, but I would I don't want to get too far into this without at least testing it on a mobile device.

  • That way, if we do have some code that won't work on mobile Ah, then it will be easier to debug that with less code overall.

  • Also, just remember I forgot to start my Pomodoro timer.

  • So it's state that now.

  • Okay?

  • And I did not mean to start Spotify.

  • All right, Harsh.

  • It also says, don't forget to try Cyprus.

  • Okay, we we will We will try snipers.

  • Okay.

  • All right.

  • So our should saying like, Okay, two multiplied by two.

  • Uh is four now our problem B two divided by four.

  • Okay, um, Michael creo says if the answer um, Modelo one is not equal to zero, then get to new numbers.

  • Okay?

  • Yeah, that actually works as well, because then yeah, Okay.

  • Um, I still need to figure how where our division stuff is and a Cynara reducers.

  • Yeah, the logic got extracted out.

  • Yeah, here it is.

  • Okay.

  • Eso we at one point we did have everything in ap dot Js and then we had ah better re factoring.

  • Ah, that happened in a pool request.

  • And now we have some Some of the logic, Probably most of the logic in this ap producer dot Js.

  • Okay, so we're returning right now.

  • We're just getting random numbers.

  • One through nine.

  • Yes.

  • We're definitely gonna have to switch that.

  • So I don't think there's much we could do, Like with what we have right now.

  • Um, we're gonna have to have something based on based more on what mode we're on.

  • Okay.

  • Did that make sense?

  • I don't see Oh, okay.

  • So we I gotta keep up with this shadow over here, um, distortions putting in some extra extra stuff.

  • Ah, let's see that X equals mass for okay.

  • Um all right.

  • So let me I just need to go over this.

  • Follow just for a second, because I haven't looked at this file for Ah, it's probably been like a month since I looked at this.

  • Since we've just been doing testing.

  • Ah.

  • Okay, so All right, here's a random number generator.

  • Which problem?

  • Set mode.

  • Very soon.

  • Enemy better mean check.

  • Answer.

  • Okay, um, right now we we do have eyes.

  • Were getting the operator from us A Okay, so we're passing in that state here and in action.

  • Okay.

  • Um okay.

  • Yeah.

  • Horseshit.

  • Said you have a function for random number.

  • Use it, then.

  • Okay, then.

  • Michael saying the logic is in check.

  • Answer.

  • Yes, I guess.

  • Yes.

  • So we'll need it.

  • Check.

  • Answer.

  • Should still work, as is right, because oh, we're doing in check.

  • Answer is just taking whatever our value one value to is whatever operator is, so that should be fine.

  • What we need to change, though, is our new problem may.

  • Because what we really want is just to make sure that we've given, ah, the user a problem that we know will result in a whole number.

  • So this is what we need to to work on.

  • Um, So currently, right now this, though, doesn't it Doesn't know about what Motor Inn or care about what motor end.

  • So we need to change that.

  • The mode that we're in is going to matter in this case.

  • Eso Let's see how we're gonna do this right now.

  • We're returning.

  • I guess we could just put an if statement in here.

  • Maybe a switch.

  • I'm trying.

  • What else?

  • We also want to make sure that subtraction doesn't result in negative numbers.

  • So I guess we'll have to cases where we'll have will want more than just plain random numbers.

  • So, uh, let's see, the answer is yes, we'll get a new problem.

  • Okay.

  • Okay.

  • Michael Christian, If the answer in check answer is a decimal, get new problem.

  • Okay, so Michael is suggesting that we just go through.

  • It's basically just keep going through a loop of generating random numbers and then checking the answer until we get one.

  • That's a whole number and then present that or negative.

  • Okay, that's actually not it's not a bad idea.

  • You're shaking it too.

  • Yeah.

  • Um, how about that?

  • Yes.

  • So if we extract out some of this into its own function, which shouldn't be that hard letting yes, So this could actually be It's its own function.

  • Or at least this this part.

  • And then that would let us problem Keep calling it.

  • All right, let's do that first, then eso Let's take this and make its own function.

  • So I guess we'll put it up here.

  • Right.

  • Um uh, do we really need to export dysfunction?

  • Probably not.

  • Um, cons.

  • Una colors um, check, answer and let's give it.

  • Let's see.

  • One, two.

  • Okay.

  • And actually, we could probably just do this.

  • Okay?

  • So this is just going to return to if you're not familiar with arrow functions.

  • Um, so this is an arrow function, right?

  • Eso basically the value, then of Czech answer is going to be equal to whatever this is it.

  • When you do a narrow function like this all in one line, it automatically returns.

  • That's we don't need actually, right return.

  • Okay.

  • Okay.

  • Um my my auto lending just put it on the next line here, but it's this should still work.

  • Uh, okay.

  • So now that we have a cheque answer down here, what we could do is, um because s I guess we need to get the mode here.

  • Case.

  • All right.

  • So if the tapes, his new problem are we passing in state action would see what our state is that we're passing in here just for a second.

  • Ah, who is it?

  • Mode.

  • Okay, so we should have access to mode.

  • I don't remember what we called the different modes.

  • What we call them.

  • Ah, handle mode picker.

  • Well, yeah, It's, um it's over picker this fast type seven.

  • Okay.

  • So that the mod should be whatever the value is here, So you should be able to just get mowed.

  • Ah, division here.

  • So just like we're getting state value, state operators say that we should be able to get state thought, uh, mode in our eyes, the set in our new problem.

  • Okay, so let's say if state it's a actually, I'm gonna do this, huh?

  • I don't want to put it in that return.

  • Stood here.

  • Um, so you can put one in here?

  • Uh, state, uh, mode equals division.

  • Okay, so we're gonna wrap this in, uh, if statement here.

  • So, um, we do want to at some point return this, eh?

  • Um, but not not exactly like this.

  • Right?

  • So what we want to do is call, check, answer, and we'll give check.

  • Answer.

  • I don't want to do that.

  • I guess it's fine.

  • Sure.

  • Give, Actually, let's do this is gonna be a little weird, but, um, let's say ah, if I want to name it the same thing, but wow, I guess we could Well, one is going to equal who I say.

  • Let's one.

  • He cool random number generator with nine.

  • And when you do the same thing with vowed to Okay, so we're gonna get to random numbers here, and then we're gonna pass those in one two.

  • Okay, so a running check answer and let's make that, um that, uh, is equal.

  • So, reds for the results.

  • Equal check.

  • Answer.

  • So then we'll say if Prez is greater than zero, then we're actually going to return something.

  • And what will return is?

  • No one vowed to Els.

  • We're gonna want to actually going to rerun this whole thing.

  • So ah, let's grab this and say, Stay in my division, grab all of this, put her up here and say decision division problem and okay, care else.

  • We're gonna actually run division for a loan.

  • Um, and I didn't Here we go.

  • Me go down to, you know and say, Let's get rid of all of this division problem.

  • Okay, that's ST Division problem.

  • Hope so scared of this as well.

  • And this.

  • All right, so let me.

  • All right.

  • Looks like, has some commentary on what I was doing.

  • Um, let's see if this works first.

  • So here's what I think will happen, right?

  • So if it's division, if the mode is division, we're gonna call the vision problem.

  • Right?

  • Division problem is going to generate random numbers, and then it's gonna check the answer.

  • Okay, so our check answer function is here is just gonna return an answer if the answer.

  • Oops.

  • Not greater than zero.

  • What am I thinking?

  • I had subtraction on my mind.

  • Okay?

  • Although it's this will work for subtraction now, too.

  • So we could just do that.

  • So that's not what it needs to be.

  • Ah, whole number.

  • Um, So what is that?

  • Um I wonder if there is there a way in Java script to just check to see if something's a whole number or Okay.

  • Uh, Michael, So you just need to check.

  • Um, Okay.

  • Okay.

  • Michael saying it's easier in the Czech answer.

  • You already have logic.

  • You need just check.

  • Um, okay, I'm seeing this now.

  • Oh, he's saying check for that in, um, it's attraction to the same time.

  • Action war.

  • Okay.

  • All right.

  • That makes sense.

  • Limits.

  • Okay, so there is, um where's the moment?

  • There it is.

  • Uh, one.

  • And that should equal.

  • All right, let's explain what module is's and I'm gonna explain it.

  • You'll let me know if I have it wrong.

  • It's been a while since I used it.

  • Uh, module is is like the remainder.

  • So if we're doing a division problem and we have a remainder, then that means, um it's not gonna be a whole number.

  • Right?

  • So it should be zero.

  • So, like, four divided by two is too.

  • There's no remainder.

  • Right?

  • Um, but if we did something like I don't know, let's say, like, for or, ah, say, um it's like eight divided by three.

  • Right?

  • So, like, eight goes into three.

  • I'm sorry.

  • Three years and hate.

  • Ah, two times with a remainder of two.

  • Right.

  • So a remainder would be too.

  • So when we use this percent sign, which is our our module ISS operator, we're getting that.

  • That remained right.

  • So anyway, that's it.

  • Okay.

  • Um okay.

  • Yes.

  • So, Michael saying Yeah, that's it.

  • Now.

  • Okay.

  • All right.

  • I'm sorry.

  • We're okay.

  • So we're right here.

  • So if we don't have a remainder right, then we'll return.

  • Are our state We'll return that all.

  • Just like we were doing me a down here.

  • Now, if we do have a remainder.

  • That means we need to get more random numbers.

  • So we're gonna call division problem again, right?

  • So it's gonna call itself, and that's what is that that's called.

  • That's Rikers in, right.

  • I believe that's what we go, Ah, recursive function right when it calls itself.

  • So this could I mean, hypothetically, This could just keep going and going, but the odds of that happening, you're so small.

  • Right?

  • Um, if we end up having a problem where it just takes way too long to get a random number, then maybe come up with a different solution.

  • But I think this should be okay for now.

  • All right, so we have that, uh, and this shouldn't be that hard to do the same thing with subtraction.

  • But first, let's make sure it's actually working with division.

  • And also, the rest of it is just simply if it's not a division problem, we just fall back on doing what we were doing before which we know works.

  • All right, so let's save that and go to Okay, so in about three minutes, I'm gonna answer some questions in the chat.

  • No state is not to find, uh, all right, so we use state.

  • Oh, I see what's happening.

  • We need to pass in.

  • That's passing our mode.

  • Um, actually, no.

  • Where's our?

  • That's not what we need.

  • We weren't using state there.

  • Where we using state here.

  • And why can we not get state their person?

  • States We're inside of this.

  • Yeah.

  • I should have access to state in there.

  • Should Einar let me double check that air to make sure the one that I've lined six and 9 16 Okay, maybe that's not the same thing.

  • Okay, so, line six books.

  • Yep.

  • I need to get rid of state one that too.

  • So we're passing in value one about you two, and we need to pass in the operator as well, since we don't have access to state right there, Operator.

  • Ah, and then line 16 evidence.

  • Okay, endline.

  • 16.

  • We are.

  • Okay, so we're trying to return the rest of state.

  • Let's pass in state here than a swell.

  • Okay, um, and would just continue to pass in the same state.

  • Right.

  • Ah, here.

  • Which we should have access to from you.

  • Okay, so then down here when we're actually calling this, um we can call, will pass in state with our division problem.

  • Right?

  • That should give us access to all of the state.

  • Which means when we call check, answer here.

  • We should be able to say ST dot operator because we have access to all the state.

  • See, that fixes it.

  • Let me know of that.

  • Made sense.

  • It'll I could go over it again.

  • I know.

  • I went through pretty fast.

  • Um, evil can be harmful.

  • Expected break statement before case no fall through.

  • Okay.

  • Those were not like critical errors right now.

  • This we should still be able to test this.

  • Okay, so we have division six divided about one.

  • Um, sorry.

  • My mouse's there's, like, some bit of I don't even know, Like their sand or something below my mouse's drive me nuts.

  • Right?

  • I don't need Oh, okay.

  • Cannot re property background color, undefined.

  • Why would he give me that if I just tried to submit nothing.

  • Okay.

  • After two years, what a weird air to get after J s.

  • Really that What was that again?

  • 51 Active scene, background color.

  • I don't even remember what theme I have seems.

  • Background color, division orange.

  • This didn't happen before, right?

  • Oh, you know what's happening?

  • It's something with the state, I bet.

  • Um All right, let's see what we're doing with state.

  • Let's see if somebody it looks like harsh.

  • It actually has a pool request.

  • Our shit.

  • Did you do this?

  • Well, all right.

  • We'll have to check that out.

  • But I What I think is happening probably is, Ah, something with the state like we were.

  • So the problem's not in a J esus.

  • It's up here.

  • Um, so when we try to return state here, it is not the same.

  • Hey.

  • Okay, um, let's let me go.

  • The chat.

  • So I did say I would go to the chat when the time ran out, and it actually was longer than normal since I started the timer later.

  • So I will stop, take a five minute break, and then we'll check out harsh.

  • It's pool request, and, ah, knowing her shit, he probably solve this in a better way than I did.

  • So I'm excited to see how this, uh, how he went about this.

  • Um, let's see.

  • It's actually cool, though, like, Well, I'm assuming harsher did in a different way, but it'll be cool to see two different ways to do it.

  • Um, although my way technically didn't work because I messed up something with state.

  • All right, so I'm going way up to the top of the chat.

  • I'm just gonna go down through, and I see there's a lot of Hello.

  • So I must say, hallowed everybody.

  • Ah, and I'm gonna try to just hit the questions.

  • For now.

  • We had one question is what is he doing?

  • L o huh?

  • Ah, I like big picture making a Children's math game with react.

  • Native Web just for the stream.

  • I'm trying to figure out the logic to give, uh, the user a single digit division problem that results in a whole number.

  • Okay, I got id so harsh its message about trying Cyprus again.

  • So I gotta remember to try Cyprus before we end the show.

  • A meta question, which compilers this.

  • I'm not sure what you mean by compiler.

  • Um, if you mean the ah, like the I d.

  • Uh, code editor.

  • It's visual studio code.

  • S O.

  • C.

  • This is how late is it for you?

  • Um, it's actually early.

  • So, um, right now it is 8:14 a.m. Eso start the stream at 7:30 a.m. Eastern time.

  • Um, question Shoot.

  • I learned, react or python.

  • Um I mean, they're used for totally different things, So it really depends on what you what you want to do.

  • And if if you want to do more front end stuff like front and Web stuff, learn, react.

  • Um, if you want to stick like back and stuff for machine learning or something like that, then um, Python is probably better, Chris says, Uh, Java or JavaScript.

  • Um, again, that kind of depends on what you want to do.

  • I'm going to say JavaScript because it's both the front and a back and language, so it's a little more versatile, but there's a ton of jobs and a ton of things to do with Jabba.

  • So, um, you wouldn't be going wrong either way.

  • It's just depending what you want to do.

  • Chris's angular or react again.

  • That's going to be ah ah preference thing.

  • Like what are you trying to accomplish?

  • What do you know more of already?

  • Or, you know what is your team?

  • We're comfortable with nixes Hello.

  • I'm fairly new to programming mechanical designer for 15 years, but I want to get into some coding for enterprise systems.

  • Any recommendations for languages or starting point?

  • Uh, enterprise systems.

  • I mean, you'd have to look up, maybe, Like, exactly what systems or what cos you wanna work for.

  • But, uh, enterprise systems from my experience or more likely to be on something like Java or dot net.

  • Um, you're less likely to find, like, no taps running for enterprise.

  • But, I mean, that's starting to change a little bit.

  • Um, but like, that's just been my limited experience, though, so I mean, I would do more research on what systems are using at it.

  • The big companies.

  • Um, all right, Michael, looks like maybe has a comment on harsh.

  • It's PR.

  • So let's go back to that.

  • I'm not gonna start an apartment or a timer, because I have to finish up the stream in a few minutes.

  • So the last thing we're gonna do is just check out this poor request and we may have to leave this stream with kind of unfinished.

  • We'll see.

  • All right, So here's your can See this.

  • I'm just going to read it out quickly.

  • Um, let's assume we have two random numbers between one and nine, like three and seven were multiplying, which is three multiplied by seven equals 21 now 21 divided by seven or 21 divided by three will always be an easy problem is 21 is a multiple of both these numbers.

  • Also, it resets problem now, Uh, if you change a mode.

  • Okay.

  • Okay.

  • I didn't realize we didn't reset the problem before.

  • All right, so let's see what's actually happen.

  • This is our reducer dot Js file.

  • Okay.

  • Um, all right.

  • And Harsha did put in that use ref.

  • Ah, because obviously I hadn't pushed any changes up yet.

  • Okay?

  • So if we have a new problem here, if the motives division Ah, we're getting our random numbers, right?

  • And then we're multiplying those two random numbers.

  • We're saving that to Z, right?

  • And then we're returning Z.

  • And why?

  • So it would be like ze divided by why?

  • Okay.

  • Um okay.

  • Sea boat operator provide and then returning type tapes.

  • No problem.

  • Okay, so this is just doing a new problem.

  • Okay, so I like that.

  • Um, Here's the thing, though.

  • Will end up, though with a, um, a number that's greater than two digits here.

  • Right?

  • Ah, so this would actually this could potentially work.

  • Um, but we would have to change the max number right on here.

  • So publishing update for fresh, you can limit.

  • Okay, So looks like there's an update.

  • So that's refreshing.

  • Uh, if Z is greater than 30 return a new problem.

  • Okay?

  • So we could potentially just change it here.

  • Okay.

  • Um, all right.

  • What do you think?

  • So I guess everybody in the In the stream Now, let's let's do a comparison, then.

  • All right, So in this case, for this would work.

  • And then for each mode, we would just changed this value.

  • So this, um I guess we would end up saving.

  • I'm sorry for each level.

  • So essentially, this would change for the level, um, to increase, like the max amount that it could be.

  • Right.

  • Um, this is nice.

  • I like this.

  • So this compared to I guess what we have done here, where we kind of have a we're actually like checking the answers of our problems and then running through this till we get one that works.

  • Eso let me know what you all think I'm gonna take, like, 30 seconds to see what you all think, And then I'm gonna tell you what I think.

  • Uh, let's see.

  • All right.

  • Uh, let me see.

  • What?

  • Some of your sink.

  • Um, Okay.

  • So our should saying if you just check so that the issue to trace in the chat here is ah, you know, this would still return something That's two digit numbers are just saying, if you just check, um, to make sure Z is not greater return reducers problem, then we're just gonna call new problem again.

  • Okay, So either way, it's just gonna keep looping, right, And it's gonna keep going through that.

  • Um, the benefit of this one, I would say is I mean, I didn't test it yet, but the one that I did is throwing an error, right.

  • So Ah, I'm assuming this one wouldn't eso Let's Let's try this out, See if you have time.

  • Uh, might not have time.

  • I got in.

  • I got a meeting at 8 30 So that's why I'm I have seven minutes right now.

  • Ah, All right.

  • Let's see if we can.

  • If we can get this in here really quickly, Um, it's checkouts.

  • be, um, division.

  • All right.

  • So I just switched to another branch here so I could save what I have.

  • Okay.

  • And that's good.

  • Good.

  • Commits a All right.

  • So trying to just go really fast.

  • All right, Now we can do get, um, kid fetch.

  • You are on.

  • Oh, what is it?

  • I always forget it.

  • Um uh, just a waas.

  • Okay.

  • On a locally fetching a foot request kid out of here.

  • I don't want this bit Bucket.

  • Don't get a area area.

  • Get fetch.

  • Origin Pool.

  • Okay, so it's our i d 14 full 14 and then almost had it.

  • Head branch name.

  • Okay.

  • Age, missy.

  • Each division for her shoot.

  • Cool.

  • Good.

  • Check out.

  • Uh, h All right.

  • Now, let's try this out.

  • So I didn't explain what I was doing.

  • Maura, I just I got to go fast cause I got a meeting.

  • Um, let's see.

  • All right, so we get, I forget the changes.

  • Let's change this down, too.

  • Nine.

  • We wanted not greater than nine.

  • Okay.

  • 7766911 like 3442 782631 Looks good.

  • You know, I'm just seeing like, uh, Occasionally we get the same problem in a row.

  • We may want to put logic in to say like, um, don't show the same problem twice in a row.

  • So thank you.

  • I'll have to remember to add that maybe as an issue or somebody else wants to.

  • All right.

  • So Ah, harsh.

  • Its solution works.

  • I'm going to go with it because it works.

  • Um, so I will be, I guess.

  • Let's let's merge this in now.

  • You can merge from the command line s Oh, I could do that right now.

  • Or I could just never mind.

  • I'll just do it.

  • I gotta go.

  • I gotta go to my meeting, so I have to stop.

  • Basically.

  • Ah.

  • What I'm gonna do, though at some point, is I'm gonna merge this pool request in, so we're going to use what harsh it did.

  • I believe it accomplishes the same thing without errors in less code, which is always good.

  • Thank you.

  • Harsh it.

  • Ah, And then I'm gonna try to remember to put it in an issue to say we need to check and make sure we're not giving the user of the same problem that they just answered Okay.

  • Um, our shit's Yeah, that's not my fault.

  • Yeah, I'm not saying it's your fault.

  • Harshly.

  • That's just it wasn't part of the It wasn't anything that we had thought of yet anyway.

  • So, um and it happens with all the other modes as well.

  • All right.

  • Awesome.

  • So I don't think I miss questions, but if a Mr Question just put it in, the comments below this video are sent it to me on social media or something.

  • Thank you so much for hanging out with me this morning.

  • Um, I'm buying a house later today, so I don't know if I'm gonna stream on Friday or knock somebody busy moving into the new house.

  • Harsh.

  • It says Cyprus.

  • Ugh.

  • Cyprus the all right.

  • One last thing before I go lets you say pris.

  • So yarn E t e.

  • What package, Jason?

  • Oh, I forget to run.

  • You got to install savers.

  • Always remember to run yard when you first do your get pool in the morning.

  • I've said that a 1,000,000 times on the stream and I forgot myself to do it.

  • What time is it?

  • Oh, of one minute till my meeting.

  • Come on.

  • Come one you're in.

  • No.

  • We're gonna be able to get in.

  • I I'm waiting.

  • So the the meeting hasn't started yet.

  • Why?

  • Why is it taking so long?

  • Ah, harsh it.

  • I might just have to wait.

  • I got it.

  • I got to go to my meeting.

  • Um, all right.

  • So I may just have to wait.

  • If anybody doesn't want to wait to see Cypress, go ahead forthis repo.

  • Uh, clone it and you can run it on your own.

  • Ah, the command is the same as it was before you, Arnie to E.

  • For some reason, it's not working for me right now with a terrible time to not work.

  • Um, harsh.

  • Said is downloading chromium.

  • I thought you had I thought I would have had it too, because I was using puppeteer.

  • Anyway, Um, yeah, next time, I will definitely try out Cyprus, and we'll do that first thing so I don't run out of time or forget.

  • Um, anyway, thank you for watching.

  • And, um, hopefully I'll see you back here next time.

  • Until then, I have a great day.

  • A great, great couple of days.

everybody.

Subtitles and vocabulary

Click the word to look it up Click the word to find further inforamtion about it