ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

C vs C++

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ส.ค. 2024
  • In this video I evaluate the differences between C and C++ and which is best for you.
    Join this channel to get access to perks:
    / @conaticus
    Discord Server: / discord
    Github: github.com/con...
    Twitter: / conaticus
    Music Credit:
    Faster Does It by Kevin MacLeod is licensed under a Creative Commons Attribution licence (creativecommon...)
    Source: incompetech.com....
    Artist: incompetech.com/

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

  • @conaticus
    @conaticus  2 ปีที่แล้ว +281

    Hey thanks for watching! Made a small mistake in the video in saying any C code is valid C++ code. In more recent C++ this actually not the case, but is true for most cases.

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

      C++ is basically overwhelming to me for learning. In the Mid 1980s, I really enjoyed BASIC and COBOL, even making a few games with them. Recently I have learned how to make simple libraries for C, creating reusable code, while saving the time previously spent learning standard and third party libraries (sometimes trying several before finding the one which satisfies me). C++ fans typically attempt to convince me that my view on their favorite language is all wrong and that I should give it another chance. Perhaps my brain is just not wired for C++? Is that possible?

    • @taoliu3949
      @taoliu3949 2 ปีที่แล้ว +12

      @@TheDragShot C89 is a subset of C++. However, well written C is still largely backwards compatible in C++, so as long as you're not trying to do anything too crazy in C, it should still largely run in C++.

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

      C hasn't been a subset of C++ for *decades.*

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

      @@superscatboy C has never been a true subset of C++. Heck, it's not even a true subset of itself. C89 is as much a subset of C++98 as it is of C99.

    • @bartekordek
      @bartekordek 2 ปีที่แล้ว +1

      @@taoliu3949 it is not. Read about it. There are a lot of cases when code in c is not going to be compiled with cpp compiler.

  • @jakubsebek
    @jakubsebek 2 ปีที่แล้ว +1008

    C is the only language where I feel like I can focus on debugging my application rather than debugging my knowledge of the programming language. C++ tends to be at the completely opposite end of this spectrum.

    • @askeladden450
      @askeladden450 2 ปีที่แล้ว +63

      as someone who just spent a couple of hours debugging templates, i agree.

    • @mavhunter8753
      @mavhunter8753 2 ปีที่แล้ว +8

      Yes!! I know what you mean!

    • @Nick-lx4fo
      @Nick-lx4fo 2 ปีที่แล้ว +40

      I feel like you spend more time actually engineering the functionality of your code rather than the structure and bureaucracy of your code with C. Plus the whole abstraction aspect of OOP can make code painfully hard to discern. And while the C stdlib is barebones compared to the C++ STL, you can easily implement your own utilities and use them in supplement. In my opinion, C allows more room for freedom and creativity, and while C++ does too, it does so in a clunky and confusing way, almost unnecessarily, if you ask me.

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 2 ปีที่แล้ว +1

      try Rust and learn to focus on coding instead of debugging

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 2 ปีที่แล้ว

      @@Nick-lx4fo C++ gives you all the room C gives you.
      "And while the C stdlib is barebones compared to the C++ STL, you can easily implement your own utilities and use them in supplement."
      Sounds foolish to me.
      Use what's there if it helps you, otherwise just don't use it

  • @mikeruchington4882
    @mikeruchington4882 2 ปีที่แล้ว +131

    I had dated before. Python, Java... I had a brief fling with Ruby on rails for a week, but C was my first love. I didn't know what I was doing and knew it probably wouldn't last, but I was completely infatuated - Bonny and Clyde, Beyonce and Jay Z kinda love. Then I met C++. She was smart, fast, a handful, but I was convinced she'd open up to me if I spent the time. C++ has cheated on me 7 times, robbed my house and sold my stuff to fuel its crack addiction. One time I got home to find that she had smashed my TV, living room and kitchen because I put an array index that was out of bounds. Her partner in crime, Compiler, is a total nut job who convinced her that EVEN THOUGH THEY KNEW THE INDEX WAS OUT OF BOUNDS, they just try access the memory location OUTSIDE of the array. They didn't even bother to tell me why they did it - just lectured some BS about principles and origins or something. She's crazy! if I could talk to my past self, I would tell him, "you're an electrical engineer so you're only gonna use Matlab and python anyways. save yourself the effort."

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

      @Mikołaj Kraszewski nerd

    • @ohwow2074
      @ohwow2074 2 ปีที่แล้ว +1

      Segmentation fault (core FUCKED)...

    • @gmbob1749
      @gmbob1749 ปีที่แล้ว

      I've dated BASIC, Pascal, C, Tcl/Tk, Python, C++, Java, Perl, bash and probably a couple others... They're all a bunch of fickled bitches!!! I found true love in the few short months I learned Z80 machine language and wrote/assm it all by hand, but alas she passed away 40 years ago.😥

    • @hungrygator4716
      @hungrygator4716 9 วันที่ผ่านมา

      C++ is a red flag, I've just had threesomes with C++, my main woman is C

  • @sledgex9
    @sledgex9 2 ปีที่แล้ว +218

    NOTE to beginners: You don't have to use OR learn all the C++ features and keywords. If you're writing your own code you don't need to use the gazillion features of C++. You pay for what you use. Learn the basic/simple language first. Don't bother with templates/metaprogramming yet. From templates learn only the very basics on how to call/use templates. Don't bother learning how to write templates. As time passes and you become more accustomed to the basic stuff then you will be learning the more advanced stuff more easily and naturally. Learn: variables, pointers, references, arrays, fundamental types, functions, classes, const keyword. Then learn basic stuff from the STL: std::string, std::vector, std::map.

    • @victorsarkisov4480
      @victorsarkisov4480 2 ปีที่แล้ว +13

      This is actually pretty reassuring. I have been using C for years and have gotten pretty decent in it, to where I pick it up as my first choice when starting a new project. The problem is though, I've been trying to learn C++ and it feels like I am just writing "C with classes " + some extras like std::string and std::vector. To be fair, the C++ spec is huge, but I feel like I am unable to write anything that resembles "modern C++"

    • @DrFerdy
      @DrFerdy 2 ปีที่แล้ว +6

      someone said if you learn C++ first ,then other language will be peace of cake for you
      i actually more comfortable with C++
      i like it,its more than a programming language for me,its like a part of my life
      im just comfortable with the complex syntax

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

      @@victorsarkisov4480 Consider this... C + classes + Win32 is basically all you need to write Windows software. You can completely skip the "standard" library.

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

      good point

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

      Yeah, it's like learning a foreign language, you don't need to learn every single word but the most commonly used ones.

  • @programmertheory
    @programmertheory 2 ปีที่แล้ว +135

    I love C and C++ for different reasons. C for its simplicity and you can focus more on the functionality of your code rather than the design and C++ for its massive versatility. C and C++ are versatile in their own right, however C++ does have classes and I find it easier to implement certain things like Data Structures. Also, I am not a fan of OOP (even though I do use the paradigm in my past jobs and current job), so I am glad OOP is more like an option in C++ rather than a requirement. OOP is a tool, but it is not some miraculous multi-tool that should be used for everything.

    • @elijahcriswell1658
      @elijahcriswell1658 ปีที่แล้ว

      As someone more familiar with Python, which of these languages would you recommend learning next? C++ supports OOP more but C is simpler. I'll probably learn both eventually, but I don't want to be a one-trick-pony. Any recommendations?

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

      @@elijahcriswell1658 Coming from Python, C++ would possibly be the better option due to some similarities. However, learning C after learning C++ can be a pain. Overall, it depends on what you want to develop. Game development , IoT, databases, and machine learning are great with C++. C is great for OS dev, conpilers, mechanical engineering, embedded systems, and a few other subjects would be great with C. And remember, OOP is only a tool and it is often misused. I see it a lot in the industry.
      Edit: C will help you actually see and think how things work more than C++ can......kindof

  • @atomicptr
    @atomicptr 2 ปีที่แล้ว +281

    You can just write C code in C++ and use the C++ features you want

    • @Nohomosapien
      @Nohomosapien 2 ปีที่แล้ว +33

      Then is that a C or C++ program Ô_ō

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

      Yeah, what would it be?

    • @bogdanlevi
      @bogdanlevi 2 ปีที่แล้ว +32

      Um, actually, this is not entirely true for the current up-to-date standards of c and c++. There are keywords in c that are not in c++.
      However, if you avoid those, you can write code that will be compiled by both c and c++ compilers.

    • @bogdanlevi
      @bogdanlevi 2 ปีที่แล้ว +34

      @@Nohomosapien code is essentially just text. We call some text "c code" if it can be compiled with a c compiler, and we call it "c++ code" if it can be compiled with a c++ compiler.
      Code that can be compiled by both compilers is, therefore, c code and c++ code at the same time.
      When you compile it and get an executable, it will technically be a c program or a c++ program depending on which compiler you used.

    • @Nohomosapien
      @Nohomosapien 2 ปีที่แล้ว +1

      @@bogdanlevi Oooo ok, thanks...

  • @LDdrums20
    @LDdrums20 2 ปีที่แล้ว +62

    I really like modern C done well. Light modules and handles for most things gives you a very extendable and clean code

  • @soulextracter
    @soulextracter 2 ปีที่แล้ว +195

    Don't set out to learn a programming language! You won't enjoy it!
    Set out to learn how to make X thing in that language. The more you use it, you will get used to the language, and it will become second nature to you in the end.

    • @imt3206
      @imt3206 2 ปีที่แล้ว +10

      Quite smart statement

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

      Hummmm, I can see where you are going with that, and I can totally appreciate that line of thought. But, on the other hand, learning the bits and bobs of a programming language can be quite fun too! It does require a lot of patience, and I'd say sitting down with someone that has more experience makes the process a lot less difficult, but once you master a language like C you start realising how much more you can do with your computer. One of my past times was actually disassembling binaries compiled with different compilers and instructions to learn more about both assembly and the process of optimization, and it turned out to be useful for me later on :)

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

      @@lucasgasparino6141 Yes it's definitely important and hopefully a lot of fun learning the ins and outs of a programming language, however I think that you are better off easing through that process by doing real things with the language while learning at the same time.
      To "illustrate" what I mean, say you want to "learn photoshop". You would be more likely to stick around and enjoy the process if every day, you made something new and cool with some of the tools and thereby naturally getting used to them, instead of sitting down day one, trying to learn all of Photoshop's individual tools and the whole interface by heart without producing anything.
      Most tutorials are kind of like that. Someone goes: "Here is an example of this tool being used, and here is an example of this other tool being used".
      What they should be, to keep it fun, would be more along the lines of: "Today we are going to create this little [thing], and we are going to be using these tools to do it, and we use this tool because of X"

    • @bismajoyosumarto1237
      @bismajoyosumarto1237 2 ปีที่แล้ว +1

      @@soulextracter
      Your comments are a gem. Very valuable advice, thank you so much! I will consider it not only during the next time I want to learn a new tool, but also the next time I think of making a tutorial or teaching vid or anything like that
      Also, funny username

  • @qrterergtg8660
    @qrterergtg8660 2 ปีที่แล้ว +278

    I'd like to point out that your statement regarding how C++ is a super-set of C which means that all C code can run in C++ is completely false, C++ is no longer a super-set of C, many aspects of dialects regarding the standard of C aren't allowing inside of C++, a big example is things like VLA and other things that are valid in C but aren't in C++. Overall a nice video however.

    • @conaticus
      @conaticus  2 ปีที่แล้ว +51

      Ah! My mistake, I will pin a comment. Thanks for the feedback.

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

      @@conaticus of course, great video tho!

    • @szaszm_
      @szaszm_ 2 ปีที่แล้ว +9

      C++ was never a strict superset of C. For example, in the early days, C didn't require declaring the type of function parameters, but C++ always mandated it. A newer example is that in C, void* is implicitly convertible to any pointer type, while in C++, you need an explicit cast when using malloc. And new additions like _Atomic are not yet part of C++. (C++23 will fix that.)
      The compatibility is and was always more like you can convert a well written C program to a C++ program with relatively little effort, and you can always mix them with the linker.

    • @azaria_phd
      @azaria_phd 2 ปีที่แล้ว +14

      @@szaszm_ I mean, just by virtue of having more keywords it cannot be a strict superset of C. "int class = 3" is valid C code but invalid C++ code, because "class" is a keyword.

  • @carlosjohncosta
    @carlosjohncosta 2 ปีที่แล้ว +36

    I bought a used copy of "the C programming language" book a few days ago, and I am waiting for it to arrive. I like object oriented code, but I thought it may help with my understanding of computers to learn a lower level language like C.

    • @danielberglv259
      @danielberglv259 2 ปีที่แล้ว +14

      C is exactly great for leaning how programming really works, beneath all of the abstraction introduced in other languages. It's also great for small things where you need a certain speed that other languages can't provide for certain tasks. For more complex OOP work, there are many much more suitable languages than C++, which in my opinion is nothing more than a big pile of utter crap. C can seam annoying to begin with, if you have already familiarised yourself with some higher languages, but it's great once you have put in the time to learn it.

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

      It's funny, cause C is actually one of the first high-level languages. I had to code with Assembly at college once, and lemme tell you, that was a real nightmare 😂.

  • @Mnerd7368
    @Mnerd7368 2 ปีที่แล้ว +25

    Would like to see a video in C or C++ in game design, A.I., aerospace software engineering, robotic software engineering, mobile software development, embedded software dev, and I.O.T(internet of things (edge and cloud computing)) regarding C or C++ software? Great short C/C++ video by the way.

    • @connor43057
      @connor43057 2 ปีที่แล้ว +1

      I’m a graphics/engine programmer. We use both C and C++ in our renderer. Ideally we want a pure C implementation to make smaller binaries and cleaner syntax, but the conveniences of C++ for certain things make both of them exist in harmony 🙂

    • @victorsarkisov4480
      @victorsarkisov4480 2 ปีที่แล้ว +1

      @@connor43057 I am actually working on a hobbyist engine and can't decide whether or not to write it in C or C++. Its interesting and reassuring that you want a C implementation. I always assumed that professional engine developers scoff at the idea of not using C++.

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

      I also want to make a game/engine in pure c in fact I would like to make most of my games like this. Reason being many games and engines that use c++ or c# still use data-oriented-programming approaches to structuring the game like an entity-component-system (ECS) instead of using OOP. Aside from this, it would be a fun challenge and people like Ryan Fleury and Handmade Hero have been doing this and have shown that it is possible to make absolutely incredible games.

  • @FalcoGer
    @FalcoGer 2 ปีที่แล้ว +8

    You don't need to understand every intricacy of c++ to write effective and working c++ code. You don't write code to utilize the language. You use the language to write your code. If you want to do something, then do it with what you are given. And c++ gives you more. If you want to use printf, then by all means, use printf, even in c++. Just remember that if you use it wrong, you will get a security problem. the cout stream object on the other hand has no such issues. That aside, cout isn't all that complicated, and is used only to write text to stdout. Now consider you want to change your code to write your text to a file instead. You just switch out the stream object, everything else stays the same. in c you need to rewrite your function calls.

  • @squashedoranges7949
    @squashedoranges7949 2 ปีที่แล้ว +9

    I've used both C and C++. I started learning C++ and then I started learning C. C++ is nice and fast, though it does feel needlessly clunky at times, but depending on what you've asked of me will change on which I will use.

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

      C++ is faster in much bigger non-iot programs because of the abstractions it can provide that compile to more efficient code whereas C has far less features but is easier to program in.

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

    "Learn C before you learn C++" is like telling someone to learn Latin before learning Italian.
    Yes, it might help you see where some concepts stem from, but 99% of the time that just isn't worthwhile. They're not really the same at all.

  • @Asdayasman
    @Asdayasman 2 ปีที่แล้ว +7

    I have carefully considered whether C or C++ is a better fit for me, and have come to the conclusion that, because I am a homosexual, I should stick with Javascript.
    I'd like to thank the erudite gentlemen on 4chan for helping me with this decision.

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

    This guy deserves more subs. This is the kind of video I need in my recommended page and very entertaining to watch!!!

  • @Peak_Stone
    @Peak_Stone 2 ปีที่แล้ว +11

    The advice at the end was very good. I do have a clear goal, Unreal Engine. So I decided to learn C++. Then I thought maybe i should learn C first, because maybe C is exactly the same as C++, but just the skeleton of it. So if I lean C I would automatically know the basics of C++. Is this a good strategy? Or are there fundamental differences. Is C++ an actual superset of C, or does it have fundamental differences at the imperitive level? I thought i'd go from imperitive to OOP. time to google i guess.

    • @conaticus
      @conaticus  2 ปีที่แล้ว +10

      absolutely a good approach, understanding c makes learning c++ a lot easier

  • @HoloTheDrunk
    @HoloTheDrunk 2 ปีที่แล้ว +180

    I've used both C and C++ fairly extensively (although I'm nowhere near the 10 years of C++ experience people usually joke about being required to be considered advanced).
    I've done things from embedded systems programming to server backends and compilers in both with a lot of things in-between.
    C++ is definitely my favourite to work with. For many applications the often times slight increase in speed from using C is just not worth the added hassle and development time.
    I like our god emperor Linus Torvalds as much as the next guy but the words of someone who's been working on kernel code for decades are not to be taken as holy gospel for the vast majority of use cases.
    All of this to lead into my next point: Rust. I love it. Absolutely everyone who uses it loves it. It's great.
    Although currently still a fairly young language, most of the utility libraries one might need are already present and the comfort of development once you can use it without much trouble is unparalleled when couple with all of its selling points.
    Work is even being done to make it viable for extremely low level cases line kernel development, and the embedded systems Rust ecosystem is becoming better day after day.
    C as a beginner language.
    Rust after doing a fair amount of projects in languages with varying paradigms (including functional if possible).
    C++ when you're just looking to learn a one size fits all systems programming language.
    All of this is of course an opinion and I am making no claim of objectivity.

    • @14n73x
      @14n73x 2 ปีที่แล้ว +10

      I might be wrong but I think Linus said this as a reaction to "Hurr durr why dont you code kernel in C++" so he was speaking about very low-level memory/instructions management where C is simply superior to C++.

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

      @@14n73x how is C superior in "memory/instructions management"? For the heap it's all coming from the OS (e.g mmap) and you can call these functions from C or C++.
      About the instructions I don't know what you're talking about, if you write C code in C++ it should be about the same. If you're referring to optimisations, both C and C++ various compilers can make very big changes from what you'd expect.
      Personally I've grown to absolutely hate C++ as a language, but I don't see it as inferior to C when talking only about speed or memory

    • @14n73x
      @14n73x 2 ปีที่แล้ว +9

      @@EidosX_ Um, you are making the kernel so I doubt you can call some OS function from API that's above the kernel..

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

      @@14n73x oh I didn't realise how low level you were talking. But still, afaik everything you can do with C you can do with C++ (apart from stuff like VLA), do you have an example where C is suitable but doing the same thing in C++ is not?

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 2 ปีที่แล้ว +9

      I love Rust, too.
      Finally, abstractions (which C lacks) without the need of having to learn decades about a language and realizing you still don't know the language (C++).

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

    Thank you, you have been added to one of my educational and overall enjoyable cs related youtuber. (Just fireship). Love the style and keep it up!

  • @melihcelik9797
    @melihcelik9797 2 ปีที่แล้ว +26

    I have been working as a C developer for about 2 years. I know that is not much compared to other veterans around the web, but I had my share with it. Strange bugs are just, interesting. I even found myself debugging for symbol names and GNU Hash table in the native binary. (There was a problem with the compression ant other low level operating system stuff and that really happens I am not gonna lie)
    However, I know Java and JS as well as C#. Maybe not as much as C, but I would argue that knowing C is not that much. Understanding the binary itself is a bigger accomplishment rather than knowing the syntax of C language. Because everything changes when you are introduced to a different toolchain. Every compiler is different, all of them are called gcc but try running a poky compiled binary withing a toolchain of armstron (or vice versa). My point is, I know other languages and recently was working with Java and C# as a my own projects. Java as the backend of the server, using Spring Framework and C# as the mobile and desktop application using .Net Core. There is something about those languages that are just more fun than C. I am still writing stuff myself rather than using already implemented libraries but I don't find that the easiest thing in the world to be honest. I still prefer to write my own code sometimes. Sometimes for the better. And there were some instances I had to use JNI to import my C code into Java, which is entirely different than java and C but gets the job done so I am not really complaining.
    The point is, if developing for the desktop and doing anything other than a game engine, please don't use C or C++. You will just make it harder for yourselves. C# is really good for interacting native windows dll libraries and sometimes even more than that. And electronJS is really cool for developing desktop applications with JS. That is really cool aswell. And I myself really like Java. I learned to code with Java, and like the OOP nature of the language. Sometimes I miss some features from JS and even from C, but every other technology has that pro/con realtionship with others. And if you are running a limited machine with a barebones linux os, know your limitations because there are some really good architectures that is really powerfull even if they don't seem like it. For example, with IMX6 from NXP I can run Java embedded with no hassle, with a little bit of performance overhead of course and I can cython compiler python project with no problem. Keep in mind that if you are using a slow flash storage, going anything other than C might be wrong because virtual runtime environments that are reuqired by the other languages are constantly using the disk for some reason and if you are using a flash storage, you will run slow and eat away your disk's write cycle lifetime. There are pros and cons like every other thing in the universe but as for the pure running performance, JIT compiling is not really that bad even on a single core 600mhz arm based low powered embedded chip. Technology has come a long way and if you feel stuck with C, like I was, try those technologies.
    And lastly, for the application that I wanted to build with python was a gps service daemon, that reads nmea location information from a modem over the usb protocol (or from the modemmanager dbus api) each second and reports that location to socket using UDP protocol. Not the hardest of the jobs, or the most demanding application but works just fine and as far I haven't really seen a performance loss over the native C implementation of the same application. And if your machine has a graphics accelerator of some kind python works really well with both Qt and Gtk and considering its really good and well, and I would believe that development time using python as opposed to C will be like 5 times faster using a UI framework like GTK

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

      While your python app will be faster to get up and running, it will be slower and less responsive over a well-built native desktop application.

  • @coolbrotherf127
    @coolbrotherf127 ปีที่แล้ว +10

    I'd consider C++ the Computer Scientist's best friend. There are a lot of C++ applications and uses in the technical fields like Engineering and scientific research. But, if someone is trying to get into programming as a self taught programmer, learning languages meant for App and website development will be a lot more important. I can't think of a single C++ developer job listing that didn't require at least a degree in either Computer Science, Computer Engineering, or a decade of experience with the language.

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

    By using C and writing your own modules/libraries, you can embed them natively into many important languages: Go (another Ken Thompson's language), Swift (to build iOS/macOS app), or even C++ , you can integrate it in Java through JNI. Make sure to use ANSI C dialect. Also Lua can call C code, but you can call Lua from C, including . Of course it means you can do that in any programming language that supports embedding C natively. And you can write Cython modules and take you Python programming to the next level. What is faster C or C++? Neither of them, since optimisation is compiler's work, but basically C++ code will have more structures, that are more performant than C, but it doesn't mean you can't do that with C. The machine code generated from C will be probably very small compare to any other language except Assembler, so it's probably can be slower in some cases (for example arrays vs std::vector), it can be faster in general. It depends of what you code is doing.

  • @konodioda8689
    @konodioda8689 2 ปีที่แล้ว +1

    My first time finding such channel before it blows up... feels gooooood

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

    "Use C to program embedded systems" while showing arduino code in c++

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

    Use C for small, simple programs. Use C++ for large, complex projects. The end.

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

    This is some high quality videos right here

  • @WolvericCatkin
    @WolvericCatkin 2 ปีที่แล้ว +1

    _"Should you use C or C++...?"_
    Ferris: ...
    Hi :)
    😂

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

    And then there's me using F90 with C and CUDA to make computer go fast xD but seriously, amazing explanation! I tend to favour C mostly because I started with imperative languages (Fortran, Pascal), and I love how C allows for fine grained hardware control without too much hassle. I know C++ is really powerful, but OOP is just not for me xp.

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

    C++ is not a low or high level language. It's both. Could go as low as you want and as high as you want. You can use it for fast prototyping if you're using already existing platforms and libraries where you'd write baby-friendly readable code. Or you could write your own library and get into the deepest of details. The unfair comparison is usually when they compare writing an application in Python vs writing a library in C++.

    • @ChristopherGray00
      @ChristopherGray00 2 ปีที่แล้ว

      yeah, that and python's interpreter is very very bad and hasn't been reworked even throughout more than a decade of its use. they could make it much more efficient but they choose not to.

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

    To be perfectly honest I’ve used C for about 5 years but have never once even touched C++.
    I reckon it must be nice to have strings and/or classes though

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

    2:12 We use C++ for Arduino. Reason is, OOPs make program much more readable and easy to use.

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

      You can still program an Arduino in C. "OOPs make program much more readable and easy to use" is very subjective.

    • @shail0124
      @shail0124 ปีที่แล้ว

      @@theredstonehive Ever used file descriptor in C? Using that in every single function when you wants to do something. Like in socket or while playing with files. For small programs it does not really much matter. But it really mess things up when your project gets larger.
      In Oops you can just create a variable with that specific datatype and you have all the functions(methods) embedded inside of it. It really helps. That is why every modern programming language follow oop paradigm

    • @twqzjsidIsndusiakdixisqjeksixi
      @twqzjsidIsndusiakdixisqjeksixi ปีที่แล้ว

      @@shail0124 it's still subjective. Some procedural code can be far more readable than some OOP code out there. OOP was created to simplify, that's true, but as C++ creator said: "... C++ is harder to shoot your leg, but when you do, you blow your whole leg off". If that was literal, most OOP programmers would be disabled.

  • @OllAxe
    @OllAxe 2 ปีที่แล้ว +33

    1:34 I think it's unfair to call using open-source libraries in accordance with their license "stealing". Also, I don't think the language you use dictates how likely you are to use libraries; writing your own library in C isn't any easier or faster than doing so in C++. Maybe the use cases for C align with the use cases for writing your own libraries, which says more about how C++ has taken over popularity in other areas than it does about any inherent preferences of C programmers.

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

      I think a big flaw with open source software is a lot of people complain when companies use open source code without paying for it yet the authors made it freely available for anyone to use. The short version is a lot of people making open source projects do not know what something being open source means. Some even try to pass it off as the companies are doing something wrong.

    • @ExplosiveKaboom
      @ExplosiveKaboom 2 ปีที่แล้ว +1

      @@LuminousWhispers11 It doesn’t matter if it’s available online, if it’s in violation with the license then it’s not ok

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

      @@ExplosiveKaboom Notice how I added the phrase "authors made it freely available for anyone to use" in my comment? Yeah, that includes everything to you to Google and implies license compliance. If you didn't make it freely available for anyone to use then that comment doesn't apply to you. How you didn't notice the phrase is beyond me.
      To break it down with a example, "People who liked the video why did you like it?" If you didn't like the video then the question doesn't apply to you. Do you understand?

    • @computernerd8157
      @computernerd8157 2 ปีที่แล้ว

      @@LuminousWhispers11 No, people are mad because companies usually do not contribute back to the Project. GNU Software is not free as in beer. They also complain because alot of times they want companies to release their code as GNU which I do not support. I use GNU tools but often I like to avoid taking code from Gnu Projects unless, I am going to modify it and bring those modification back to the main code base. That the only way to use GNU code without being in trouble. To be on the safe side, I say just avoid it and write your own code. The only license that actually free is the MIT one that FreeBSD uses.

    • @LuminousWhispers11
      @LuminousWhispers11 2 ปีที่แล้ว

      @@computernerd8157 I will agree with that. Granted a lot of people also do have a hate boner for companies blaming them as exploiting open source developers when they aren't even obligated to donate and are following the license. One developer even went to adding a infinite loop to his code repository because no company paid him (open source) for his work and people were shocked when he got banned. People are forgetting ethics in favor of greed just like the companies they hate. It is rather concerning.
      People also seem to think that open source development is forced slave labor by some force but it is rather volunteer work (money is a after thought). Also, while companies may not contribute in programming support often times they donate money and I imagine that employees may contribute to the project in their free time. But, they would be more likely to donate money for big requirements.

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

    Linus Torvalds did the thing whole GNU community couldn't at the age of 22, I know it's not mandatorily true just because he said that but it can enough to make me biased against C++.

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

    F*ck, I was drinking hot coffee while you showed PHP.

  • @thegreatchaos13
    @thegreatchaos13 29 วันที่ผ่านมา

    I normally just use C when I can, and use Python if I want to make graphical games or object-orientd programs. Let me know what y'all think about this!

  • @ayylmao7962
    @ayylmao7962 2 ปีที่แล้ว +7

    0:53 you forgot the „restrict“ keyword, which is a keyword that only exists in C, contrary to c++.

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

    Saying "C > C++" on the Internet highly correlates with either:
    • being a student and not actually working in the industry
    • having never shipped a significantly large piece of software
    • or being a boomer who formed their opinion on C++ in the 90s and not having looked at the language since

    • @anujmchitale
      @anujmchitale 2 ปีที่แล้ว

      You are right. No one language is absolutely better than the other. Depends on the context, underlying objectives, business decisions and a plethora of other things.

  • @venilc
    @venilc 2 ปีที่แล้ว

    Just watched all your vids, good job man. Get famous soon plz

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

    I would use Holy C

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

    1:15, just 'MyClass myClass;'. It'll create the object (not a pointer) on the stack.

  • @mikwee
    @mikwee ปีที่แล้ว

    Duddddde there’s another Fireship-like channel? Instant sub

  • @connoisseurofcookies2047
    @connoisseurofcookies2047 ปีที่แล้ว

    Yes, the legendary coder, Bidian Ståsoup.

  • @superscatboy
    @superscatboy 2 ปีที่แล้ว +24

    Please remember that C and C++ are only ABI compatible, and *not* language compatible.
    C++ is *not* a superset of C. They are distinct languages.

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

      Exactly. Try naming a variable "new" in C, works just fine. But it won't work in C++...

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 2 ปีที่แล้ว +1

      it's very close to being a superset though

  • @jujujuujuu816
    @jujujuujuu816 2 ปีที่แล้ว +1

    very underrated, you deserve much more!

    • @jujujuujuu816
      @jujujuujuu816 2 ปีที่แล้ว +1

      more opal devlog pls pls

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

    The part where you show the different things in c++ where did you got them from cause still want to better my c++ lol need to know the resources to know all 92 keywords. Also great video summed up fast and efficient.

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

      I would focus on one learning resource that teaches you everything you need to know about C++. I wouldn't try and learn all 95 keywords, you'll learn them over time anyway!

    • @grimshinigami
      @grimshinigami 2 ปีที่แล้ว

      @@conaticus Ohh thanks for the quick reply appreciate it also thanks for the advice I think I have a better idea how to approach it now. Thankss!!

  • @maxsmoot9375
    @maxsmoot9375 2 ปีที่แล้ว +13

    Great video! I would note that C is a procedural language (function oriented), not functional. A functional language would be like Haskell or python where the language supports functions as first class citizens (python is hybrid of procedural, functional, and OO)
    EDIT: I would note, not I would no

    • @qrterergtg8660
      @qrterergtg8660 2 ปีที่แล้ว +1

      Python is not functionally oriented, it has functional programming capabilities but it’s function systems doesn’t work off of lambda calculus function logic. Haskell does tho, OCaml does as well.

    • @maxsmoot9375
      @maxsmoot9375 2 ปีที่แล้ว

      @@qrterergtg8660 python is an enigma. I took a Haskell course at my university, can’t recommend it 😂

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

      Might be worth noting: C++ isn’t an object oriented programming language either. It’s a multi-paradigm programming language. It supports object oriented features but it never requires it. Even the standard library isn’t object oriented.

    • @orbital1337
      @orbital1337 2 ปีที่แล้ว +1

      @@blablabla7796 Exactly. Object oriented design is really not even that popular in C++. If it was, then all the standard containers would inherit from some abstract std::container class which provides member functions to find, remove, etc. (you know.. like Java?).

  • @funnypilgo
    @funnypilgo 2 ปีที่แล้ว +1

    0:15 I laughed way too much at this haha

  • @user-ng8rl3jb1i
    @user-ng8rl3jb1i 7 หลายเดือนก่อน

    I thing using c++ with the mindset of c programmer is the best option. I like using new instead of malloc and also using templates and operator overloads. I also like the boolean type and the nullpoiter as it makes it clear it is a null value intended for pointers. Also names paces are pretty useful. I don't choose cout cin that much neither string classes(it could b really use full though)

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

    When you reach 1 million+ subscribers🙃, I will remember that I was here at 544 subs😎.

  • @nulled7888
    @nulled7888 2 ปีที่แล้ว

    Damn ur vids are awesome man.. getting fireship flashbacks all the time lol

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

    TBH if you’re already an adept programmer, learning the basics of C does not take very long.

  • @timothyjacksondrake4454
    @timothyjacksondrake4454 2 ปีที่แล้ว

    This editing is tight, nicely done.

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

    This is the world that I was born into.

  • @DarkCloud0000
    @DarkCloud0000 2 ปีที่แล้ว +1

    Let's go that's amazing 🤙🏻😻

  • @AarcoQ1
    @AarcoQ1 ปีที่แล้ว

    Why do you not have over a million subs????(What I mean is you create great videos)

  • @laczikmarton2745
    @laczikmarton2745 2 ปีที่แล้ว

    I just found your yt channel and i really enjoy the videos you make! Just dont stop!

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

    Great stuff man,
    Btw imma cybersecurity/ethical hacking student.
    I prefer python over c and cpp as it easy, fun to learn and saves lot of time,
    Only use case of c for me is to develop exploits.

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

    INCREDIBLE

  • @lennelbalando5615
    @lennelbalando5615 2 ปีที่แล้ว

    man, this vid is cool, nice stuff, keep it up!

  • @computernerd8157
    @computernerd8157 2 ปีที่แล้ว +1

    I think if your goal is to get a Nob in Industry learn C++. If your goal isto have fun choose or work in Linux choose C. If you want to start your own Job, then choose what you want but I would recommend C only because, you can make thing faster in C than C++. Howevet it comes at a cost, maintaining your code will be harder in C because its not OOP unless you are just doing embeed systems. All of these statements really do not mstter because it depends what you are trying to accomplish. Python might be better because you can produce more products. Overall, I say learn how to make these languanges work together because they arw all tools when its all said and done.

    • @computernerd8157
      @computernerd8157 ปีที่แล้ว

      @@zytr0x108 I closer to machine code for the most part. In the end, the speed betweem the two are not that huge. I am sure it also depends on compiler optimization as well.

    • @RamsLiff
      @RamsLiff ปีที่แล้ว

      ​​​@@zytr0x108 because C is so optmized to the point where writing in asm or in C most of the time doesnt not matter. My father needed a function to be as fast as possible, took him 2 weeks to write it in asm, after that he wrote in C in 1-2 days (for curiosity) , the asm generated was the same and the year was 1998, imagine in 2023 lol

  • @aycc-nbh7289
    @aycc-nbh7289 2 ปีที่แล้ว +2

    I say C++ for sure. I have probably had one too many traumatic experiences with C and have determined that relatively “high-level” programming will likely do the job faster and save your employer money, unless there is something very specific you would like to do at the lower level. Additional keywords and syntax could be learned “as one goes”, provided there exists a knowledge of the basic syntax.
    Also, does anyone ever write new projects from scratch in C or is it for maintaining legacy systems only? If no new projects in C are ever started, higher level languages such as C++, Java, C#, and Python would be better. They will save you the trauma and you will not have to worry as much about handling memory addresses, pointers, etc.

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

      I would be going to my workplace tomorrow, to continue on the new project written from scratch in C. And also develop some stuff in Python.
      So yeah it's still prevalent to some degree.
      Some context: I work in embedded systems. Telecommunications then automotive and now semiconductor industry. C is still preffered in the Embedded development world.
      Maintaining C projects and getting new people onboard is somewhat quicker in C than C++. That's not the fault of C++ though.
      Now that I am using C and python, I see no need for starting C++. Unless I go into the gaming industry, or some ibrary that's built on C++.

  • @hwstar9416
    @hwstar9416 6 หลายเดือนก่อน

    one important thing to note: C is *NOT* a subset of C++ anymore. Since C99 they've added many things that aren't in C++

    • @LamoLemo
      @LamoLemo 3 หลายเดือนก่อน

      Where and How can i learn C from scratch (i don't know anything about programming or how computer works rn)

  • @ardwetha
    @ardwetha 2 ปีที่แล้ว

    The reason why I Love C++ is the fakt that you can do anything with IT even it might be a pain in the ass in some cases Like GUI.

  • @crabcakeenthusiast692
    @crabcakeenthusiast692 11 หลายเดือนก่อน

    C++ is superior because I love the cout and cin functions. Say you want to output some text, followed by a variable, followed by more text. In c, and other languages, you do
    printf("Hello there your number is %d have a good day", variablename);
    in c++
    cout

  • @getonWexford
    @getonWexford 4 วันที่ผ่านมา

    I’m trynna eventually get to C++
    But I’m gonna start with lua first to get an understanding
    Is this recommended?

  • @CrimsonTide001
    @CrimsonTide001 2 ปีที่แล้ว +1

    As someone who has used C++ for over 20y... learn Rust.
    The C++ standards committee has destroyed C++, every addition causes more and more issues. Sadly most of the problems introduced won't be understandable by beginner (or even intermediate) programmers. Why things like 'noexcept' is both great and a disaster (a static type system that is not statically checked!!??), the problems with move and perfect forwarding, const vs constexpr vs consteval, or the brand new travesty that is concepts (requires requires requires!!??).
    C++ has around 5 'shadow languages' under it's umbrella, and where they intersect there are pages upon pages of arcane and legalese stipulations that no one in their right mind should ever need to know. It's a classic example of too many cooks in the kitchen and a pathological refusal to compromise...
    Stay away from C++, it's a Siren's song...

  • @kinershah464
    @kinershah464 ปีที่แล้ว

    Learning other languages is easy if you know C++. For example, Java, C#, Python, JavaScript, etc. - saying from personal experience.

  • @vincent-thomas
    @vincent-thomas 2 ปีที่แล้ว

    This video is like Fireship makes his video. Love it!!

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

    C++ is going obsolete?! I guess I'll learn assembly instead...

  • @v0xl
    @v0xl 2 ปีที่แล้ว

    nice channel, maybe try adding ambient-ish background music?

  • @pwf2k
    @pwf2k 2 ปีที่แล้ว +1

    People saying C++ is hard to learn and use std::cout as an example:
    Me who knows you can literally just use printf:

  • @B31L
    @B31L 2 ปีที่แล้ว +1

    nice video and editing

  • @lemonbot7755
    @lemonbot7755 2 ปีที่แล้ว +1

    It is better to learn C before learning C++

  • @LunaticEdit
    @LunaticEdit 3 หลายเดือนก่อน

    C. I tried using C++, but spent more time changing code because I wasn't doing XYZ in the "right way". Well why does C++ have 20 different ways to do the same thing? new/delete or smart pointers? Do you pass raw pointers, &refs, or shared pointers? strings or string_view? No thanks. bump that mess. It's true C doesn't have classes. Wonderful, make the functions MyStruct_MyFunc and pass in a pointer to the struct as the first parameter. Boom classes without ctor/dtor hell. Want to hide members? Excellent, define the struct in the .c file and have just the struct declared (but not defined) in the header. Boom, opaque structures, no more spaghetti code.

  • @Dangerousdaze
    @Dangerousdaze ปีที่แล้ว

    Should you use C++ or ? Yeah, you should use .

  • @deckard6052
    @deckard6052 2 ปีที่แล้ว

    Most underrated coding channel on youtube!

  • @leonard_9500
    @leonard_9500 2 ปีที่แล้ว

    I love this editing style.

  • @Stopinvadingmyhardware
    @Stopinvadingmyhardware ปีที่แล้ว

    I get the feeling Linus is still mad at me about that NVidia thing.

  • @captainswing4040
    @captainswing4040 ปีที่แล้ว

    c++ has keywords like 'new' and 'delete' which are just malloc and free under the hood
    also c++ has loads of functionalities which might be useful for some but not necessary
    c++ is a great choice anyhow

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

    Accurate logo for php

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

    Excellent video! I don't know why C++ would be "faster" than C though. Especially considering compilers for C are easier to write because C is so much simpler; but idk.

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

      because it's easier for the compiler to recognize the abstractions hidden in the code and thus make more optimizations.

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

      On all major compilers, they are using the same compiler backend, but there are usually more optimization opportunities in C++, because the compiler can usually see through more code. std::sort being faster than qsort is a good example of this.
      On the other side, there are exceptions and RTTI that add some overhead to all C++ programs, even if they are not using them. The overhead is mostly in binary size, but it can mess with cache efficiency and make the code a bit slower.

    • @orbital1337
      @orbital1337 2 ปีที่แล้ว +1

      C++ is faster than C largely because of templates and constexpr (and on the other hand, C can be faster than standard C++ because of restrict in some cases). They allow you to write generic code that is as fast as special purpose implementations because all of the work is being done at compile time rather than at runtime. You can try to imitate some of this in C with macros but that is extremely limited and will get ugly very, very fast.

    • @mavhunter8753
      @mavhunter8753 2 ปีที่แล้ว +1

      @@orbital1337 I guess that makes sense. Since C was designed as a high-level assembly, it essentially is most optimal when the programmer is the one handling the optimizations. Versus C++ which is designed to be a high-level language with "zero cost abstractions."

  • @feandil666
    @feandil666 2 ปีที่แล้ว +12

    C is the best for simple low level systems, but it lacks a lot of features when you want to do more complex applications. C++ is the standard for a lot of operating systems and games because it does provide the performance of C while allowing for some higher level constructs, like classes.
    That being said a lot of programmers make the mistake of using all the features of C++, most of them really are shit and shouldn't be touched, C++ is best used as C with classes

  • @lucasa8710
    @lucasa8710 2 ปีที่แล้ว

    A trying to learn a low level language because I want to create a high level language, I studying ways to do it since 2020, I have nothing concrete yet, but the knowledge that I acquired is worth, now a have much big picture about what programming really is and it is not CSS classes, lol

  • @JazzTGB145
    @JazzTGB145 2 ปีที่แล้ว

    u deserve more than 1000subs!

  • @DirkArnez
    @DirkArnez 2 ปีที่แล้ว

    The most crazy thing in C/C++ is that we will suck if we mix C code in C++ codebase. Rules are different in both world, but they share similar to identical syntax. Wrapping C libraries requires a lot a lot of knowledge...

  • @ZeroOneSekai
    @ZeroOneSekai 2 ปีที่แล้ว +1

    If I am having trouble sleeping I will watch your videos and will get sleepy within 2 minutes😴😪😪💤💤

  • @enkiimuto1041
    @enkiimuto1041 2 ปีที่แล้ว

    i'm liking your style

  • @gta5678901234
    @gta5678901234 ปีที่แล้ว

    Well I dont think low level languages are replacing by modern technology because c and cpp are the fastest languages where most modern technologies are quite slow. So when there are mission critical things and timing considerations c and cpp are going to be there for a long time to come.

  • @svensvensson8102
    @svensvensson8102 ปีที่แล้ว

    There's really only two reasons for prefering C over C++, compilation time and size, for VERY constrained environments.

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

    1:13 wtf? It must be MyClass myClass() or MyClass myClass = MyClass(); In your case, your are creating a pointer to dynamically allocated memory(by using the 'new' keyword) and, if you really wanted to have a pointer, you would use smart pointers such as unique_ptr or shared_ptr

    • @cediwelli
      @cediwelli 2 ปีที่แล้ว

      Are you actually trolling?

    • @iliasalaur
      @iliasalaur 2 ปีที่แล้ว +1

      @@cediwelli why do you think so?

    • @cediwelli
      @cediwelli 2 ปีที่แล้ว

      @@iliasalaur "It must be MyClass myClass() or MyClass myClass = MyClass()" Sounds like trolling about the many ways in C++ to instantiate an Object. There are too many methods and most of them are crap IMO. "if you really wanted to have a pointer, you would use smart pointers such as unique_ptr or shared_ptr" ranting or discouraging normal pointers is a very C++ thing to do but many C programmers (at least many that I know) say these things in order to mock the C++ programmers about their notorious "nOrmAl pOinTers aRE EViL" thing they've got going on.
      I don't know, what you said just looked to me like bait for C programmers to attack you.
      Note: I am a C programmer and do not like C++ but this isn't meant as an attack.

    • @iliasalaur
      @iliasalaur 2 ปีที่แล้ว +1

      @@cediwelli i wrote about object initiation with the 'new' keyword because most of the Java programers that learn c++ initiate objects in that way. And, well, it would be better to use 'should' instead of 'must', i understand

    • @cediwelli
      @cediwelli 2 ปีที่แล้ว

      @@iliasalaur I understand where you come from. Your points regarding allocation on stack rather than on heap are valid. It just sounded like you were trolling. The thing I don't agree with is using smart-pointers. It is fine if you want to use them but I don't think they should be forced by the c++ community this much.

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

    Program in c++. If you want to write C, do it in CPP. If you have something you can’t do with only C, you can use a CPP feature instead

  • @deathkeys1
    @deathkeys1 2 ปีที่แล้ว +1

    I went with C, though, i could have used javascript or even python... but I like C. You should also note that it is too late for me for I am far past beyond the point sanity, so nobody should listen to me.

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

    You just need to learn around 20-40% of C++ features.

  • @aayushchandrapradhan
    @aayushchandrapradhan 2 ปีที่แล้ว

    Yaaaa finally a new video

  • @ErikBongers
    @ErikBongers 2 ปีที่แล้ว

    "Bedjarn Strawstrope" lol.

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

    I was using C for a small test app a few weeks ago, but switched to C++. I just can't live without RAII, smart pointers, exceptions, std::vector, etc. and easily factoring different things into classes. Calling malloc and free in C just drives me nuts now.

  • @Enter_channel_name
    @Enter_channel_name 10 หลายเดือนก่อน

    I think C is easier to use than C++. But C++ is more powerful and can be used for things that cannot be done in any stardards-supported way in C.

  • @zhongxina728
    @zhongxina728 2 ปีที่แล้ว

    This channel is a lot like fireship

  • @Awwe12675
    @Awwe12675 ปีที่แล้ว

    Guys if u don’t try c or c++ in web
    I have problems
    It’s amazing to understand socket and threads
    By c c++

  • @adviced8071
    @adviced8071 2 ปีที่แล้ว

    XD i loved the php reference, you'll get a lot of people angry just for that