Learn Java with ChatGPT - Day 1 of pain "Hello World"

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • I'm you're average JS developer who wanted to learn Java for AP CS, so I decided to just ask Chat GPT to teach me.

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

  • @BeginnersAcademy
    @BeginnersAcademy 8 หลายเดือนก่อน +8

    To answer some of your questions:
    1. Why is everything a class?
    Java is an object oriented programming language to the core, in langs like Python or Javascript you can get away with procedural programming (calling functions and writing code in steps) and never use classes, but Java is full OOP, meaning that all the code you write is an object, and to call methods (functions) you must encapsulate them within the class. To use any of your functions you must instantiate the object on the heap memory using the new keyword to dynamically allocate a new object in memory. Thins brings me to your second question...
    2. What does "static" mean in the method signature?
    Static is an optional keyword used in method signatures to denote that the method should be standalone and independent of an object. What does this mean simply? You dont need to instantiate an object from the class to be able to call the method. You simply just write the name of the class followed by a dot and then the method you want to call. No need to use the new keyword to create an object first.
    3. What does void mean?
    Java is a strongly typed language which means that for variables that you create you must also type the variables data type. To create a number variable you would do something like this 'int myNum = 1;' In that snippet you see that the variable name is proceeded by its type which is int. Similarly in functions you must declare the return type, that is you must denote the data type of the value being returned from the function. In the event your function is just a "side effect" and doesn't return anything, for example a function that just prints data to the console you wouldn't be returning anything, in this case you would use a return type of void. This means the function returns nothing.

    • @codesymph
      @codesymph  8 หลายเดือนก่อน +2

      Thank you so much. Getting stuff explained from real humans is a lot more useful than ChatGPT most of the time.

  • @newtpowersmusic
    @newtpowersmusic 8 หลายเดือนก่อน +3

    This is a really cool concept! I really like this video. I wish you luck on your journey!!!

  • @ExodusVFX
    @ExodusVFX 8 หลายเดือนก่อน +5

    Love te idea for the series , keep it up!!! God bless you in Jesus name

  • @Sarcastic_Insaan
    @Sarcastic_Insaan 8 หลายเดือนก่อน +2

    I learnt data structures. In Javascript and Python. I also learnt Computer Vision. Ialso learnt Model artitecture. I aslo learnt Graphical representation using Matplotlib lib and other Libraries. Still learning..

    • @pxlmusicby
      @pxlmusicby 5 หลายเดือนก่อน

      how much time it required to you

  • @Marson_Skid
    @Marson_Skid 8 หลายเดือนก่อน +1

    I wouldn't recommend to use chat gpt to learn java or any other programming language, it very often generates complete bollocks on some of the most basic questions and you have to correct it, but sometimes even correcting it does not help

    • @stephenEs3532
      @stephenEs3532 5 หลายเดือนก่อน

      like this comment above mine.... complete generated bollocks

  • @user-ed2qv4qd8b
    @user-ed2qv4qd8b 8 หลายเดือนก่อน +1

    W video

  • @nickzk1
    @nickzk1 8 หลายเดือนก่อน +1

    master python or learn c++ instead

    • @BeginnersAcademy
      @BeginnersAcademy 8 หลายเดือนก่อน

      It doesn’t matter what language you learn as long as you have a use for it, Java is used in most enterprise software so it’s a good choice. C++ is also a piece of shit, learn C first, then get a taste of oop with something fairly simple like Java and then level up to C++.

  • @maulikpareek
    @maulikpareek 8 หลายเดือนก่อน +3

    time wasting with chat gpt, i just completed java and I can assure it

    • @paladin9876
      @paladin9876 8 หลายเดือนก่อน +1

      Yeah definitely, I would strongly advise against using chatGPT as your primary resource for learning anything new. As a SWE, I think its really only useful for asking small irrelevant templating questions that are more of a time-saver than actual learning material.

    • @codesymph
      @codesymph  8 หลายเดือนก่อน +3

      well using docs wouldn't be as good of content lol

    • @maulikpareek
      @maulikpareek 8 หลายเดือนก่อน

      @@codesymph you'll not fall short on content once you're skilled properly mate, take any professional nieche youtube channe for example :)

    • @csg301
      @csg301 7 หลายเดือนก่อน

      @@paladin9876 as a SWE what would you recommend to learn a new language/framework? Just read the docs and ask simple questions to chatgpt?

    • @paladin9876
      @paladin9876 7 หลายเดือนก่อน

      @@csg301 React as a framework for web development. I'd just go through the docs, look at some tutorials on youtube, and finally, make your own projects, making your own little projects will teach you more than any other method.