C vs C++ | Which Should you Learn?

Sdílet
Vložit
  • čas přidán 26. 03. 2023
  • Start your software dev career - calcur.tech/dev-fundamentals Be notified of new C/C++ course: calcur.tech/c-cpp-newsletter
    💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
    ⚛️ FREE React Course (20 hours) - calcur.tech/free-react-course
    ✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
    ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
    ✉️ Newsletter - calcur.tech/newsletter
    📸 Instagram - / calebcurry
    🐦 Twitter - / calebcurry
    🔗 LinkedIn - / calebcurry
    ▶️ Subscribe - calcur.tech/subscribe
    👨🏻‍🎓 Courses - www.codebreakthrough.com
    ~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
    ↪ My Amazon Store - www.amazon.com/shop/calebcurry
    🅿 Patreon - calcur.tech/patreon-calebcurry
    🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
    Ⓟ Paypal - paypal.me/calcur
  • Věda a technologie

Komentáře • 68

  • @codebreakthrough
    @codebreakthrough  Před rokem +7

    Which do you prefer? C or C++?
    If you want to join my newsletter to get new C++ content and updates on courses, join here:
    calcur.tech/c-cpp-newsletter

  • @zemlidrakona2915
    @zemlidrakona2915 Před 8 měsíci +49

    As someone who leaned C in 1983 and C++ a few years later, I'm going to suggest you lean C first and then migrate to C++. This advice is often rejected by teachers. The usual excuse is that newer programmers don't need to learn all the lower level stuff. However C++ was not designed up front with the standard library and sooner or later you will have to dig down into the core of the language, if you really want to get the most out of it. I've seen A LOT of new C++ programmers that get overwhelmed by the language trying to learn everything all at once. Some never really figure out how it all works. Trust me, learn C first, then add on classes, templates, and then the standard library. If you do it that way you will wrap your head around everything much easier. Except for some corner cases C++ is backwards compatible with C, so you lose nothing by learning C first.

    • @geekypicky810
      @geekypicky810 Před 7 měsíci +8

      I've seen some ppl in comments saying they lost their Time learning C and that they should've learned C++ before. I was about to start C++ but what you described "some never figure out how it all works"
      That's me in everything😂
      So I'm gonna go with your advice and learn C first, thank you

    • @achura6129
      @achura6129 Před 6 měsíci +5

      this comment actually helped me a lot bcs my university is starting with C. I didn't want to lose time with C but my teachers said learning it will help me when I'm learning C++ next year. I wasn't sure about it untill i see this comment cuz every single mf i talked said don't even lose time with C go with C++ but they were not as experienced as you are. thank you, now i can study peacfully. btw sorry for my bad english

    • @GmanGavin1
      @GmanGavin1 Před 5 měsíci

      But most of the libraries I want to use are C++. Skia / PDFHummus / DirectX. I've already written some C++ OpenGL because all the educational resources are in C++. I tried to avoid C++ and use C but all the resources out there pushed me into C++.

  • @grimvian
    @grimvian Před rokem +17

    I'm a hobby programmer and retired. I love to to code and I'm also a Dane, so of course I had to learn C++. My wife needed a kind of CRM and I thought I could learn C++, while writing a relation database. It took about 6 months, before my wife stopped to demand features and got rid of known errors. The quality of the code in the beginning and in the end is very different, but I survived. :o)
    After a while, I decided to to the big rewrite and about 5000 lines later I found myself writing more and more C like code, but had the job finished.
    It's much more intuitive for me to use printf, time instead of cout or chrono with a "million" scope resolution operators.
    But I don't need a job and I'm coding for fun and spend my time on logic instead of trying to understand awkward error messages and a endless language.

  • @VictorRodriguez-zp2do
    @VictorRodriguez-zp2do Před rokem +21

    You probably want to learn C first then C++. Since C is simpler and doesn't have all the C++ nonsense you will have an easier time learning it, probably best to learn C until you are somewhat used to memory management and then C++.

    • @xxfreedomxx9479
      @xxfreedomxx9479 Před 9 měsíci +1

      C++ is easier for me since in c there are stupid %n,&n after using scanf

    • @rul1175
      @rul1175 Před 6 měsíci

      What is hard about that. 4 hours in C++ and I waz like wtf is all thos comvuluded mess.

  • @DevlogBill
    @DevlogBill Před rokem +9

    Caleb, I notice you give pretty good advice. One piece of advice which actually worked out for me was Django. You created a video stating if you want to create a website you can jump right into learning Django and learn Python along the way and you were right. I took your advice and learned Python along the way. Great video.

  • @Alex.Shalda
    @Alex.Shalda Před rokem +1

    More videos! I watched your C tutorial and liked it a lot!!!

  • @frankcastellanos
    @frankcastellanos Před 6 měsíci

    Thanks for the info brother, always awesome advice

  • @reezuleanu1676
    @reezuleanu1676 Před 5 měsíci +1

    This is the first video of yours that i see, i barely dabbled in c and used c++ once for a robotics class in college, yet you explained the differences in a way that even i understood everything. Thank you, i believe your channel will keep me occupied for the foreseeable future

  • @programinc7581
    @programinc7581 Před rokem

    Thank you Caleb 😊

  • @Job11yt
    @Job11yt Před rokem

    Great vid, I do miss the part where you explain the cost of all those features like str classes instead of char arrays. E.g. are there perfomance differences?

  • @davaughnwilliams5100
    @davaughnwilliams5100 Před rokem

    Nice video caleb 💥

  • @speedytruck
    @speedytruck Před rokem +6

    Real chads use the GNU dialect of C to shoehorn object oriented programing in C!

  • @knofi7052
    @knofi7052 Před rokem +5

    I would say if you want to learn programming learn C and if you want to learn a complex programming language learn C++.😉

  • @deepakagarwal1990
    @deepakagarwal1990 Před 9 měsíci

    What about the performance and speed in terms of C vs C++

  • @staticage6
    @staticage6 Před rokem +1

    Can't go wrong with either one of them

  • @coleblender
    @coleblender Před 7 měsíci +1

    What do you think his favorite color is?

  • @sturlamolden
    @sturlamolden Před 9 měsíci +6

    I disagree with this.
    First, looking at the TIOBE ranking it is clear that C++ is used a lot less than C. Java, C and Python are the high-ranking languages. C++ is way down the line.
    Second, you cannot get a job as a C++ developer by “learning“ C++. This is because learning C++ at a professional level takes at least 10 years, maybe 15. Recruiters know this. That is why there are more job openings for C++ developers. There are very few that can actually use it at a level required in the industry, and so jobs stay vacant. So you will not get any of these jobs unless you have tons of experience with it.
    As for object orientation: If you think you need this, you are better off using Java anyway. That is why C++ is dying. All the momentum behind it is gone. C is still going strong.

  • @Ahmed_Bytes
    @Ahmed_Bytes Před rokem

    Finally, it's been a while

  • @miguelalbertooxa8699
    @miguelalbertooxa8699 Před rokem +3

    I would suggest a CMake course

  • @mdshahinur2786
    @mdshahinur2786 Před rokem

    Nice❤

  • @TheBuilder
    @TheBuilder Před rokem +4

    You should mention the more modern features like constexpr, concepts, ranges, attributes, views, the algorithms library

    • @developerdeveloper67
      @developerdeveloper67 Před rokem

      Those are all useless features.

    • @TheBuilder
      @TheBuilder Před rokem +1

      @@developerdeveloper67 the algorithms library is the #1 reason C++ is picked for competitive programming

    • @zytr0x108
      @zytr0x108 Před 10 měsíci

      Constexpr is in C23

  • @gurudaki
    @gurudaki Před rokem

    C++ or C# do you suggest?

  • @oglothenerd
    @oglothenerd Před rokem +1

    You should let Odysee sync your vids! Odysee is another video platform.

  • @pamelagueke9811
    @pamelagueke9811 Před rokem

    C++

  • @jljovano
    @jljovano Před rokem +2

    Rust ? ;)

  • @Favourite296
    @Favourite296 Před rokem

    I am watching this video from India, this is my favorite channel 😍

  • @johnychinese
    @johnychinese Před rokem +5

    Learn CHADStack, you'll be a total CHAD

  • @TomMwendwa-ti1lx
    @TomMwendwa-ti1lx Před rokem

    Tag me

  • @hiongun
    @hiongun Před rokem +1

    it's 21st century. learn Zig, a modern C successor.

  • @nieczerwony
    @nieczerwony Před rokem

    Learn machine code and microcode.😅

  • @Markdim7
    @Markdim7 Před rokem +3

    Should we even bother with coding after chat gpt 4

  • @TomMwendwa-ti1lx
    @TomMwendwa-ti1lx Před rokem

    An the first to view

  • @carborundum72
    @carborundum72 Před rokem +6

    Neither. Learn Rust. ;)

    • @thebean529
      @thebean529 Před rokem +5

      And have no job

    • @mohithvj8353
      @mohithvj8353 Před rokem

      💀

    • @Seacrest.
      @Seacrest. Před rokem

      yep yep yep Rust Rust Rust Only Rust

    • @g3n3r1c6
      @g3n3r1c6 Před rokem +1

      You gotta love how it took me 10 seconds to find this lol. I'm one of like 3 people who doesn't like Rust that much. I also like being employed

    • @oglothenerd
      @oglothenerd Před rokem +7

      Learn both and Rust.

  • @arielsuarez5471
    @arielsuarez5471 Před 9 měsíci +1

    So C++ it is. I suppose I can learn C afterwards.

    • @makara2711
      @makara2711 Před 8 měsíci

      The most brilliant, most influential, and smartest computer scientists (Ken Thompson, Dennis Ritchie, Linus Torvalds) DISLIKE C++

    • @arielsuarez5471
      @arielsuarez5471 Před 8 měsíci

      @@makara2711 that’s just too bad. I haven’t gone far with C++. Not that it’s very hard for me to learn since I have already coded in Java. However, Python seems to be more popular for AI and Data Science.

    • @tommyliu7020
      @tommyliu7020 Před 2 měsíci

      @@makara2711I mean everyone has their own personal preferences.