How to Program in C# - Methods (E06)

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • Let's learn how to re-use code with methods in C#!
    ► Check out Milanote for free: www.milanote.c...
    ● My Solution to the Challenge: bit.ly/3b4JVmJ
    ····················································································
    ❤️ Donate: www.paypal.com...
    ► 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...
    ········································­­·······································­·­····
    ♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

КОМЕНТАРІ • 664

  • @Wonrofccsreal
    @Wonrofccsreal 4 роки тому +153

    I had done a 50 hour C# course and it didn't do me much, plus it cost 30$.
    But your series of videos are so clear and simple that I am now even better than my friend whos been coding C# for 3 months! Thanks a lot Brackeys!

    • @eclipsek0
      @eclipsek0 Рік тому +9

      You can code for 3 months but still not know a lot of stuff. I have been coding with GoLang for year, I really like it, however I can barely put something from a http request into a database. Whilst python (I know for 4 years), I do not know how to do something like that. TLDR: good explation will really help your career and time really doesnt matter unless you are doing it 24/7

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

      @@eclipsek0 bars

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

      @@demonboi6930what

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

      I feel bad to whoever sells you their course first. You obviously didn't credit them for the foundational knowledge which made this one so useful to you.

  • @gamergreat9505
    @gamergreat9505 4 роки тому +272

    I think making a solar system simulator would be cool. This series is really helpful BTW.

    • @kel1836
      @kel1836 4 роки тому +13

      i.imgur.com/TIPKdJ2.png I had to do something very similar to that in my highschool comp sci class and it was quite enjoyable getting it to finally work. I definitely messed up the numbers in the picture but you get the idea.

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

      Kel that looks really good!

    • @kel1836
      @kel1836 4 роки тому +6

      @@gamergreat9505 Thanks! I know these tutorials are specifically meant for Unity but if you do wanna learn these helped me A LOT with scripting and understanding the language: catlikecoding.com/unity/tutorials/

    • @ellienyan
      @ellienyan 4 роки тому +1

      @@kel1836 nice

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

      @@gamergreat9505 good luck and never give up!

  • @abeautifulwasteoftime766
    @abeautifulwasteoftime766 3 роки тому +42

    The last two challenges I had to look up on the forum but I bloody got this one!!! Some trial and error and some seriously hard thinking went on but as an absolute beginner not just at C# but in the world of programming itself, I am very very proud of myself, the sense of achievement is immense, and I feel like with this challenge I've actually built a useful tool, amazing! Thank you so much brackeys!

  • @aleksandarmilovanovic1264
    @aleksandarmilovanovic1264 2 роки тому +13

    very happy i did this challenge with no help!
    here is my code :D
    upitnik();
    Console.ReadKey();
    static void upitnik()
    {
    Console.WriteLine("Write a sentence: ");
    string sentence = Console.ReadLine();
    int wordCount = sentence.Split(' ').Length;
    Console.WriteLine("The amount of words in this is " + wordCount);
    }

    • @anatomis
      @anatomis 8 місяців тому +1

      i feel dumb xd

  • @_georgesh
    @_georgesh 4 роки тому +77

    This was really beginner friendly! Also like that you didnt make this specific to Unity

  • @Zombienonne
    @Zombienonne 11 місяців тому +8

    Even after 3 years, your videos are super helpful. I did all your homeworks without looking up the solutions. Especially this one took me a bit, but then it suddenly clicked and after some modifications, it runs perfectly fine and it's not much code. :)

  • @jagorjurekovic1697
    @jagorjurekovic1697 4 роки тому +360

    Brackeys: "so ill set the age to be between 10 and-..."
    Why do I hear police sirens?

    • @MoltiSanti
      @MoltiSanti 4 роки тому +26

      I scrolled down to the comments immediately after he said it.

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

      theyre aliens

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

      @Engine omar cringe, you dont know how to r/woooosh people

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

      @Engine omar aha yes you got double wooshed

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

      @@neutralz_8676 Well... not really but ok

  • @pankajbhatt4459
    @pankajbhatt4459 4 роки тому +15

    Brackeys please make this series a long one, its very helpful and I cant thank you enough for all the knowledge you are giving for free. Thank you so much

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

      This didint age long )=

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

      brackey gone

    • @JuanSumChninezeFue
      @JuanSumChninezeFue 7 місяців тому

      He didn't do it for free because UA-cam pays him AND he had a sponsor. So... Not free.

    • @scotty_cant4093
      @scotty_cant4093 7 місяців тому

      its free for us though?@@JuanSumChninezeFue

    • @scotty_cant4093
      @scotty_cant4093 7 місяців тому

      and this guys comments 3 years old lol

  • @Deshay_01
    @Deshay_01 4 роки тому +28

    This series has helped me so much thanks brackeys

  • @SugarLightStudios
    @SugarLightStudios 4 роки тому +17

    heres a quick tip: just type cw and enter
    insted of typing console.writeline(); to qucikly print

    • @AN-ou6qu
      @AN-ou6qu 4 роки тому +2

      Thank you so much

    • @hikohiko9358
      @hikohiko9358 4 роки тому

      doesn't work in my vs code

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

      @@hikohiko9358 try typing cw and then pressing tab twice

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

    So, a year and a half later I'm running trough the course and I must say they are still great!
    This challenge had me a little stumped for a bit, but only because I was looking for the why.
    Why would you use a method or function, when you can just as easily write it in main.
    The answer is: just for practice. Ours is not to reason why, ours is to reason how.
    Once you get past that the solution of the challenge is easy.
    The practice is in separating which variable can get called where, why you can use the same definitions for variables over different methods/functions and
    to help you practice organizing and cleaning up your code.
    Hope that helps you solve it, before going to look at the forum and find the solution!

  • @tageneislover
    @tageneislover 4 роки тому +11

    Wow, I started watching these, like, 2 days ago.
    Didn't expect a new one _that_ soon.

    • @AN-ou6qu
      @AN-ou6qu 4 роки тому

      Same, but keep in mind last episode was out 2 weeks ago

    • @discode1753
      @discode1753 4 роки тому +1

      Oh, you think so?
      Then just wait for the next episode to be posted

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

      me too

  • @DraDuck
    @DraDuck 6 місяців тому +3

    The joy that i felt when i guessed that you were gonna say "return result" is absolutely overwhelming

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

    This video is perfect. Really.
    Even the way of promoting sponsor is great, it shows it at beginning and reminds you to check it out at the end.

  • @mikaazai
    @mikaazai Рік тому +3

    I've never used any programming before but this series is amazing - I modified this tutorial so that the user was able to input their own numbers on command, so it works as a calculator of sorts. I know it's simple but if you'd have asked me a week ago I'd be clueless, so thank you so much :)
    (also this is the first challenge I'm stumped on

  • @michalsimanek6988
    @michalsimanek6988 4 роки тому +14

    Honestly, thank you very much for making these tutorials, you are the reason i finally pushed myself and started doing something! Also this is the last episode where i had a little bit of knowledge about the thing i was doing. Next time classes? wtf is that
    Im really hyped to find out next time :D

  • @honkinghorse7347
    @honkinghorse7347 3 роки тому +373

    When you have 36 errors, write one letter, and all the errors are gone.

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

      more like the ;

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

      that what mostly happens to me

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

      did it fix after you typed the c in static?

    • @GreenScreenKid284
      @GreenScreenKid284 3 роки тому +8

      One night time a program for c Sharp and it give me a error and then when I checked I accidentally write it for c plus plus

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

      Semicolon?

  • @knifeninja200000
    @knifeninja200000 4 роки тому +4

    Looking forward to the next couple tutorials. Having trouble understanding how to utilize class modifiers and how to communicate between multiple scripts. Thanks for making these!

  • @iuserlol464
    @iuserlol464 Рік тому +2

    Thank you for this video! Easy to understand, good examples, no bs. Loved it!

  • @comp3interactive
    @comp3interactive 4 роки тому +26

    For the solution, you could get really advanced and extend the "string" class so you can call WordCount() on any string anywhere in your project
    public static class StringExtensions
    {
    public static int CountWords (this string s)
    {
    return s.Split(' ').Length;
    }
    }
    Then you can just call it on a string like so:
    "My String".WordCount();
    - or on a string variable -
    myString.WordCount();

    • @caiogamer2723
      @caiogamer2723 4 роки тому +1

      woah ididnt know u could extend the string class

    • @comp3interactive
      @comp3interactive 4 роки тому

      @@caiogamer2723 yeah man. You can extend any class that isn't Static

    • @menyus777
      @menyus777 4 роки тому

      This would return 1 when using empty string

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

      Btw string is not a class it a variable class is void and static etc.

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

    Sunday is a very special day. Thank you Brackeys!

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

    The quality of these videos are incredible!

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

    I love these series! It definetly helped me A LOT when programing in Unity with C#. Most of the things are not the same but the logic is. Sorry if I have spelling mistakes. :/

  • @realbingus
    @realbingus 4 роки тому +41

    13:46 I believe 5 % 2 --> remainder of 1 not 0.5
    Awesome series though, keep it up!

    • @Yazan_Majdalawi
      @Yazan_Majdalawi 4 роки тому +1

      Yep you're right..

    • @Maggiethegsd
      @Maggiethegsd 4 роки тому

      Yes, don't know why he said .5 :P

    • @Yazan_Majdalawi
      @Yazan_Majdalawi 4 роки тому +1

      @@Maggiethegsd It's a bit confusing tbh.. I don't blame him

    • @Maggiethegsd
      @Maggiethegsd 4 роки тому

      Idk man

    • @caiogamer2723
      @caiogamer2723 4 роки тому

      yeah, at least it doesnt mess up when ur trynna figure out if a number is even or not

  • @grandmaashley
    @grandmaashley 4 роки тому +146

    grandma approved

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

      @BRY_ 00 _LEW MIIIIIIIIIISSTEEEEEEEEEEER BEEEEAAAAST 6000!

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

      This is OwO

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

      I haven't seen that sticker in a long long time.....

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

      our babushka!?

  • @saswotlamichhane5862
    @saswotlamichhane5862 4 роки тому +50

    Hope this playlist won't take a *whole year* to complete!!

  • @loganjones5537
    @loganjones5537 4 роки тому +4

    Thanks for staying so consistently awesome with your videos!

  • @sadhanapandey3112
    @sadhanapandey3112 11 місяців тому +1

    bro just call it odd insted of uneven , btw thanks ur the first one i go to for a code tutorial

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

    definitely the most confusing video yet (Parameters && return values), gonna take a while to get the hang of this one lol

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

      (I don't mean confusing in a bad way btw)

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

      I also think i didn't learn it
      I can't get the logic behind its codes

  • @vda1_327
    @vda1_327 4 роки тому

    if Brackeys didn't exist i wouldn't able to learn programming and Unity
    in the quarantine
    Thanks Brackeys

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

    This is a good teaching series and it helps me understand C# and put it as my favorite programming language, :D.

  • @mastrmn
    @mastrmn 4 роки тому +1

    One of the best channel about unity ever! 🤩🤩🤩

  • @KyuVulpes
    @KyuVulpes 4 роки тому +10

    Hey Brackeys, are you going to bring up local functions? Those are methods that are inside other methods. Only the parent method can call them (really helps if that method is going to be the only caller/cleans up lambda's) and they are either static (ie, they cannot access anything inside the parent method/object) or not (can access anything inside parent method and object.) They can also be async or not along with being unsafe of not.

    • @aarondelgado3421
      @aarondelgado3421 4 роки тому +1

      There is a specific word for what you have been describing - scope!

    • @menyus777
      @menyus777 4 роки тому

      It's kinda an advanced stuff imo, and sometimes can make testing harder but yeah i like them too. Especially when i need Coroutine functionalities inside a method

  • @ddaneh3090
    @ddaneh3090 4 роки тому

    Plz never stop with this series, thank you.

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

    This was SUPER useful in my coding project, didnt know these existed and you saved me HOURS of time

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

    You might not be an active channel anymore and will probaly never see this but you are still a life saver

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

    So far u are the Best that makes my understand c#

  • @thewiresponge
    @thewiresponge 4 роки тому +1

    Can't wait for next part, I really like your tutorials, I can understand them more than others

  • @Lena-qg8bd
    @Lena-qg8bd 4 роки тому

    Even tho i have a lot of experience with C#, i still wanna dive back when i started learning C# (using my phone at school while the teacher explained stuff) by watching these videos.

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

    omg I love you. This took me SO LONG to understand. I just didn't... but now I do ;)

  • @Oxmond
    @Oxmond 4 роки тому +1

    These c# prorgramming tutorials are awesome. You're the best 😜👍

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

    TNice tutorials is much more simple than I thought with you explaining it. Currently half way through and I feel like I know everytNice tutorialng already lmao

  • @syedshahzaibali7784
    @syedshahzaibali7784 4 роки тому +4

    Dear Brackley,
    If you are reading this please make a tutorial on "how to make a shop"
    it would really help! Thanks

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

    Best turtorial's on yt no cap

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

    Thank you for this video! I am taking computer science 1 at university right now and next weeks topic will be methods. Thank you for the primer!

  • @friedkid2225
    @friedkid2225 4 роки тому +1

    Thank you for sponsoring my journey to learn c#.

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

    I finally got the hang of this. I made two methods, one named MathQuiz, and then other named Print number. I put the MathQuiz method first in the line of order, so my program ran through that one first. PrintNumber was then, ran through shortly after. I know it's not much, but this really stumped me for a while.

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

    😥 Brackeys is my most favourite youtube channel ever. I was going to take photo with you in brackeys studio some day. Good bye man! You really hit my heart as a teacher.

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

    That Is useful in gambling LOL
    I like your videos brackeys you are the first person who inspire me to starting game development

  • @ThirteeNov
    @ThirteeNov 4 роки тому

    This video is worth to follow.... I'm learning from him how to make this kind of nice tutorials.

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

    Am I the only one who was *OKAY* the whole series and just got *LOST* in this episode ?? AHAH it's sooo confusinggg!!!

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

      No. I feel your pain.

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

      @@MxrcellXD ahahah

  • @Akeiga
    @Akeiga Місяць тому

    Awesome videos! This has helped me tremendously on my coding journey!

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

    for that challange you dont need to use methods, you can do int with only some variables like this :
    static void Main(string[] args)
    {

    Console.WriteLine("Write the sentence");
    string sentence = Console.ReadLine();
    int numWords = Convert.ToInt32(sentence.Split().Length);

    Console.WriteLine(numWords);
    Console.ReadKey();

    }

    • @Hana-xo4wi
      @Hana-xo4wi 2 роки тому +1

      Yes. But this is a beginner friendly tutorial about METHODS. So he wants us to try using them even though you don't technically NEED to use them.

  • @Akiga_games
    @Akiga_games 11 днів тому

    These video are so great! I really appreciate all the help you gave me!

  • @noavr1308
    @noavr1308 4 роки тому +4

    Best course that I've done, I did some c plus plus on youtube in a 4h course but it was way too long and less entertaining than you!
    Thank you so much brackeys!

    • @hoiblij6737
      @hoiblij6737 4 роки тому

      Yeah well C++ is never really fun to learn

    • @noavr1308
      @noavr1308 4 роки тому

      @@hoiblij6737 but i'm pretty sure brackeys would make it fun

    • @sonnysarcia6947
      @sonnysarcia6947 4 роки тому

      @@noavr1308 i guess its in freecodecamp.org

    • @noavr1308
      @noavr1308 4 роки тому

      @@sonnysarcia6947 yes hahaha

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

      @@noavr1308 i'm changing my engine to unity and c# because my computer cant run unreal and that feels so bad for me because I have mastered the c++

  • @MrAlexSabaka
    @MrAlexSabaka 4 роки тому +1

    Hi, Brackeys, imho, you should have mentioned that c# (latest standard) actually allows method definition inside other method body.
    Anyway, your videos are great!)

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

    I bet you can never find a better tutorial on C# on the whole internet, lokey sad he doesnt do this anymore

  • @pranavrg69420
    @pranavrg69420 4 роки тому

    Happy Teacher's Day
    YOU ARE HELPING US A LOT TO LEARN C# .....

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

    I had to look at the solution to get this one and I don't think I could yet replicate this or apply it on my own. Love this tutorial though!

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

    This guy explains it so well that even a 2 month old baby would understand what he says :)

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

    Thank you so much for the guidance, I understand this fully well, I'm currently studyin programming for the first time and I find the basics so complicated XD

  • @KingALLO69
    @KingALLO69 4 роки тому

    Best series ever. Nocap.

  • @seireiart
    @seireiart 4 роки тому +104

    Ah, Methods
    Something that YandereDev had never implemented in his "code" (If we can call it that already)

    • @chazzwazzler
      @chazzwazzler 4 роки тому +20

      Not really code, more of like unreadable chaos

    • @Lena-qg8bd
      @Lena-qg8bd 4 роки тому +17

      and also switch statements

    • @Owen3H
      @Owen3H 4 роки тому +12

      @@Lena-qg8bd and for loops

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

      @@Owen3H and if statements

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

      @@Owen3H Not to mention having them all in one script that runs in every character in the game meaning they all have to be checked everytime

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

    I didn't know this video existed! Thanks bro! Really grateful.

  • @discode1753
    @discode1753 4 роки тому

    Hey Mr.brackeys I just wanna say
    Keep up the good work
    Thx for keeping it free

  • @rayhanulchowdhury3560
    @rayhanulchowdhury3560 4 роки тому

    keep this great work up, im gonna get to watching this course once i have finished my java course

  • @BrandonChawane
    @BrandonChawane 4 роки тому

    I'm enjoying your lessons, you make things very easy to understand. I'm waiting for lessons 7

  • @Paperhooman
    @Paperhooman 4 роки тому

    I am just waiting for this series to be over and then I will watch all of those videos together

  • @stepansula257
    @stepansula257 4 роки тому

    This series is really good it helps me a lot but I want to learn fast but these videos are only on sunday sadly. But still really good work please continue in this series.

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

    this channel is very helpful. very thankful to this Brackeys

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

    After i'm done with all the episodes of how to write C# , i will look at unity tutorials too :D

  • @CGSAI5ainath
    @CGSAI5ainath 4 роки тому

    Your tutorials helped me a lot and i am thankful for that.

  • @TheDaKSn
    @TheDaKSn 4 роки тому

    New Brackeys videoooooo! Day just got better!

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

    This sponsor really good 👍👍 I really need this

  • @reamortal8777
    @reamortal8777 4 роки тому +1

    Yo brackeys I'm trying to learn how to make games and I've wanted to make games ever since I was a kid. I wanna learn from one of the best so that I can become successful in my goal as I grow up. If you can reach out to me through something please do so.

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

    Just wanted to add that
    sentence.Count(char.IsLetter);
    can count letters instead of words.

  • @MrTJSf01
    @MrTJSf01 4 роки тому

    Nice video. But I have to make one really small correction in that there is a differnce between a method and a function. Still they behave exactly the same but a function is block of code you can call where a method is a function within a class. Thus a function doesn't need to be in a class, it can also just be within a namespace.
    It is just a small detail and it doesn't change their functionality, but there is still this difference and some people online make a huge deal out of this.

  • @bambusz0131
    @bambusz0131 4 роки тому

    Nice tutorial, even I can barely understand english! Keep up the good work!

  • @pratapsinghgour2290
    @pratapsinghgour2290 4 роки тому

    Happy teacher's day...in India on September 5th we celebrate as teacher's day....and I want to wish you... Happy teacher's day ❤️🙏💐hope we'll meet someday....

  • @clyded8404
    @clyded8404 4 роки тому +5

    Hey can u do a tutorial that turns ur game from the how to make a game tutorial series into a mobile game with touch control

    • @David-vz4yk
      @David-vz4yk 4 роки тому +1

      CLYDE THEDOGE agreed

    • @aarondelgado3421
      @aarondelgado3421 4 роки тому +1

      It is not difficult to do so. You just need to understand the basics of how to write code to detect Touch gestures. There are plenty of tutorials out there.

    • @clyded8404
      @clyded8404 4 роки тому +1

      @@aarondelgado3421 oh u got any link?

  • @elvisd.garciajimenez7282
    @elvisd.garciajimenez7282 2 роки тому

    Thank you so much!!! It did work and took less t

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

    After this episode i felt like a pro programmer

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

    Brackeys: let's make an alien dating site!
    Also Brackeys: int age = numberGen(10, 500);
    Alien FBI: Put this creep on the probing list. 👽👮‍♂️

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

    Yay! I Learned how make a bot that works for the scp foundation and automatically names scps and d class personnels using Methods! Thanks!

  • @claudiu1716
    @claudiu1716 4 роки тому +1

    I didn't watch the video yet but you got a like

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

    Please make a tutorial to the new Unity Multiplayer Engine.
    That would be rly nice! : )

  • @arifbukhari2846
    @arifbukhari2846 4 роки тому +1

    Functions have many functions but ideally one function should have only one function.
    Anyways you explained the function of functions quite functionally.

  • @__korvin__6713
    @__korvin__6713 4 роки тому +1

    Awesome! But will you please talk about *Refactoring* and how it saves you and your friends from brain cancer?

  • @miragon1768
    @miragon1768 4 роки тому +1

    Respect to you for every video!

  • @wesleylima5723
    @wesleylima5723 4 роки тому +1

    Thank you for the lesson! It was incredibly helpful. I have one question, though: what's the difference between methods and functions??

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

      none, he said himself that it's just a different name that you could use

    • @wesleylima5723
      @wesleylima5723 4 роки тому

      @@caiogamer2723 Thank you! I probably didn't notice. Not a native English speaker lol

    • @caiogamer2723
      @caiogamer2723 4 роки тому +1

      @@wesleylima5723 neither am i

  • @LuNaTiC9oNe
    @LuNaTiC9oNe 11 місяців тому

    U are better than my teacher for real

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

    damn dude, you've just made the best c# course

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

    I spent so long trying to figure out the challenge and then realized you mentioned the split function at the end of the video 😭😭

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

    something that could be very use full is to write this:
    static void WriteLine (string Text)
    {
    Console.WriteLine(Text);
    }
    static void Write (string Text)
    {
    Console.Write(Text);
    }
    if you write that, instead of having to type:
    Console.Write("insert something here");
    you can type:
    write ("insert something here);

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

    did it in like 3min, so happy

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

    For those familiar with other programming languages, a Method is simply known as a subroutine. Same idea and mostly the same implementation.

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

      Thanks mate i was thinking it must be that but was so confused by the name 😂

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

    tutorial on how to make saucy alien dating sim when?

  • @bondo532
    @bondo532 10 місяців тому

    hey so i didn't use .split method, i just counted amount of spaces in the sentence in function and that seemed to work well enough
    void wordCounter(){
    int counter = 1;
    for (int i = 0; i < sentence.Length; i++)
    {
    if (sentence[i] == ' '){
    counter += 1;
    }
    }
    Console.Write(counter + " words");
    }
    sentence was declared as a global variable by the way

  • @harsh5424-wastaken
    @harsh5424-wastaken 4 роки тому

    Even though I went to school and know most of this, I just come here for the wacky examples and just laugh a bit!

  • @yosefouad2116
    @yosefouad2116 4 роки тому

    Nice job making this series it's great