Placeholder Image

字幕列表 影片播放

  • go, everybody.

  • Welcome to live coating with Jesse.

  • I'm Jesse.

  • And today we're going to do some styling.

  • Cem, you I changes to make this applicant little nicer.

  • Uh, as you can see, there's no video right now, so I don't know why.

  • Uh, I moved.

  • So I moved into my new house.

  • I unplugged everything, moved all my computers over, plug it back in, and my webcam now does not work.

  • S o.

  • I'm installing some stuff from the manufacturer that hopefully will help.

  • It says it's gonna finish in about a minute so the video may turn on.

  • It may not, but you don't watch this for my face anyway.

  • Um, so let's get started a CZ Long as you can see the screen and hear me, I think that's, uh that's good enough.

  • Um, I'm gonna check real quick and see what everyone's saying in the chat.

  • Um, hey, everybody see a lot of people just saying Hi.

  • How's it going?

  • Okay, let's bring up the at first.

  • So everybody who hasn't seen it yet can at least see it.

  • Um, also So they hit the insulation.

  • Just finished.

  • Let's see.

  • Okay.

  • I don't want to sign up for it.

  • Okay.

  • Wow.

  • All right.

  • So I don't think that did anything because nothing happens.

  • Uh, hey, get something That's weird, huh?

  • Here we go.

  • It works.

  • All right, let's move it over it.

  • It's all right.

  • There we go.

  • Okay.

  • So I guess it was just a driver or something.

  • Um, you could see my background has changed.

  • So this is my new place.

  • I'm thinking about getting a fish tank back there, so I have a fish tank with some goldfish.

  • I haven't moved out yet.

  • Um, so I don't know, let me know what you think.

  • If you want to see my goldfish behind me of anyways.

  • All right, let's get started.

  • So I do want to give a shout out to Chris who did a awesome pool requests.

  • So let's d'oh get pool.

  • It's gonna pull down all those changes from the poor so you could see like that.

  • The code changed immediately.

  • There.

  • So this is decently significant pool requests, especially considering the project still small.

  • This is quite a few changes to thank you, Chris, Uh, we're also gonna do yard.

  • This is a good practice.

  • Any time you start a project I'm sorry.

  • Anytime you're working on a project, first thing you should do is do we get pool soon as you start working on in the morning.

  • You know, you'll get pool, do, um, and then run yarn or NPM install That way.

  • You know, you have the latest, you know, changes and and the packages Like I've forgotten this before and start working realized I don't have the latest changes, and then there's, like, Marge conflicts and stuff, or I do remember the pool, But I don't remember it to run yarn into, stole the packages.

  • And then I get all these errors on for a second.

  • I'm freaking out before I realized that Oh, I I just didn't install the new packages.

  • So start.

  • So let's start this up.

  • That way we could see the app.

  • Uh, we'll be able to see it.

  • And also, let's go to the pool request.

  • So the issues now there's only two issues left.

  • I'm sure we'll be able to add some more, but with a close pull requests on, check out this one.

  • Right.

  • So I'm not gonna go through all of this just so that we have time for coding but check this out the length to the repose in the description so you can check out with basically, this fixes two problems.

  • One we had said that way don't want the user to get the same question like the exact same question twice in a row.

  • Also, we don't want when you're doing subtraction.

  • We don't want subtraction to result in a negative number, at least not in in the first.

  • The first level.

  • I also found some bugs that I didn't realize were happening and fix those as well, So that's awesome.

  • You could check that out there.

  • You can check out all the files that have changed at that little bit to the prettier config, which is nice.

  • I'll probably set up some like automatic glinting so that any time anyone tries to commit code, it'll auto lent it and let me know if you want to see how to do that, I can do it on a stream.

  • Otherwise, may I just try to do it, you know, on my own and just have it set up.

  • But it is kind of a cool set up.

  • I usually do it for all my projects, and it avoids having, like weird commits where you have it looks like you have a lot of changes, but they're not really changes.

  • It's just like formatting things like a semi colon or not using a semi colon or weird spaces.

  • So anyway, uh, I have some questions about that auto land.

  • So when I say like auto lynching and auto formatting, I just mean like a soon as you would do, like, get commit, there'd be a pre commit hook that would run, and it would go through all your code.

  • It would check it to make sure the syntax is correct, according to rules that we set up, Uh, and then, if it's possible for it to just automatically change your code to use the rules we set up, it will do that.

  • Eso itt's pretty cool.

  • It keeps a nice standard, and it makes it so that if you want to contribute to this project, you don't have to learn all the rules.

  • You just code how you like to code, and then whenever you go to commit, it'll change it all, and it looks like there is some interest.

  • So yeah, I'll definitely show you to do that, um, maybe on the next dream, that's what That's what I'll do.

  • So, yeah, it's a cool little set up, and, uh, let's see, I lost my train of thought.

  • What were you doing?

  • Oh, I wanted to show everybody the APS.

  • Okay, just so you know, um, the way this is gonna go, we're gonna do a little bit of coding, and then I'm gonna take a break, and we're gonna answer some questions.

  • And then at the end, I'll try to answer all the remaining questions.

  • So if you have questions and they're in the chat and I haven't got to him, I will get to them in a bit.

  • Probably in about 20 minutes or so, maybe less.

  • I'll go back to the chat.

  • All right, but this is the game.

  • So I'm sorry if there's a lot of background noise.

  • My kids were all getting ready for school.

  • They're about to leave.

  • So, um, I don't know how much of that that mike is picking up.

  • Hey, buddy.

  • Uh, you want to say hi?

  • I don't know if it can see.

  • Yeah, how?

  • Have a good day school, but, uh, yes.

  • I'm just in my basement right now.

  • Eventually, I'm gonna build like a legit office and hopefully soundproof it, but just moved in last week.

  • So anyway, uh, these air the styles, we do have different colors for each mode, right?

  • But we just threw these in here.

  • Um, this is definitely not how I wanted to look.

  • I still I'm not exactly sure how I wanted to look, but I think there's some improvements that could be made.

  • Uh, so let's first thing I want to do is open up, Dev Tools.

  • All right, So if you're not familiar with Dev Tools, this is your best friend.

  • As a web developer, deaf tools will allow you to inspect things on the page, See the code, make changes.

  • Basically, they're like previews of changes that only you can you can see.

  • Hey, I'm live streaming.

  • But if I sent one of my sons was back there just like moving all these barker.

  • Um, So what I want to do is see how this will look on a device, because eventually we want to make this run on a mobile device is, well, a cz on ah desktop.

  • So we haven't actually checked to see how this would look on a device.

  • So let's just, uh I don't know which one topic.

  • Let's figure small one.

  • Just thio get an idea.

  • So this actually isn't terrible.

  • I kind of thought it would be worse since we hadn't had this in mind at all.

  • But it fits.

  • Wow, that's that's cool.

  • It actually is.

  • Um, Okay, so just looking at this right now, uh, I think for sure, uh, the numbers need to be bigger, and the buttons need to be bigger.

  • I think the the hero character, the tear in the enemy characters that here they're here can definitely be smaller.

  • Uh, so the perspective this is a Children's game.

  • All right, s o their attention is gonna be drawn to this.

  • When in reality like this, there's no interactions they can take here.

  • It's so weird drawing the user to an area that they can't actually do anything with.

  • S o.

  • I think we can We can shrink this s o.

  • This is this stream is going to be a little bit of design and death together, right?

  • So I'm the software engineer I have done designed before a bit, but I'm not primarily a designer.

  • So usually I just jump in and start coating and then figure out the design as I go along.

  • Uh, if this were a real project on a real team, we'd probably have a design.

  • A designer already do the design, right?

  • So let's for now, let's see what this looks like when we shrink these up and make this bigger.

  • All right, I don't want to make sure anything that a user will click is really big, right?

  • Because it's gonna be a kid's game there.

  • Their dexterity is not going to be, um, as good, maybe as the average user, potentially.

  • So we want to make sure they don't accidentally click in the wrong spot.

  • So right here I can see like the submit button needs to be bigger.

  • And there needs to be more space.

  • All right, uh, so let's let's do that now, Like So Since we're in depth tools, we can try some things out here without actually even touching our real code.

  • So let's click on some of these.

  • Uh, actually, it might be easier in this case, So, like in the case of ah, the numbers, we can definitely make them bigger, Let's see, So we can see all the properties that are currently on BC.

  • Is this properties that are currently on this?

  • We have the font size of 28 pixels.

  • Said actually, is, uh, seems pretty big, but we could see like it doesn't actually look that big on that phone.

  • Um, so if we click that, it will show us where in the code.

  • We have 28 pixels now.

  • Unfortunately, since we're doing this with react, Native Weapon is coming through.

  • Won't allow us to edit directly in line.

  • If this was just a normal weather, we could, um so we're gonna have to override it and let's go with.

  • Still with 40 pixels is gonna seem pretty crazy to do 40 pixels, but I think it'll be good.

  • Uh, actually, because of the way the styles get split up, I can't target a style.

  • So let's just go back to our code really quick.

  • In this case, I think it might be easier just mess with their code directly.

  • Normally, it is not.

  • So.

  • We do have our lifestyles down here, and, uh, I forget we're using comic sans Oprah.

  • We may change that.

  • It's ethics.

  • Since it's a kid's game, it might work.

  • Okay, so our character has a with of 80 and 80.

  • Let's let's cut that down, Right?

  • Let's let's give that 40 and no are math container our math rose.

  • So our math row has a padding on the bottom of eight.

  • Let's bump that up to 16 and then our text size 28 will bump that up to 40.

  • And we do have our inputs of sports.

  • I believe this is our input for Let's make it it just the square.

  • We'll give it a haIf.

  • And with of 60 I didn't finish my thought.

  • Sorry.

  • That's our input.

  • To put the answer to the question.

  • Let's save all that and then see what it looks like now.

  • Okay.

  • So definitely different.

  • We now have bigger text here.

  • We have more space.

  • I forgot to make the submit button bigger on.

  • Is this OK?

  • So we didn't actually make the text bigger.

  • And here so what?

  • We need to do that.

  • Let me check my time to make sure I forgot to start my timer.

  • So So what?

  • I started 7 30 So we've been about 20 minutes now.

  • All right, let me just get just a few more minutes, and then I'm gonna go to the live chat and read through the chap.

  • All right, so, for now, let's, uh let's make the button a bit bigger and we'll make the text inside the input match with this text, okay?

  • Oh, don't let me forget.

  • I need to check out Cyprus.

  • So are testing.

  • Suite has now changed from using puppeteer to using Cyprus.

  • So I wantto give you a preview of that.

  • And I forgot to last time.

  • And what would I want to try to do it for sure this time.

  • So that was in addition from harsh it who I haven't seen in the chat today.

  • So I don't think he's here.

  • But he's been a big contributor to, um, to my streams for a long time, for like, over a year.

  • Uh, let's see, where is our button?

  • I don't think we have any styles for a button.

  • So we're gonna have to go up here and see what we can do here.

  • Okay, so we actually have the default styles for a button.

  • So let's look up in the duck.

  • React.

  • Native documentation with the styles or for button.

  • So if you're gonna react Native Project definitely recommend.

  • Just just leave the react Native docks open on your tab on one of your tabs because, uh, I referenced it so much.

  • It's just no point in me even closing.

  • It s Oh, here's the button.

  • Um, um, you'd see.

  • I'm pretty sure we just copy this eggs.

  • Exactly.

  • But what I want to see is all the props on press.

  • I was just with color.

  • Disabled test.

  • I d.

  • Okay, so he's a cross.

  • But what I want to see is what kind of styles we could actually give this.

  • Um, which I don't know.

  • Let's see.

  • Let's just add some styles and see if we can give it one.

  • We may have to switch it up so you can use touchable opacity or touchable native feedback to give your buttons some custom styles.

  • So we may have to switch up to that.

  • That's what I normally end up using anyway.

  • But for now, let's just see if we can do this.

  • So I'm just gonna do an inline style just as a test, we're gonna add style.

  • So in react native, if you want to do an inline style, you can.

  • You wantto, uh, use an object.

  • Right?

  • So we're doing style.

  • We're putting our curly brackets, which means, Hey, we're about to do some Java script.

  • And then inside of there, we have another set of curly rackets, which is just normal job script, right?

  • Did you says, like, this is an object?

  • And then now we're gonna do CSS as if we were writing.

  • So, like, we're converting our normal CSS into JavaScript object syntax.

  • Right.

  • So we're gonna camel case everything.

  • It's key value pairs, right?

  • So in this case, let's just say height she can spell 88 and we're going to give it something crazy.

  • So we just know, uh, we know that it works, right?

  • So tight.

  • 200.

  • So that should be obvious if it works, and it didn't.

  • Right.

  • So it looks like we're gonna have to change that.

  • And we can't actually add to a button.

  • If there is some way to add hi to button, let me know in the chat, you know?

  • But according to the documentation, it didn't look like we could.

  • I was hoping there would be like some props, But it seems like the only thing you can really change style wise.

  • It's the color.

  • Okay, so I'm just gonna click untouchable opacity.

  • So it's there on weaken can check that out.

  • And if anybody wants to read ahead, I'm gonna put this in the chat.

  • The length touchable opacity.

  • If you've never used it before, you could check out the docks.

  • Basically, you're just making something clickable and react native, and you can give it whatever style you want, all right?

  • And I'm gonna take a five minute break here, so I'm gonna set my my pom Adora timer for five minutes.

  • I'm gonna go to the chat on my answer.

  • Some questions, okay.

  • So scrolling.

  • Just seeing a lot of people saying hi.

  • And first.

  • Ah, charming.

  • Mohamed says this is very good thing.

  • Thank you.

  • Oh, you're welcome.

  • I appreciate that.

  • Ah Keane.

  • Is this a react thing?

  • Yes.

  • Yes, it's it's react.

  • Native web.

  • So it's all react.

  • Mated syntax.

  • But we're actually running it as a web at.

  • If you want to know why we're doing like that watch like the 1st 2 streams.

  • And I explained Maur the benefits of doing that um, Eric says, how can I find your job?

  • Script.

  • Beginner Tutorials s O.

  • I haven't done a lot of tutorials myself.

  • It's mostly live streams, and it's some streams or more beginner, friendly and some streams.

  • Oranges depends on what we're working on that day, but there are some awesome beginner JavaScript tutorials on this channel on the Freak O can't channel.

  • If you do want to see my tutorials, check out my channel.

  • The links in the description.

  • I don't do as much with my personal YouTube channel.

  • I'd love to do more just hard to find the time, but I do have some tutorials on there for beginners.

  • Let's see.

  • Jell O says, Smile more, bro.

  • You look better, right?

  • All right, I'll try to smile.

  • Work.

  • Ah, they don't says, bro.

  • I love this channel.

  • Oh, thanks.

  • Thanks.

  • Yeah, the free cocaine channels.

  • Awesome.

  • Like not I'm not just talking about my stream.

  • Like, um, there are so many really, really good contributors on just the variety and quality of content on this channels.

  • I mean, it's really amazing, and it's impressive, like no one's getting paid to do this.

  • It's all volunteer eso.

  • It's really cool when it's helped a lot of people to get their skills up and get jobs, including me.

  • Uh, charming says pulling in, pulling in and slowing aren't before anything in the morning is good advice.

  • Been a victim of such.

  • Trust me.

  • You don't want to go through the work before you pull.

  • Yeah, for sure.

  • Uh, okay.

  • Um Belle Bellies Zari Angelo's.

  • I'm sorry.

  • I probably miss your name up.

  • Let me know how I'm supposed pronounce it That says I can animate that.

  • Uh, I'm not sure what you're what you're for.

  • Are you offering to animate something and so let me know what you mean, because I'm not exactly sure what you're saying.

  • Uh, yes.

  • You ask if I have any plans to work on view Js projects.

  • Not right now.

  • I've I'm, like, curious about view, but I don't have any immediate plans to work on it.

  • Uh, maybe Maybe I'll do it at some point.

  • A creative girl says hi.

  • Which one do I have to learn?

  • Flex box, CSS grid or maybe boot Chef?

  • I have no idea when you use them.

  • Okay, That's a good question.

  • There are some answers.

  • Their coding technique says, I think flex boxes easier.

  • Um uh, is it smell says I will go with Bootstrap, but just know little flecks books.

  • Okay, so they're not exactly comparable, Right?

  • So bootstrap is an entire CSS library that you bring in its CSS and JavaScript on.

  • And there's a lot of built in classes that you can use to style on entire AP, uh, or a website.

  • Flex box is a part of CSS, and so is grid s.

  • Oh, it's a part of just normal CSS.

  • You don't have to import anything extra, and it's used for positioning, right?

  • So back in the day, people used tables for positioning or we used floats for positioning.

  • But flex our flex box gives you a nicer way to position of.

  • Like, for instance, you convert YCL E center things on a page very easily with flex box, right?

  • That was always really hard to do before, and not that it was impossible, but it was just more difficult.

  • Grid is another way to align things on a page, so it's not exactly comparable eso like.

  • If you learn all of bootstrap, you could style an entire site.

  • If you learn flex box.

  • You could just position things which you couldn't really style thing.

  • So, um, I say, definitely if if you want to do react native, then you need to know flex box because flex box is the default positioning system for react.

  • Native eso definitely recommend using flex box.

  • That's what we use, Um, and like bootstraps, Not always gonna be available to you.

  • So, you know, try to learn the regular CSS.

  • It'll be easier to work on a variety of sites.

  • If you know, C s s bootstraps should be easy to pick up because it's just basically giving you chunks of pre written CSS attached to classes that you can add to your site s O.

  • If you know, really know CSS, you'd be able to understand all of bootstrap just by looking at the CSS files on kind of know what's what's happening and be ableto change it up and, uh, like, customize it to what you need.

  • Does that make sense?

  • Let me know if it does it all right.

  • Didn't get through everything, but let me go back to All right.

  • Here's what I'm gonna do.

  • I'm gonna say I want to mark down here where I left off.

  • Um, 7 46 I need to, like, adjust that tilt of my screen or something.

  • It's really hard to see.

  • I need new screens.

  • Period is amusing Some old screens that I've just gotten from people like when they're getting rid of their screens.

  • Okay, so let's how much time do we have?

  • Okay, so I have about 1/2 hour left.

  • So here's what I'd like to accomplish in that half an hour.

  • I want to get the styling.

  • So I want to get this button a little bit bigger, commit these new styles.

  • I'm not.

  • Obviously we're not finished with the styling, but this is just a little bit of some updates.

  • I want a demo Cyprus for testing, and then I want to finish the rest of the questions.

  • Okay, so that's the That's the plan.

  • So let's switch this up to use touchable opacity.

  • First, we can see in with touchable opacity.

  • Obviously, instead of using body button, we're replacing it with this.

  • But then also, we can put things inside of it, and in fact, we need to put things inside of it.

  • Uh, so let me show you what?

  • I mean, so right now, our button we can say like the title was submit.

  • And look, there's there's nothing.

  • There's no Children to this button when we switch it to touchable a pass ity.

  • If we did this, nothing would appear on the page.

  • Right.

  • So we need to give it Children, for instance, to say, like, Hey, here's what you should display inside of this button.

  • All right, so let's switch that up.

  • Now.

  • Go to the top of the file and where we have button, let's change it to touchable a pass ity.

  • I should have changed up here, too.

  • Yep.

  • Okay.

  • We're gonna change into touchable opacity.

  • Now, I know I'm gonna need something in here, and I will need text and let's say, oh, it is this our This is our restart, but, uh, I changed their own thing.

  • I forgot.

  • We had I till you forget, we had a restart button.

  • All right, let's do that again.

  • Let's keep button in there, because I don't wanna mess with the restart button right now just because I want to finish on time.

  • Right s.

  • So let's capacity.

  • Now, let's find the right button we had.

  • Okay.

  • Oh, actually, Did we?

  • Yeah, Yeah, this is what we did for a second.

  • I was like, Have we've been working on the wrong button the whole time, but I don't think so.

  • All right, So touchable.

  • Opacity.

  • Now we're going to say text submit, and then we're gonna close out touchable.

  • A pass it e Hey, no, let me just say so.

  • We'll just see what shows up on the page.

  • Now, before we do anything else you could see, it's it's just the button, right?

  • So it should still work.

  • So, like, right, there's no, um and, you know, I just thought of we should not allow a submit.

  • If there's nothing in here, I could see that being really frustrating for a child if they accidentally hit, submit, and haven't even put anything in there on.

  • Then another enemy comes like that.

  • Especially if a child is really struggling with their math and, like, almost beat, beat it and they know what the answer is.

  • And they just accidentally hit.

  • Submit like that could be devastating for a little kid.

  • Right?

  • So let's make that happen so that we check to make sure that If there is nothing in this box, we don't allow submit.

  • All right?

  • We're not gonna do that right now, but, um, let's just keep that in mind and add that in at some point.

  • Somebody wants to make an issue for that.

  • Feel free to make an issue.

  • I'll try to remember and make an issue for it later.

  • Uh, okay.

  • So we need to style this this submit button, right?

  • So you could see, like, our color.

  • You know, that's not that's not gonna work.

  • Right?

  • Uh, we do something to keep this test.

  • I d I believe the title.

  • It's not gonna matter.

  • Here.

  • We can double check that.

  • There is no title attribute.

  • It shows us.

  • Yeah.

  • So our props here style active capacity.

  • Okay.

  • Actually, this is kind of weird.

  • Why do we have It's weird that they don't list on press under this.

  • I guess maybe they're just like, assuming you would have, but any less we can remove.

  • Oh, yeah.

  • You definitely remove the color.

  • Let's give this a style, though.

  • Style equals, and that's a stiles dot We just call this button for now and then we're gonna have we have more than one button.

  • But we'll just say styles that button, and I'm gonna group this.

  • I'm gonna put this under input since it appears under the input.

  • All right, so we need to give this, like, ah, haIf with a background color.

  • Right?

  • So that's their height is gonna be at 40 pixels.

  • So we always want to at least go 40 for touches, you know, Let's go.

  • Let's at least bump it up to 50 right?

  • I want to make this bigger than you would normally make it for an adult.

  • Uh, like I said, I know kids fingers or smaller, but they may be a bit more clumsy.

  • Okay, but hey, uh, with let's just go with with, like, 100 for now and see how it looks.

  • And then background color, We can give it that same color that we had.

  • I'm not like a huge fan of that color, but I don't really have any other color in mind.

  • So you may as well just use it.

  • Okay.

  • Let's see what that gives us.

  • Hey, look.

  • Yeah, You got a button?

  • Okay.

  • You could see, like look, it's still just totally bare bones that the submit is not even centered.

  • So let's work on this.

  • Submit a cz Well, yeah.

  • Okay.

  • Eso we can actually set this to way.

  • I don't think I need to put display flex on here, but let's see.

  • So let's say justify content center in a line items center.

  • So this is flex boxes.

  • This is what I'm talking about when I say flex box makes vertically aligning things easy.

  • So this is gonna vertically and horizontally.

  • Center submit.

  • Hopefully, let's see.

  • Yep.

  • Area.

  • So now it was up here.

  • Now it is both vertically and horizontally centered.

  • So easy, especially if you remember everything that you had to go through to make this happen before flex box.

  • So much easier.

  • All right, Now we want to make are our text a little bit more readable?

  • So we're definitely gonna give it a color of Let's just say white for now, all right?

  • So f f f is going to give us white.

  • Uh, it's the hex code.

  • And let's make the font size s o.

  • The button itself is what's 50.

  • So let's make our font size 40.

  • I definitely don't want it to be bigger and see what it looks like hopes we didn't apply it to text.

  • So on the text here, let's say style equals stiles dot button text.

  • Whoa.

  • Okay.

  • We need to make that wider and okay.

  • Yeah, definitely make it water.

  • And probably taller.

  • Yeah.

  • All right.

  • So the button now is 100.

  • Let's double it to 200 and let's make its high 60.

  • Okay, that's more reasonable.

  • It's still not like a spectacular looking button, but it doesn't have a little effect rate.

  • It has this little kind of flash thing, right?

  • Um, and it still works.

  • All right, I tell you truth, like I I'm not thrilled with the way this button turned out, but it allows us to customize it.

  • So we can further customize this as we we need to write.

  • Uh, see, Yeah, that I'm kind of thinking that the submit button is like dominating the page.

  • Now, me.

  • Do you want to keep track of my time?

  • Okay.

  • But, uh, I think I'm at a point now where I want to commit this on and and then check out the testing Sweet.

  • So that I have enough time to get to the, um, like the messages the chat messages.

  • So?

  • So if you're totally a beginner and you're not really familiar with version control we're using get Okay, so we have, ah, get status.

  • And that tells us what's changed, right?

  • We've only really worked on one file, right?

  • So that's to be expected.

  • And now we're gonna do a get command, and I'm gonna give it an A M flag, okay?

  • And then I'm gonna put the commit message, so I'm gonna say future.

  • Um hey, this is like a terrible message, but we just adjusted Stiles, right?

  • So let's commit that.

  • And now we can do it.

  • Get push right, And that's gonna push that up to get home.

  • Right?

  • Okay, so that's, like, very, very basic of using get you commit, and then you push.

  • Um, now, we basically have a save point for a code that we could always go back to that point later on.

  • So if we totally mess things up in the next dream, it's OK, because we could always go back to this point.

  • All right, now, let's check out our package Jason for a second and see that we have this e TUI script, all right?

  • And that's gonna open up Cyprus and run some tests.

  • Hey, so let's check this out to rerun yarn E to E.

  • And I haven't really used Cyprus yet.

  • So harsh.

  • It's set this up.

  • Um, I think it's really cool.

  • I did run it once, just to see what it did, but it's definitely something that I want to learn more about because it's it's pretty cool.

  • So while this is still in its thing, which why is this?

  • There we go.

  • So you see, this is definitely different than what we have a test before.

  • Before our tests would just run and, you know, display some things here in the console.

  • But this is bringing up this whole you I write.

  • So it says, here's our tests.

  • Here's our file, right.

  • Oops.

  • This is the following.

  • Please.

  • Cool.

  • All right, so I click that and now it's running.

  • I didn't mean to actually run them, but so I clicked on that file when you could see its run all the tests in that file.

  • So we only have one file with the test.

  • I'm assuming if we had more, it would show all the tests and we could run them all at once if we wanted.

  • Okay, But you saw some flashes up on the screen of basically it was running this and going through the motions of clicking everything on it says we can see a title, we can see hero and we can we get the If we do a correct edition answer, it reduces the enemies by one.

  • Right?

  • So we don't have a lot of tests in there, but it's kind of cool to have a u IE as well.

  • I know some of the people I work with my team are way more familiar with you.

  • I stuff as opposed to, like, doing things through the command line.

  • Eso definitely could be helpful to be ableto have that that visual of this so I could see no recorded run?

  • Yes.

  • So there's a lot of stuff in here that I haven't even mess with.

  • Wow.

  • Okay, so there's all your settings in here, so I mean, this is really cool, so definitely check this out if you need to do react testing.

  • Really cool.

  • All right.

  • Uh, so I'm not gonna go more into that yet because I myself don't know that much about it so rather not mislead you.

  • But I promised our ship that I would demo it, so definitely, uh, check that out.

  • It looks cool.

  • It does give us some output in the command line as well.

  • Um, all right, let's let's go back to the chat.

  • So I've left about 15 minutes before I have to end the show for chat s O.

  • I hope I can get through everything before I have to end it.

  • And Okay, so I ended about there in the chat about 6 46 my time.

  • There we go.

  • Okay.

  • And I'm gonna I didn't really display what's changed in our package, Jason.

  • So I'm just gonna put that up here.

  • Really?

  • The dead to spend dependencies changed.

  • We have Cyprus and are excellent plug in for Cyprus and all the stuff with like, mocha and, uh, Chuy and puppeteer are gone.

  • All right, so let's get to these questions.

  • Uh, Abdulai says I am fresh to programming, and I don't know where to start.

  • Uh, check out free cocaine dot or ge and just start out with some of the lessons there.

  • It's totally free.

  • Just create a free account.

  • And like freak.

  • Oh, camps.

  • Never gonna try to sell you anything.

  • We're not going to spam you with ads.

  • Nothing like that.

  • So just check it out.

  • Start doing some of the lessons there and see how you like it.

  • Um, Web Nube says in response to creative girls.

  • Question about flex box and bootstrap.

  • Ingrid says everything is important to learn.

  • E I mean, ultimately, yeah.

  • It's great to know everything, but I would say, like, don't don't get overwhelmed Thinking that you have to learn everything.

  • You definitely don't.

  • You know, if you just pick something and learn it, you're fine, right?

  • So, um, I would just try not to be anxious about what To learn, what?

  • To learn first.

  • And in what order?

  • Uh, you know, just just learning something and being able to work with it is great Aton of websites use bootstrap.

  • If you just know.

  • Bootstrap.

  • There's a ton of work there, Um, the same way.

  • Like if you just know flex book.

  • You don't know bootstrap a grade.

  • You still do a lot of awesome things, like so basically, my point is like as long as you're learning something, that's your good, you know, you're already going in the right direction, you know, and you'll learn Maur eventually.

  • It just takes time.

  • Jimmy says Guys, please, Can you help me out?

  • How can I animate a button on long press?

  • Um, I'm not exactly sure.

  • That would be something I'd have to look at myself so I can't give you an answer right now.

  • But maybe somebody else in the chat can.

  • Web Nubes is Hey, Jesse, are you teaching your kids and programming?

  • Can't wait to try with my son?

  • Yes.

  • Oh, actually, I do.

  • So we have, like, some little kid programming books.

  • That way we read to the kids sometimes, and, um, we have turned the what is called Tinker.

  • So we have a tinker subscription.

  • Uh, I think it's like tinker dot com or something.

  • And they have coding exercises for kids, and so our kids do.

  • That s we've tried out some other ones, too.

  • But my son, especially my oldest My nine year old seems to really like the tinker stuff, and he works on it all the time s Oh, yeah.

  • So we're trying to teach him and not like pushing them into that into it, But you know, just kind of providing them with books and, uh, you know, like, lessons and stuff.

  • So it's there if they wanna want it, you know?

  • And they're just excited about using a computer s o if I tell him.

  • Like, all the only way you can use computers.

  • If you're doing the coding stuff, then usually that's enough.

  • And they do it.

  • It is a rich, rich bob.

  • Bob, I'm really sorry.

  • I'm not pronouncing your name.

  • Right, but says Are you using the windows subsystem for Lennox?

  • Uh, no.

  • So I am using bash on windows, but I'm not.

  • I haven't done anything with the the subsystem yet.

  • It's a gaming says hello, everyone.

  • Hey, how's it going?

  • I see.

  • Oh, cool.

  • So, Michael Krill, you answered my question about the button, and unfortunately, I didn't look over to see that, but thanks, Michael.

  • Basic says from Stack overflow.

  • This component has limited options, so you can't resize it to a fixed fight.

  • All right, So, uh, so that is true.

  • So basically, we did have to switch the button over to a touchable a pass ity in order to basically change anything except the color and texture.

  • Um, for fair gente a says, Are you doing the mobile or web?

  • Yes.

  • So right now we're doing web, but we're gonna switch it over the mobile.

  • So let me give you an update on that.

  • Actually, so I'd like to use expo toe, help us, uh, test and build the mobile versions, but unfortunately, so All right, let me have some background to explain this.

  • So, like, Expo just takes has its own fork of react, native, right, And it allows you to create react native APS more easily.

  • It comes with a lot of built in things to to like developer tools and, like different components that work with hardware on a phone on a device.

  • So I'd love to use extra because it comes with all that.

  • But since Expo has its own fork of react native, it's behind a little bit.

  • So it's not the latest version.

  • So the latest version of React native allows you to use react hooks, which we are using, right.

  • But the Expo version of React native doesn't yet support hooks, So if we try to use Expo right now, we would have to switch to not use hooks and that would be a lot of re factoring.

  • And I don't want to re factory back toe, rather use hooks.

  • So the plan is this.

  • I'm gonna keep developing the, uh, Web version.

  • I'm gonna keep the mobile styles in mind.

  • Like by using depth tools and mimicking the phone.

  • Right.

  • Uh, but we're not actually gonna test it on a device.

  • We're gonna wait for the next update to Expo, which should allow us to use hooks.

  • Then we'll pull an expo into our project and we'll be able to run the Web version in the mobile version, the mobile in a simulator, side by side so that we make a change.

  • We can immediately see how it impacts both the Web and mobile versions.

  • So hopefully that makes sense.

  • We could just use straight up, react native and run it like that.

  • But I I really do like everything.

  • The additional stuff that Expo uses.

  • So I'd rather just wait on that.

  • If it seems like it's gonna take a really long time, then maybe we'll rethink that strategy.

  • But that's where I'm at right now.

  • So the mobile is coming.

  • We're just kind of waiting on the next Expo update.

  • If anybody had nose like, If you've been keeping track of the updates to Expo and you have some insight into when that's gonna happen, let me know, Uh, last week or something, I did read up on it.

  • Um, and at least that that point, I don't think there was an exact time for the next release.

  • Uh, side says Love you, bro.

  • Oh, thanks.

  • I love you too.

  • Um, let's see then.

  • It says this channel is great.

  • Menu says Thanks.

  • Thanks.

  • I appreciate that.

  • Men who says please suggests All right, let me hold on.

  • Let me read this.

  • Questioning says I'm intermediate and JavaScript, but I can't build up logics.

  • What should I do?

  • Um, I check out some of the more advanced Java script problems in free code camp.

  • Eso freak o can about organ.

  • I checked those out.

  • I know I keep recommending free code, can't.

  • But it's quality stuff and it's totally free, right?

  • If you feel like you need more than maybe, you know, go look at some of the paid things out there, but free code camps always a great place to start.

  • There's always links to additional resource is on the freak.

  • O can't lessons, so you can go and read more if you want to.

  • But I would say, Yeah, check those out.

  • It's gonna give you some algorithm problems on dhe practices, Really?

  • I mean, that's how you build up your skills to just keep at it.

  • Um, it it'll be tough.

  • It's tough for me, um, to do the hour of them stuff and kind of the more advanced logic based off, right?

  • Because as a primarily like Web mobile developer, you're not doing a lot of algorithm based stuff, so you don't normally get practice.

  • You can't have to go out of your way to keep up and practice that stuff, J M.

  • Says.

  • Has have you ever told your YouTube audience about how you got into code and your challenges?

  • Obstacles, how you get your first job?

  • It said it would be of interest to us newbies.

  • So I have a little.

  • So check out my YouTube channel.

  • The Lincoln is in the description.

  • I have done some videos on, like my background and how I got into that.

  • So go ahead and check that out.

  • Um, if you check that out.

  • And like, there's something more specific you want me to talk about.

  • Let me know, and maybe I can make a video about that as well.

  • But yeah, that's a good question.

  • And so I do have kind of a basic overview of how I got into coding, so that should kind of highlight a lot of that.

  • Oh, goodness.

  • Um, this somebody said in response to the question about building up skills and logic and stuff, uh, somebody gave the response of just give up if you can't build logic than coding is not really your thing.

  • Um, so number one, I would say Please don't do comments like that, you know, we're trying to help each other out.

  • S o.

  • I don't really want comments like that.

  • Keep it positive.

  • Secondly, but I'm gonna say it again.

  • Like practice is the difference between people that can do things and people that can right there, there's not like, you know, some people do have more natural ability one way or another, or maybe their background gives them more ability, but it's still if you practice, you can get there.

  • So, uh, if something is really hard, that doesn't mean, you should give up.

  • It doesn't mean you can't do it, right.

  • It just pains anymore.

  • Practice, right.

  • That's that's it.

  • So, yeah, Don't Don't give up.

  • Uh, if this is what you want to dio, then keep at it.

  • Right.

  • Um and, uh, just don't get too scary.

  • You know, it's easy to say, Don't get discouraged, but just realize that, like that, everyone goes through times where they feel like they just can't figure things out.

  • Like I was working on a bug on my work projects and trying to get something to work for, like, over a week.

  • Just trying and trying and everything I tried just didn't work, and I just felt like I was never gonna figure this out.

  • Uh, and then then I did, and it works, and it was awesome.

  • And my team was excited.

  • And my boss took me to his boss and said here, demo this thing right?

  • It was awesome, all right.

  • And but I really thought, you know, just just like two days before, I was, like, in despair of ever finding a solution, right?

  • So it's just like you keep going and, uh, you find a solution right.

  • I think people that have been doing this for a long time realized that you will always find a solution eventually.

  • S o you know, don't give up, But just in general, everybody try to keep things positive here.

  • You know, there's enough depressing stuff out there in the world.

  • I don't want this stream to add to that.

  • Okay, Um, it Graham says anyone know any materials about music recommendation systems could be helpful to my college project.

  • I'm really sorry.

  • Um, I don't know anything about that.

  • So I won't be able to help you.

  • Hopefully somebody in the chat can, um all right.

  • So J says I'm confused between Andrew and react.

  • What?

  • Can I start for job purpose?

  • Um, okay.

  • So react is used normally for Web apse, right? 00:58:33.530 --> 00:58:36

go, everybody.

字幕與單字

單字即點即查 點擊單字可以查詢單字解釋

A2 初級

React Native Web Styling (P7D12)--與Jesse一起現場打碼 (React Native Web Styling (P7D12) - Live Coding with Jesse)

  • 0 0
    林宜悉 發佈於 2021 年 01 月 14 日
影片單字