How to Program in C# - Conditions (E03)

Поділитися
Вставка
  • Опубліковано 11 лип 2020
  • Let's learn how to use conditionals in C#!
    ► Get The Complete C# Masterclass for only $9,99! www.udemy.com/course/complete...
    ● Watch the previous C# tutorial: • How to Program in C# -...
    ● My Solution to the Challenge: bit.ly/31eXoFI
    👕Get the new Brackeys Hoodie: lineofcode.io/
    ····················································································
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ► Join Discord: / discord
    ● Website: brackeys.com/
    ● Twitter: / brackeystweet
    ● Instagram: / brackeysteam
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. We believe that education should be available for everyone.
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ········································­­·······································­·­····
    ♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

КОМЕНТАРІ • 934

  • @nightlifebartenders
    @nightlifebartenders 3 роки тому +259

    I'm sad this channel stopped. I just found it!

  • @parlerler3872
    @parlerler3872 3 роки тому +977

    Brackeys: types lines of code faster than the speed of light like it is nothing
    Also Brackeys: (4+3+2+1)/2 = 6

    • @Nitsu_
      @Nitsu_ 3 роки тому +16

      F

    • @TheTimster02
      @TheTimster02 3 роки тому +52

      The easiest way he could have caught it is if the if statement didn't contain the answer but the calculation itself.

    • @rosechan8258
      @rosechan8258 3 роки тому +1

      Malek Wa3er is the answer 10?

    • @ayoitsparky
      @ayoitsparky 3 роки тому +10

      @@rosechan8258 it's 3...
      edit: it's 5

    • @ayoitsparky
      @ayoitsparky 3 роки тому

      @@honorsoftentertainment484 yes Ik. my edit didn't go through

  • @markovladisavljev1442
    @markovladisavljev1442 3 роки тому +350

    Yes finally a programming tutorial that is actually good and explains everything perfectly.

    • @eerice704
      @eerice704 3 роки тому +25

      Haris Sabotic well definitely one of the few best

    • @GabeTheYabe
      @GabeTheYabe 3 роки тому +4

      You make it sound like he's the only one with a good programming tutorial, yet I can give you a list of people who have good tutorials.

    • @onlymal31
      @onlymal31 3 роки тому +2

      If you search for free code camp in youtube there will be hours long of tutorial for C#, Java, Phyton etc

    • @smokedplus
      @smokedplus 3 роки тому +3

      @@onlymal31 freecodecamp wastes too much time

    • @onlymal31
      @onlymal31 3 роки тому +2

      @@smokedplus i think so too but I need this kind of teaching if I want to understand it as other tutorial it's like they expected us to understand everything from to beginning or they say like "I will explain this later" and never/show it at the end of the playlist

  • @ravestechworld6445
    @ravestechworld6445 3 роки тому +139

    Hey Bracks, I just wanted to say thank you for helping me with C#, I am a 14yrs Old game Developer and You're videos have really helped me a long way thank you I've been looking at your Older YT videos about C# and you've really helped me boost my confidence. Once again Thank you

    • @cross8169
      @cross8169 3 роки тому +17

      Nice i am in your same situation, unfortunately i dont understand much from the older tutorials, so i have to wait for one every week

    • @doracat3346
      @doracat3346 3 роки тому

      Nicceees

    • @froggothecommentator8036
      @froggothecommentator8036 3 роки тому

      Same here Rave :))

    • @yellow-brain4735
      @yellow-brain4735 3 роки тому +1

      @@DiamondZap Same yet 2 years younger.

    • @berryraspberry162
      @berryraspberry162 3 роки тому +1

      @@DiamondZap im 15 fam and same situation

  • @tundra3693
    @tundra3693 3 роки тому +284

    Thank you sooo much for this series, it’s just a shame that we have to wait a weak for a new episode but keep up the amazingggg work...

    • @equation1321
      @equation1321 3 роки тому +2

      this

    • @thefork4416
      @thefork4416 3 роки тому +2

      Yeah it’s kind of annoying

    • @Ashiiru
      @Ashiiru 3 роки тому +27

      @@thefork4416 imaging working so hard to have a kid on his video complaining about the time you take to maake the viddo lmao lmao

    • @thefork4416
      @thefork4416 3 роки тому +12

      Ashiiru I’m sorry

    • @Ashiiru
      @Ashiiru 3 роки тому +16

      @@thefork4416 its ok, I just think sometimes people are not grateful with they have

  • @user-qq2bs2jh6o
    @user-qq2bs2jh6o 3 роки тому +30

    Honestly, I never thought I'd understand a single line of code, but following along these tutorials, I think I'm finally starting to get why and how people do thing 😂 After the first ticket example, I tried to do the rollercoaster one without looking at how you did it! Of course I know that this is just one of the most basic stuff you can do, but it still felt freaking amazing when I got it right!!

  • @scholarahmead3853
    @scholarahmead3853 3 роки тому +179

    Brackeys: uploads a tutorial on C#.
    also Brackeys: gets sponsored by a guy who teaches C#.
    edit: oof i didn't expect to get so many likes. (btw i haven't checked on this comment in like 7 months)

    • @scholarahmead3853
      @scholarahmead3853 3 роки тому +1

      @chispers nothing

    • @berryraspberry162
      @berryraspberry162 3 роки тому +18

      Console.Title = "Random comment";
      //I mean at least its easy understand in a minute than a full course c#, i don't know if u joking around or....
      if (you'reJoking)
      {
      Console.WriteLine("Nice joke");
      }
      else
      {
      Console.WriteLine("LOL be grateful dude");
      }
      Console.WriteLine("Don't take my joke too seriously ");
      Console.ReadKey();

    • @birkefar
      @birkefar 3 роки тому

      berry raspberry omg noob

    • @berryraspberry162
      @berryraspberry162 3 роки тому

      @@birkefar xD

    • @dordijebojovic5582
      @dordijebojovic5582 3 роки тому +1

      @@berryraspberry162 this kind of comments always make me laugh idk why xdxd

  • @peenuts3028
    @peenuts3028 Рік тому +7

    Not only did I make the math game, but I also made a score system that gave you your score out of 3 and as a percentage at the end. I have never been more proud of myself.

  • @pgt915
    @pgt915 3 роки тому +45

    One more thing
    For newbies,an extra tip is that if you put an ! behind the condition,it will be reversed.So if the condition is true,with ! now it's false and if it's false,with!now it's true.Example:
    !num >5
    If the condition is true(num is greater than 5),now it's false,but if the condition is false(num is not greater or it's smaller than 5),now it's true.
    And another great tip is you can reverse a boolean value with this syntax(assuming your boolean value is called boolName but the name can be changed):
    boolName = !boolName;
    So,keep these tips in mind,they will prove helpful.

  • @sugaru4237
    @sugaru4237 3 роки тому +696

    YandereDev could definitely learn one or two things here.

    • @Meeg-
      @Meeg- 3 роки тому +81

      I don't think his ego will let him take coding advice from anyone. Remember what happened with tinybuild?

    • @moldybot9387
      @moldybot9387 3 роки тому +13

      Yeah, all these if statements...but I have to say that he used an old an unefficient lathfinding system...

    • @limenka.
      @limenka. 3 роки тому +2

      Underrated comment

    • @AgsmaJustAgsma
      @AgsmaJustAgsma 3 роки тому +48

      Unfortunately in this tutorial Brackeys doesn't teach us how to model a toothbrush.

    • @realstulu
      @realstulu 3 роки тому +2

      He optimized his code alteady. But only small parts...

  • @ItsaMeGarbo
    @ItsaMeGarbo 29 днів тому

    this playlist has been helping so much more than any beginner tutorials i've been finding.
    you explain what the code does, but the best part is that you give us a small challenge that gives us a chance to learn something. i havent looked back at the code except for the first challenge, when i forgot one thing i needed, but not again yet. every other beginner tutorial had me looking back every couple of seconds.
    this is what more tutorials should be, instead of just showing what this does, give the people who need it a bit of "homework" to have them do it themselves, because that way it sticks, rather than when you manually copy every line.
    thank you so much brackeys!

  • @sleep3017
    @sleep3017 3 роки тому +10

    He teaches so well that we are already into if statements in ep 3
    Normally people would spend 10 videos then come to if statements
    he teaches so well that people can understand and can move on quickly

  • @seathesauce
    @seathesauce 3 роки тому +14

    when i watched other tutorials i got bored of programming but you make your tutorials so fun that when i go to sleep i cant wait to code and learn to code more. Awesome!
    and i like the fact that he gives us homeworks so that we will learn it better.
    Thank you!
    Thank you for all that you did, i will miss you.

  • @diamondpod8487
    @diamondpod8487 3 роки тому +11

    These videos are really helping me learn c#. These videos are my starting point for c#. I really want to be a game dev as a career and I think this will help me. Thank you for making these videos.

  • @tommy_in_canada
    @tommy_in_canada 2 роки тому +10

    this is a great course for beginners. love it. I wish they continued the course.

  • @TheEarlyAstrotype1024
    @TheEarlyAstrotype1024 2 роки тому +4

    12:05 Thanks for this one! With this "switch", I can finally give different messages for each scores for the score counter I made!

  • @nissepistol6089
    @nissepistol6089 3 роки тому +26

    Damn I love this series soooo much, I'm actually learning a whole lot. Can't wait for the next episode! Keep it up!

  • @mixlaproduction
    @mixlaproduction 3 роки тому +232

    Awesomeee 🤣

  • @florian538
    @florian538 3 роки тому +20

    Me: "Help, I don't know what to do!"
    Brackeys: "Do do doop doop, do dododo doo!"

  • @Maggiethegsd
    @Maggiethegsd 3 роки тому +1

    Yay another tutorial. I admit it, these are the cleanest, fastest and most beginner friendly. Just the best tuts out there!! Asbjorn and team are awesome!!

  • @NeruTanoshiItami
    @NeruTanoshiItami Рік тому +5

    I always thought c# was hard but you made it seem super easy. Thx Brack!

  • @zumaofficialchannel5051
    @zumaofficialchannel5051 3 роки тому +3

    Very hopeful tutorial's . I never had with C Sharp, and in these 4 episodes i learn very good . So Thanks a lot for these tutorial's!

  • @i_am_gh0st
    @i_am_gh0st 3 роки тому +1

    Thanks for these more basic tutorials dude! You are really helping me out! I can't wait for more!

  • @FrostMonarch13
    @FrostMonarch13 3 роки тому +2

    This series, is the first that has actually helped me learn C#.

  • @LettucePlate
    @LettucePlate 3 роки тому +590

    This guide is completely outdated and misleading. You’d never find movie tickets for $5 nowadays.

    • @ev7r
      @ev7r 3 роки тому +129

      They had us in the first half, I’m not gonna lie.

    • @icedchqi
      @icedchqi 3 роки тому +18

      @@ev7r i was literally about to say that
      (now i cringe at self)

    • @mystikblade5941
      @mystikblade5941 3 роки тому +6

      Bruh your life is outdated

    • @birkefar
      @birkefar 3 роки тому +11

      Damn diamond really roasted u thats crazy bro

    • @mystikblade5941
      @mystikblade5941 3 роки тому +5

      Sidefluux
      Thx

  • @samirehman4565
    @samirehman4565 3 роки тому +4

    If you only upload videos on Sunday this series will never ends. Especially if you're considering to cover Advance stuff , like OOP , design patterns , principals, algorithms etc

  • @Flip2kYT
    @Flip2kYT 2 роки тому +1

    Such a helpful video. I am currently on episode 4 and started yesterday. Thanks for sharing this!

  • @jackiechan6460
    @jackiechan6460 Рік тому +1

    if statements. "Finally". I have tried to learn from other teachers, and gotten to if statements but never really understood what I learned before then. Just kinda thought "well, I will manage". I completely understand up to this point, and thank you for being such an excellent teacher. Not just you, but also whoever helped you write this and the production team.

  • @koi596
    @koi596 3 роки тому +3

    Please keep doing these programing tutorial videos, they really help me study

  • @JelleVermandere
    @JelleVermandere 3 роки тому +9

    This is a great series to see if I have gaping holes in my current coding knowledge ;)

  • @_Scoobys_
    @_Scoobys_ 2 роки тому

    So far this has been really fun and I am really like the challenge at the end big props to you making this experience fun

  • @moc-iwnl4696
    @moc-iwnl4696 3 роки тому

    why is this the best type of tutorials? i hope you have more language tutorials cause ill be here for a while!

  • @smarty265
    @smarty265 3 роки тому +5

    Shame this series is so new and we have to wait. These tutorials are so helpful :D

  • @krzysztofpaszkiewicz1274
    @krzysztofpaszkiewicz1274 3 роки тому +50

    With this publishing schedule you'll get to arrays in 2022...

    • @harissabotic5714
      @harissabotic5714 3 роки тому +2

      More like in 2-3 months...

    • @krzysztofpaszkiewicz1274
      @krzysztofpaszkiewicz1274 3 роки тому +13

      @@harissabotic5714 Kinda exaggarated to prove my point you know. I'm way past begginner point and subbed here for other reasons but I watch this tutorial for fun. Still I couldn't remember what was the last episode about...

    • @sixsus4880
      @sixsus4880 3 роки тому +5

      I agree with you, but this tutorials have some very high quality, and we can't imagine how long it might take to produce

    • @TheSpacecraftX
      @TheSpacecraftX 3 роки тому +4

      They're consuming the whole channel. 4 of the 6 videos in the last month are these basics of programming that most of the audience already knows. And he's not even putting them out fast enough that an actual beginner can follow along.

    • @puedoiralbanoporfavor854
      @puedoiralbanoporfavor854 3 роки тому +2

      @@TheSpacecraftX Im having no trouble at all

  • @toystoryscarymovie-forkids3323

    isnt this ironic that of all the years i put to learn programming without success, this is where i finally learnt how to code and understood programming because of the simplicity of the approach , direct to the point and no unnecessary confusing information and grandocious grammer ! my sincere gratitude to Brackeys!

  • @soggeysandwhich7520
    @soggeysandwhich7520 3 роки тому +1

    Can we appreciate the fact these beginning tutorial episodes are what you need to know to start a basic game!

  • @vilcu5913
    @vilcu5913 3 роки тому +11

    YandereDev really just watched half of this video and made the whole game

  • @TheToneBender
    @TheToneBender 3 роки тому +16

    Me: Watching Brackeys video's because I just started game development and I need to learn things

    • @eoinbyrne9068
      @eoinbyrne9068 3 роки тому

      how are you going now 5 months down the road? im only starting now in unity

    • @dogzrule1551
      @dogzrule1551 3 роки тому

      Good luck on creating a good game.

    • @dogzrule1551
      @dogzrule1551 3 роки тому

      @@eoinbyrne9068 Same

    • @eoinbyrne9068
      @eoinbyrne9068 3 роки тому

      @Fiadel Veis Welp, I haven't made much progress tbh, Ive went in waves of doing some and then none for a while, also busy with school so haven't had the energy or motivation, hopefully will have more time in the summer.

    • @eoinbyrne9068
      @eoinbyrne9068 3 роки тому

      @Fiadel Veis thank you, appreciate the kind words, I wish you the best of luck in your future 👍

  • @Daskiel
    @Daskiel 3 роки тому

    Thank you for the amazing content and tutorials you give us! You have no idea how much this helps me out.

  • @adrexcodegames749
    @adrexcodegames749 3 роки тому

    I love your videos, you inspire me to keep pushing forward in-game development and I'm a huge fan

  • @sansprosii
    @sansprosii 3 роки тому +12

    The “if else” part gives me YandereDev flashbacks...

  • @seireiart
    @seireiart 3 роки тому +55

    YandereDev need to see this tutorial xDD

    • @CapitalCrimez
      @CapitalCrimez 3 роки тому +14

      He already saw this tutorial. This is where he stopped

    • @nighthawk8193
      @nighthawk8193 3 роки тому +12

      @@CapitalCrimez No, he stopped just before the switch statement.

    • @cross8169
      @cross8169 3 роки тому +1

      Copied joke, but nice logo

    • @masacote_
      @masacote_ 3 роки тому +1

      @@nighthawk8193 He only saw the thumbnail

    • @something871
      @something871 3 роки тому +2

      why tho i dont understand explain pls
      dont r/whooosh me

  • @johni3080
    @johni3080 3 роки тому +1

    thanks for the great tutorial, you're truly helping me with everything

  • @coolmania8991
    @coolmania8991 3 роки тому +2

    Great video, Thanks!

  • @sidraifthikar318
    @sidraifthikar318 2 роки тому +2

    I wish homework was this fun at school...

  • @DrewHelander
    @DrewHelander 3 роки тому +17

    im just wondering, how would you go about making a final score at the end of the math game you make.
    Edit: I figured it out, if anyone wanting to add a score to the game you would want to right int score =3; then for every question they got wrong put in score = score - 1;
    a complete question would look like:
    if(ans01 == 31){
    Console.WriteLine("Correct!");
    } else if( ans01 != 31) {
    Console.WriteLine("Incorrect!");
    score = score - 1;
    }
    Hope this helps if you wanted to add a score.

    • @michalsimanek6988
      @michalsimanek6988 3 роки тому +1

      i think that "score--;" should work too (two minus in a row). It does the same as "score = score -1;" but it's shorter. There is also *var name here*++, but it adds one instead of substracting. Hope i said you something useful :) (btw your code is fine i just thought i should show you the -- and ++ operators)

    • @techgamer948
      @techgamer948 3 роки тому +1

      Michal Simanek is this a cursed comment?

    • @rolong927
      @rolong927 2 роки тому

      @Kyle Shim if you are still struggling with this, its probably because you need to declare the variable "score" (or whatever you want to call it) into your code

  • @RabailNadeem-qz5pg
    @RabailNadeem-qz5pg 4 місяці тому

    I HAVE NEVER IN MY LIFE BEEN SO EXCITED TO DO HOMEWORK AND I ABSOLUTELY HAVE NOT BEEN SO HAPPY TO GET IT RIGHT.

  • @CreatorRob
    @CreatorRob 3 роки тому

    This is solid work. My suggest for a future topic would be how to deal with garbage values from the input stream and moving the game forward in spite of it. Apologies if this was already covered somewhere in your other videos.

  • @DOK_ROC_ART
    @DOK_ROC_ART 3 роки тому +5

    11:06 is the perfect timestamp to fix Yandev's code.

  • @NotA3xCombo
    @NotA3xCombo 3 роки тому +3

    Brackeys just taught me how to write a switch statement in less than a trillionth of the time YandereDev's stuck to else if statements.

  • @Met_Man
    @Met_Man 3 роки тому +1

    I made it tell me how many i answered correctly out of all the questions as well did'nt take that long.
    Keep up the good work and videos of great quality.

  • @gabrielemurgia7260
    @gabrielemurgia7260 3 роки тому

    i couldn't do a thing with a lot of if statements and you solved all my problems, thanks, also thanks because with you i started my journey in coding

  • @SpaceDave-on8uv
    @SpaceDave-on8uv 3 роки тому +8

    How are there dislikes already? The video has been online for max 1minute and nobody has watched it to the end, same with likes

    • @swaraagsistla8641
      @swaraagsistla8641 3 роки тому +1

      so agree

    • @jeremiahmcelroy2726
      @jeremiahmcelroy2726 3 роки тому +1

      because there are a million coding tutorials out there. I don't need another one. Brackies has so many unique videos I can't find anywhere else, and this is not one of them. Feels like filler content. Even if he is serious, is he going to do a 200 episode + tutorial on coding? Because that's what is realistically necessary without going to another channel anyways. That is not his style and he won't put much content into this series anyway so why bother.

  • @pepegamachine5344
    @pepegamachine5344 3 роки тому +43

    Console.Title = "Top 1 Comment";
    Console.WriteLine("This is very similar to math, very easy to understand");
    Console.ReadLine();
    Console.WriteLine("I love your vids man i subbed, btw i just found out your vids yesterday");
    Console.ReadLine();
    Console.WriteLine("Wish you have a wonderful day :)");
    Console.ReadKey;

    • @nguyenhoanglong420
      @nguyenhoanglong420 3 роки тому +1

      Genius :)

    • @Andres-vd8uy
      @Andres-vd8uy 3 роки тому +1

      I dont thjnk you need the Console.ReadLine(); i mean more than once

    • @costin88boss74
      @costin88boss74 3 роки тому +2

      @@Andres-vd8uy it clearly does not matter, even though he can then write text then press enter.

    • @rashy15
      @rashy15 3 роки тому

      @@prishpundikalpaka6879Console.WriteLine("fr he sure did forget the () after Console.ReadKey")

    • @galaxyknightx0x55
      @galaxyknightx0x55 3 роки тому +1

      *Top 1 Comment*
      Console.WriteLine("This is very similar to math, very easy to understand");
      *yes, I somewhat agree*
      Console.WriteLine("I love your vids man i subbed, btw i just found out your vids yesterday");
      *I was here for a bit*
      Console.WriteLine("Wish you have a wonderful day :)");
      Console.ReadKey;
      *Exit*

  • @berryraspberry162
    @berryraspberry162 3 роки тому +1

    Thank you so much :) this really easy to understand and save a lot of time learning. Again, thank you so much!

  • @roadstermane
    @roadstermane 8 місяців тому

    You are my savior, Brackeys. Thanks to you, my dad is impressed of my work and refers it as a hobby, and not as a slack-off job. If you're reading this, God wish you the best in your life.

  • @bodybody5609
    @bodybody5609 3 роки тому +5

    11:07 leaked code from yandare dev

  • @thejestersshow978
    @thejestersshow978 2 роки тому +3

    I hate how the US decided to not use the metric system...
    How old is 190 cm?

  • @parikramasachan3090
    @parikramasachan3090 2 роки тому

    I hate coding or computers per say but i am stuck to do it and and i searched tutorial and man !!!! your voice is so soothing and you are lamely funny, i am actually learning something!! its awesome
    Thank you sincerely

  • @James-k1416
    @James-k1416 3 роки тому

    I learn it from the start to this in one day. All thanks to you i could create these wonderful code!

  • @Luke-xt6jr
    @Luke-xt6jr 3 роки тому

    I have been coding on python for about a year so I know allot about Conditions , variables, lists etc. but I eventually realized that python code was limited for game development so I decided to switch to C#. Thanks for the tutorials, its really helping me :D

  • @hachimitsu00
    @hachimitsu00 3 роки тому

    Thank you!! was looking forward to this video! Very helpful

  • @k.festusmakau8869
    @k.festusmakau8869 Рік тому

    Awesome your tutorial are enjoyable not boring man I like the way you explain. After going through several UA-cam channel finally and finally have arrived. Thank you Man

  • @kaapoXII
    @kaapoXII 2 роки тому

    Thank you so much for making this easy to get into!

  • @lucajack492
    @lucajack492 3 роки тому

    Please keep doing these frequentley, it helps so much

  • @ekzac
    @ekzac 3 роки тому

    I learned these things almost 2 decades ago, but Brackeys' videos are so inspiring that I am here, watching hahaha

  • @heartbreakerdan8857
    @heartbreakerdan8857 Рік тому

    Thank you so much for making these fun and very well explained videos. I'm actually having fun coding now

  • @elishr209
    @elishr209 3 роки тому

    Thanks for these videos Brackey. Halfway in and I am really enjoying it! Only regret is that I didn't start earlier with programming.

  • @Mike-sg5is
    @Mike-sg5is 3 роки тому

    This tutorial is great! I actually know how to code in Java. By seeing the similarities but also the differences it helps me a lot for Unity-Coding.

  • @melaniegann5834
    @melaniegann5834 Рік тому

    Thanks so much this was so helpful!!

  • @OkkarMaung
    @OkkarMaung 5 місяців тому +1

    Thank you so much

  • @lolorsomething4244
    @lolorsomething4244 2 роки тому

    Did the challenge on the previous video in the series! With no help! I just got into coding, and really want to get into game development. Thank you brackeys! Sad to see you go.

  • @fornax985
    @fornax985 3 роки тому

    That's just a wonderful tutorial, thanks Brackeys

  • @madiserts59
    @madiserts59 3 роки тому +2

    this is really helpful, thanks!

  • @alsaka3627
    @alsaka3627 3 роки тому +1

    You helped me soo much I really appreciate your work

  • @eggoo
    @eggoo 3 роки тому +2

    the euphoric moment of managing to complete brackeys's challenge (with minimum 'checking back on the video to see if what i wrote is correct') correctly but also the dreadful feeling of being unaware if it's formatted completely wrong and vscode just forgave you

  • @Doubsteel
    @Doubsteel 3 роки тому +1

    Thanks Brackeys!

  • @m1trappy319
    @m1trappy319 3 роки тому

    great video, helps a lot

  • @KyuVulpes
    @KyuVulpes 3 роки тому

    I would of at least expected you to have introduced the, in my honest opinion, the better way to convert strings to numbers or booleans, that being the TryParse. I feel like that could have been used here well. TryParse is better since if it fails to parse, it won't crash the program/task and you do not need a Try-Catch. It outputs the value using the out parameter, which you could explain in a later video. Convert is mainly good when you need to convert one type to another, ie, System.Object to say System.Collections.Generics.IList (and yes, I did have to do that for my settings manager in quite a bit of programs I made), while TryParse or Parse is good for user input AND it does make it easier to read. For an int it is just int.TryParse, float is float.TryParse, decimal (yes this is an actual type, it is a 128-bit float) is decimal.TryParse (the same goes for all the other primitives, and just remove the Try and remove the out parameter and now you have the Parse method.)

  • @sheeshifpv7861
    @sheeshifpv7861 3 роки тому +2

    Incredible video

  • @benmccarthy1710
    @benmccarthy1710 3 роки тому

    Love this series keep it up

  • @Kats_Sad
    @Kats_Sad Рік тому

    This helped me so much thank you

  • @caidenbond1988
    @caidenbond1988 3 роки тому

    Great video!!

  • @viljuo
    @viljuo Рік тому

    I refused to look at the answer and after like half an hour the lesson out. This is really fun!

  • @BlizzardRoad
    @BlizzardRoad 2 роки тому +1

    i actually learn a lot from these thanks

  • @dipinxod3321
    @dipinxod3321 3 роки тому

    I have been patiently waiting for you to upload the next episode. Finally....

  • @bmjman6141
    @bmjman6141 3 роки тому +1

    Bracky, you are the bees knees thank you so much for the 9$ course holy shit this is a steal!

  • @tigowesterkamp3315
    @tigowesterkamp3315 3 роки тому +2

    this is a great serie, i started programming 1 year ago but after a lot of tutorials i only learned how to copy code... This serie is clear and slow. i also really like how you give us assigments to test if you know how it works. keep this going youre helping me really much!

  • @Sam01951
    @Sam01951 3 роки тому

    Nice work!

  • @unityprogram2324
    @unityprogram2324 3 роки тому

    Thanks this was really useful for my game!

  • @majedmazher4170
    @majedmazher4170 2 роки тому

    You are the best one 💖

  • @rishikotian2265
    @rishikotian2265 3 роки тому

    Wise....
    I learned more in this vid than any other

  • @vehbiaky2126
    @vehbiaky2126 3 роки тому

    The new best way of learning code

  • @WiLDbEAsTGameSHere
    @WiLDbEAsTGameSHere 3 роки тому

    Thanx so much for it

  • @prateekgadale4138
    @prateekgadale4138 3 роки тому

    Best channel for unity developer 😁😁😁😁

  • @HelloMeow
    @HelloMeow 3 роки тому

    thank you

  • @psadicodes
    @psadicodes 2 роки тому

    Thank you so much. I just created a program to find your age using math with VSCode

  • @XDarkEcho
    @XDarkEcho 3 роки тому +1

    Onward to the next video!! Lets keep this pace up folks!

  • @juliansikes7409
    @juliansikes7409 2 роки тому

    I have juggled around lots of languages, but I couldn't actually learn them. However, in these tutorials, I feel like I am actually learning something.

  • @KentuckyFriedJohansson
    @KentuckyFriedJohansson 3 роки тому

    I bought that Udemy course he talked about in the beginning a few days ago, and I can't understand a jist of it, I felt as if nothing is truly explained what its for.
    These small tutorials here are a lot more comprehensible.