What is a Function? (C# vs Python)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 31

  • @michaelh2619
    @michaelh2619 4 ปีที่แล้ว +1

    Thanks for these tutorials! The detailed explanations for the data types was great. I had trouble following some of the examples when you dropped in pre-coded blocks, since I learn better by seeing the skeleton first and then building up. I'm finding Python a lot more fun and forgiving to work with than C#.

  • @techslugz
    @techslugz 3 ปีที่แล้ว +2

    I am fairly new to programming so could be wrong but I dont think I am. You can pass arguments into methods also. I know in C# and I think a method is also an object of a class, but maybe not in python? I dont know python as well at all. What do you think?

    • @techslugz
      @techslugz 3 ปีที่แล้ว

      Does anyone know if a method is an object of a class in python? And a function similar but not an object of a class?

    • @Sparagas
      @Sparagas 3 ปีที่แล้ว

      @@techslugz Yes

  • @TheBIMCoordinator
    @TheBIMCoordinator 5 ปีที่แล้ว

    Great information. Love that your are comparing them both.

  • @Moctop
    @Moctop 3 ปีที่แล้ว

    How much time do you really save on the Mr/Mrs thing? You still have to write it, so you might as well write it directly in the array. I don't see much value in this particular example.
    I'd probably want to make an array with just 0=Mr and 1=Mrs so I'd only have to input [0,1,0] etc and it'd be mapped to the name index.

  • @Moctop
    @Moctop 3 ปีที่แล้ว +1

    Classes?

  • @thinker2273
    @thinker2273 3 ปีที่แล้ว +1

    The difference between methods and functions is that a method is bound to an object. Methods can have parameters, in the exact same way as functions. In C#, functions do not exist, everything containing code is a method. The problem is that you're flat-out ignoring the fundamental concept of classes and objects in an OOP language such as C#, and without that foundation your perception of methods is incredibly flawed. You do not understand the fundamental concept of what these constructs are.

  • @JarlThorson
    @JarlThorson 5 ปีที่แล้ว +4

    Can I call you Jabril Mr. now? :P

  • @BoRerunn
    @BoRerunn 5 ปีที่แล้ว +1

    Bro please make a Java instruction videos for a beginner like me 🙏

    • @TheBobakanoosh
      @TheBobakanoosh 5 ปีที่แล้ว +2

      C# and Java are quite closely related when it comes to lower-level things like for, if, while, and functions. You should be able to follow those parts of the tutorials easily.

    • @BoRerunn
      @BoRerunn 5 ปีที่แล้ว +1

      @@TheBobakanoosh I understand stand it... But I don't know where to start. Thanks I'm going to keep checking it out

  • @juancasinisterra
    @juancasinisterra 4 ปีที่แล้ว +2

    I got completely lost after you started talking about return statements :(

  • @aimossy6466
    @aimossy6466 5 ปีที่แล้ว +11

    This comment is indeed a comment

    • @uliveulearnandregret
      @uliveulearnandregret 5 ปีที่แล้ว +2

      this reply is indeed a reply

    • @uliveulearnandregret
      @uliveulearnandregret 5 ปีที่แล้ว

      wait why are u here i just seen ur video content and it has nothing related to code and u don't seem like a leaner or anyone interested in coding

    • @israelc5320
      @israelc5320 5 ปีที่แล้ว

      U live u learn And regret well lol not everyone is obsessed with it 😂 some just want to learn

    • @uliveulearnandregret
      @uliveulearnandregret 5 ปีที่แล้ว

      @@israelc5320 learn something that you will eventually forget as you age up in life, she will eventually forget about this lesson BET

  • @JaredVititoe
    @JaredVititoe 4 ปีที่แล้ว

    Zach is spelled with an "h" not a "k"

    • @ThatGuyDownInThe
      @ThatGuyDownInThe 4 ปีที่แล้ว +6

      it can be both

    • @HaloWolf102
      @HaloWolf102 4 ปีที่แล้ว +3

      Zaque

    • @md-ey9yr
      @md-ey9yr 4 ปีที่แล้ว

      And in your sentence context, you should use "spelt" and not "spelled".

    • @HaloWolf102
      @HaloWolf102 4 ปีที่แล้ว

      spelted