C++ Coders Be Like...

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • Check out my Udemy course: www.udemy.com/...
    Get Your Billy T-Shirt: my-store-d2b84...
    Discord: / discord
    Instagram: / mrpsolver

Komentáře • 961

  • @kerim7158
    @kerim7158 Před rokem +5027

    I use C++ because I wanna leak 90% of my memory. I wanna see the memory all over on my floor. Can your python do that? Didn't think so

    • @awawus
      @awawus Před rokem +395

      Python already consumes as much memory as C++ leaks all over on the floor, so no.

    • @_kitaes_
      @_kitaes_ Před rokem +135

      a = list(range(9999999999999999999999))

    • @DOOT_II
      @DOOT_II Před rokem +122

      if you're using C++ right you won't have memory leaks

    • @user-lv6qm3fj2z
      @user-lv6qm3fj2z Před rokem

      you fool, any language can leak memory, including Python.

    • @tinahalder8416
      @tinahalder8416 Před rokem +211

      @@DOOT_II similarly if one uses python in places where it is supposed to be used, speed won't be issue.
      Never heard from someone that Instagram or YT is slow, though both are based on django, . All languages have their specific use cases that's all.

  • @circleo1992
    @circleo1992 Před rokem +1735

    This guy is basically the smart version of Beluga.

    • @Cargren18
      @Cargren18 Před rokem +133

      I would say that it is the programming version of beluga.

    • @esfera2181
      @esfera2181 Před rokem +12

      It's the cheap rip off of beluga, not even half as funny

    • @don3289
      @don3289 Před rokem +114

      ​@@esfera2181 beluga wasnt even remotely close to funny. Only made corny ass jokes.

    • @notoriog
      @notoriog Před rokem +25

      ​@@esfera2181In which world is beluga funny though?

    • @holl7w
      @holl7w Před rokem +21

      ​@@notoriog from 138 million alternate timelines there was none where Beluga was funny.

  • @DavidPennington-t6y
    @DavidPennington-t6y Před rokem +1900

    "in C++ we write everything ourselves." ya right. In binary we DEFINE everything ourselves. We don't got no objects, functions, or any semblance of code repeatability beyond copy and paste.

    • @frankluvsu21
      @frankluvsu21 Před rokem +315

      Yeah, but I WIRE EVERYTHING MYSELF WITHOUT ANY DEFINITIONS, FUNCTIONS OR OBJECTS. I PUT EACH TRANSISTOR IN THE RIGHT PLACE SO THE MACHINE DOES WHAT I WANT.

    • @daxasd3270
      @daxasd3270 Před rokem +104

      @@frankluvsu21 Dude. That's like lvl 9000.
      Also nobody is rich enough to own a chip factory.

    • @frankluvsu21
      @frankluvsu21 Před rokem +93

      ​@@daxasd3270 nah, I'm Elon's 6th son and I own 20 different chinese chip factory.

    • @blitzmensch
      @blitzmensch Před rokem

      @@daxasd3270 you absolutely do not need that much money to create your own stuff. First, you can build a PC out of discrete logic, aka transistors. That’s not gonna be a Threadripper but for simple programming, learning or whatever it is good enough. And it is actually possible to make a chip at home, and even if it requires expensive equipment it is still nowhere near the price of a chip factory.

    • @rhinoracer
      @rhinoracer Před rokem +14

      Dang, as a new Python dev mostly still learning about coding, I salute you mr. Binary dev

  • @supertron6039
    @supertron6039 Před rokem +1102

    As someone who has coded in C++, I can confirm that our biggest fear is Segmentation Fault.

    • @IAmNotASandwich453
      @IAmNotASandwich453 Před rokem +76

      I would rank undefined behaviour above that

    • @v01d_r34l1ty
      @v01d_r34l1ty Před rokem

      @@IAmNotASandwich453 I would rank VTable errors that your compiler and linker didn't catch above that.

    • @abdielsouza9769
      @abdielsouza9769 Před 11 měsíci +3

      yes...

    • @user-wd5vs1jc9b
      @user-wd5vs1jc9b Před 10 měsíci +5

      What about C enjoyers?

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

      @@IAmNotASandwich453 it is only scary when you are trying to debug a program or work with the memory

  • @ToolwatchBoutique
    @ToolwatchBoutique Před rokem +362

    I feel just so slightly offended as a C++ developer

  • @aaryanahuja8274
    @aaryanahuja8274 Před rokem +1962

    Most Python users prefer death over C++
    Edit: This is the first time I got 1k likes. Feels nice

    • @zineelabidinebelkadi2202
      @zineelabidinebelkadi2202 Před rokem +113

      at least you do not have to code in c++ when you are dead.

    • @Richardo2928
      @Richardo2928 Před rokem +152

      And most C++ users prefer death over Python

    • @aaryanahuja8274
      @aaryanahuja8274 Před rokem +11

      @@zineelabidinebelkadi2202 totally agree

    • @aaryanahuja8274
      @aaryanahuja8274 Před rokem +17

      @@Richardo2928 wait, what?

    • @grzesheheszek8329
      @grzesheheszek8329 Před rokem +53

      I started with c++ and then switched to python, cause I want to work in AI. Python is so fricking easy hahaha

  • @yacinekunplays5876
    @yacinekunplays5876 Před rokem +1222

    As someone who's learning both i can confirm that a coder that only knows python is kind of far behind bc i realized learning c and c++ helps you understand better how computers work and pointers...

    • @theintjengineer
      @theintjengineer Před rokem +80

      "is kind of"? He/She's extremely far behind haha
      After hearing from a Python Dev that he didn't know what "the hell" column-major order/layout was, I gave up.

    • @theintjengineer
      @theintjengineer Před rokem +83

      @Himanshu Sharma are you telling me that a python dev is more proficient in Debugging and Testing than a C++ one? Well, I don't know how you could ever come up with that. Talking about Debugging and Testing when it comes to C++.
      Bro, that's what we do the MOST
      And I do that even more due to TDD.
      So, yeah, unless you're engineering a small toy program, I don't know how one could ever get away with not Debugging all the time and not Testing to make sure it won't explode at some time.
      But hey, maybe I just hang around good C++ Engineers.

    • @omarjimenezromero3463
      @omarjimenezromero3463 Před rokem +40

      at computing C and C++ are pretty good, specially why python is overoptimized in how much time you spend writting programs, but C and C++ really have a hard start for everything, meanwhile if you catch python after watching C/C++ a lot of things are gonna be super easy, and the program is going to be super slow, but you can use lua instead... but python is more popular, and C/C++ have a lot of time to learn it the right way, meanwhile in 4 hours to 20 hours you can catch something with python, of course it will be less demandant than C/C++ jobs and data, python is pretty good for some things, but if you want to have a taste of real computer programming better grip a C course or something, only if you need it... because it is no turning back once you learn C/C++, is like driving a nissan in the highway and then jump into a lamborghini, you go back to the nissan, but its not the same, i think C and C++ are a solution and a problem at the same time, the scrodinguer language, you know and do not know how to program until you code on it XD

    • @jolynele2587
      @jolynele2587 Před rokem +9

      ​@Himanshu Sharma what are you talking about, systems languages or compiled languages like c/cpp and rust require crazy amounts of debugging

    • @kerkezpavle
      @kerkezpavle Před rokem +69

      This whole comment section is worthy of a video if it's own.

  • @eminkilicaslan8945
    @eminkilicaslan8945 Před rokem +644

    Maybe i start with C?
    Then some C+?
    Life could be a dream, life could be a dreaaaaam

    • @vinnieg6161
      @vinnieg6161 Před rokem +15

      that was actually my thought process as someone who is just now learning how to code :D

    • @torphedo6286
      @torphedo6286 Před rokem +29

      Yeah starting on C is very reasonable, it's a lot simpler unless you need the higher-level strings or maps or something.

    • @minneelyyyy
      @minneelyyyy Před rokem +11

      @@torphedo6286 yeah. C lacks a good way to create advanced types with methods and other fancy abstractions. additionally, there is no real good way to deal with type generic code either. But I agree, C is a great foundation for C++, I honestly even prefer C to C++ in a lot of instances.

    • @ccgarciab
      @ccgarciab Před rokem +4

      C is a great foundation for any developer, but sadly modern C++ has only moved farther and farther away from C, so it's not THAT transferable as one might imagine.

    • @eminkilicaslan8945
      @eminkilicaslan8945 Před rokem +19

      @@ccgarciab We should keep C++ as it is and develop C+++ from there

  • @MathidiotPlays
    @MathidiotPlays Před rokem +372

    I wrote a physics engine in c++ for my senior project recently, and yes, I maxed out all 32gb of my memory to a memory leak. But could python do that? Didn't think so.

    • @superspies32
      @superspies32 Před rokem +19

      I need to import ray package, subprocess package and code entire pipeline to run sequence alignment in python and run the mess on my boss's workstation in 7 days to core dump it.

    • @taurohkea2169
      @taurohkea2169 Před rokem +2

      That sounds like a tough experience 😮

    • @PORYGON9001
      @PORYGON9001 Před rokem

      I wish I was good at physics but nope, I'm only good at math lol

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

      Just finish the presentation before stack overflow comes up

    • @Dr.W.Krueger
      @Dr.W.Krueger Před 10 měsíci +10

      Maybe you are simply not a good developer.

  • @호서대학교이호진
    @호서대학교이호진 Před rokem +540

    C++ is not always the best. You just need to choose a language that meets your needs.
    Programming language is just a tool.
    In my case, C++ is my primary language because I study game software engineering.
    Unmanaged language like C++ is an excellent tool for studying computer science.
    Your capability of solving issues improves if you get used to low-level concepts like pointers, indirection, etc.
    Studying low-level stuff will give you a deep understanding of computer hardware.
    There are so many things you can do with your computer if you know how to utilize it efficiently and correctly.

    • @blitzmensch
      @blitzmensch Před rokem +53

      Unfortunately not everyone understands this, and even today there are programmers doing the Python vs C++ vs any other language war. If you look deeply you can see how most of them are kids or novices thinking they are good and cannot write a single program just by reading documentation. And I think you agree with me

    • @호서대학교이호진
      @호서대학교이호진 Před rokem +21

      The only thing that I hate about C++ is its ancient header file system.

    • @law4percent
      @law4percent Před rokem

      ​@@호서대학교이호진😂😂

    • @mathdantastav2496
      @mathdantastav2496 Před rokem +8

      @@호서대학교이호진 AGREEEE, god that sucks, hate the header file system

    • @grimendancehall
      @grimendancehall Před rokem +5

      but it only.takes 2 minutes to write the same.code in python - says idiots who don't realize bragging about things being easier is one of the biggest weaknesses you can admit

  • @smallfryskilledge1550
    @smallfryskilledge1550 Před rokem +1295

    Finally a C++ video for high intellectual coders like myself

    • @GamerTheTurtle
      @GamerTheTurtle Před rokem +26

      you must be a rick and morty connoisseur like myself

    • @zimap
      @zimap Před rokem +5

      @@GamerTheTurtle i use Wxx and K--- and also R%%

    • @hassaniq0777
      @hassaniq0777 Před rokem +3

      ​@@GamerTheTurtleYESSSS

    • @johnemmanuelbartholomew
      @johnemmanuelbartholomew Před 11 měsíci +5

      lua victims🗿

    • @FlanPoirot
      @FlanPoirot Před měsícem

      I think u meant low intellect
      this video is a low effort "le funnyx which is not even that funny

  • @emperor8716
    @emperor8716 Před rokem +196

    I found your channel yesterday and binged all your Billy videos. So glad to see you upload regularly lol

  • @Drummerx04
    @Drummerx04 Před rokem +358

    Damn, he went straight for the Qt framework as his first C++ flex.
    Generally segfaults are easy to track if you have access to the debugger. Take the stack back to the last viewable frame, then check out which of your pointers is fucked. In many cases fucked just means = 0 lol

    • @stefano_schmidt
      @stefano_schmidt Před rokem +5

      I would like to try some low level stuff, if I had time. All my free time I'm doing C#, trying to complete my first pet project (crud api). But sometimes I feel like I'm doing the children stuff

    • @Drummerx04
      @Drummerx04 Před rokem +35

      @@stefano_schmidt Unfortunately that feeling doesn't really go away. Programming is a fundamentally different experience in modern times.
      Unless you specialize in compiler toolchains or something, you'll likely find yourself working at a pretty high level essentially tying multiple 3rd party libraries together to accomplish your task. Even coding in C++ will be relatively hand holdy with IDE debuggers and whatnot.

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 Před rokem +21

      Nah. Just stick printfs everywhere.

    • @error-my9ut
      @error-my9ut Před rokem +9

      i personally go by placing cout

    • @yacinekunplays5876
      @yacinekunplays5876 Před rokem

      Or forgot to allocate a new memory

  • @red__guy
    @red__guy Před rokem +71

    The video is a bit too fast comparing to previous billy videos
    Stay awesome

    • @MrPSolver
      @MrPSolver  Před rokem +63

      Must be all the C++ ;)

    • @red__guy
      @red__guy Před rokem +6

      @@MrPSolver lol probably,
      And the Valgrind flashbacks brings me to bad times

  • @codewithjc4617
    @codewithjc4617 Před rokem +105

    I code in C++ for a living and is for sure my favorite language, but the second language I like the most is Python; Knowing both allows you to understand the general workflow from native coding to interpreted

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

      Can you help me like after learning c++ and dsa is that all or should I learn more languages?

    • @hetmanfoko
      @hetmanfoko Před 8 měsíci +1

      @@darkshonen4096I know I'm kinda late, however I got the answer. It depends. What do ya wanna do in future? Is c++ and the other one for that enough? If the answer is yes, then you're good to go. If it's a no, you gotta find some language that will be able to do what c++ couldn't (without isanely long implementation of it).

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

      ​@@hetmanfokoCan I ask you so simple question though, what's the thing that C++ is not capable of doing? :)

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

      @@m96fa40 not much. Tho some things might need you to implement a wall of text. So it would be nice to change language to something specialized for that, from time to time :)

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

      @@hetmanfoko Yeah, I agree with you for that, C++ is just so complicated for simple tasks😅

  • @THExRISER
    @THExRISER Před rokem +113

    Boy am I glad I started with C++ as my first language, learning Python after that was an actual walk in the park.

    • @KneeChanGaming
      @KneeChanGaming Před rokem +5

      Lmao thanks for the heads up. I shall main c++ and sidetrack python.

    • @THExRISER
      @THExRISER Před rokem +12

      @@KneeChanGaming Good luck, it won't be easy, I've doing this for years and I'm far from knowing everything about the language.
      If you get overwhelmed, feel free to switch gears to Python and comeback to C++ when you're ready.

    • @KneeChanGaming
      @KneeChanGaming Před rokem +1

      @@THExRISER Indeed. Next semester I know they focus on C so I'm hoping my studies with Python and C++ get me a good head start. Little by little.

    • @THExRISER
      @THExRISER Před rokem +3

      @@KneeChanGaming Good, good.
      It was actually the opposite for me, I studied a bit of C in college so I was already familiar with basic syntax by the time I started C++, giving me a bit of a head start.
      Good luck.

    • @whyuclick8557
      @whyuclick8557 Před rokem +1

      @@THExRISERso I just started c++ a few weeks ago as my first language. What should I expect when I’m like an intermediate or something

  • @yqco6
    @yqco6 Před rokem +13

    The unnecessarily rude and unhelpful StackOverflow reply is so accurate. I have never seen a single question answered on that website. 😭

  • @AraikSarkisyan
    @AraikSarkisyan Před rokem +50

    Can someone explain the ending for non-C++ programmer, please?

    • @bene0817
      @bene0817 Před rokem +68

      Segmentation fault is the error in c++.
      It means you wanted to access memory, that is not part of your program, most likely because you dereferenced a Nullpointer. Most c++ error messages do a terrible job at pointing to where the actual error is

    • @AraikSarkisyan
      @AraikSarkisyan Před rokem +6

      @@bene0817 Thanks

    • @Thorhian
      @Thorhian Před rokem +48

      @@bene0817 I wouldn’t say that it’s a C++ error message, but a message from the OS that you did something illegal and it’s terminating your program. It will happen with any program that does illegal memory ops from the OS’ perspective, albeit C++ allows you to create the conditions for this error far more easily compared to other languages.

    • @isaacgentz3319
      @isaacgentz3319 Před rokem +17

      For context: it's basically the bane of any c++ developer's existence

    • @petrlaskevic1948
      @petrlaskevic1948 Před rokem

      @@bene0817 How does this not prevent buffer overflow attacks?

  • @SASA_maxillo
    @SASA_maxillo Před 7 měsíci +5

    how to scare a C/C++ programmer:
    1. SEGMENTATION FAULT
    that was my biggest enemy when i took CS50x

  • @Hardcore_Remixer
    @Hardcore_Remixer Před rokem +168

    Important thing is that you should start by learning C so you know what C++ actually does for you.

    • @Darqonik
      @Darqonik Před rokem +4

      And then Python, so you know what it actually does for you

    • @marcossidoruk8033
      @marcossidoruk8033 Před rokem +27

      That is: nothing.
      You will realise you can get everything done in C.

    • @Hardcore_Remixer
      @Hardcore_Remixer Před rokem +25

      @@marcossidoruk8033 Yes, but C++ can make it easier and require less to code.
      A simple example is how you pass a variable by reference to a function. In C you need to manually pass the adress of the variable and work with it as a pointer.
      // C++
      void inc(int &x) {
      ++x;
      }
      // C
      void inc(int *x) {
      ++*x;
      }
      Also, the only form of genericity in C is the void pointer and the desallocation of memory is done automatically by the compiler in C++. In C you have to do it yourself (may have a lot to write when you have a big structure).

    • @blitzmensch
      @blitzmensch Před rokem +39

      @@marcossidoruk8033 again, do not assume C is the best for everything. Of course you can do everything in C, but that same principle applies to assembly code, or even better, machine code. Just because you like a language it does not mean it’s the best for everything and that you need to say statements which are objectively false as true.

    • @blitzmensch
      @blitzmensch Před rokem

      @@marcossidoruk8033 and I talk as a mainly C programmer and my favourite language is C.

  • @marshallkimmathers
    @marshallkimmathers Před rokem +46

    This just made me realize the world of pain I'm going into choosing C++ as my first.

    • @fallenstate5933
      @fallenstate5933 Před rokem +1

      Ohh boyyy

    • @theintjengineer
      @theintjengineer Před rokem +20

      Once you get past a point you'll look back and say: huh, I made the right choice.
      I started with C++ and now everything else either looks too ugly or is too slow. I just can't leave C++.

    • @EnderKittynet
      @EnderKittynet Před rokem

      do C instead. its easier

    • @ragarmortis
      @ragarmortis Před rokem +4

      Nah man, it just seems bad at first. Once you learn it then it becomes intuitive and give you a good solid grasp on your code.

    • @jordanlavados1954
      @jordanlavados1954 Před rokem

      I had no choice, it's all they teach me mainly in university xD I had never programmed

  • @Temari_Virus
    @Temari_Virus Před rokem +25

    I started out learning how to code with Scratch, then moved on to Python because it was faster and a "real" programming language, then moved on to C++ because it was even faster and a "real-er" programming language.
    Then I heard that there's this game engine called "Unity" and it uses C#, so I moved on to that and settled for a while until I heard about this new sexy language called "Rust", and then...

    • @arl-t8d
      @arl-t8d Před rokem +4

      Rust sucks

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

      I've skipped C++ and gone straight from Python to C#. The horrors

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

      @@ThatOneGoatGuy c# is more java than C++

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

      @@HippityhoppityGnW I've never coded in java or C++. Only on Scratch, Python, and C#.
      I'm not entirely familiar with many other languages lol 😅

  • @Gremory_666
    @Gremory_666 Před rokem +7

    "In C++ we write everything ourselves"
    Assembly Programmer: "ok"

  • @trimagnus
    @trimagnus Před rokem +30

    GNU Compiler: Why do I hear boss music?

  • @johndorian473
    @johndorian473 Před rokem +23

    Shregory helping the stack exchange community lmao

  • @drygordspellweaver8761
    @drygordspellweaver8761 Před rokem +12

    Python is built on C. The two languages are practically cousins. Cython works nicely

    • @dmitriidemenev5258
      @dmitriidemenev5258 Před rokem

      The most common python implementation. There's also PyPy, Jython, IronPython, RustPython...

    • @nithinrajendran3091
      @nithinrajendran3091 Před rokem +4

      Lol.. cython means devil in my language

    • @jack4.0
      @jack4.0 Před rokem +2

      Python is a C program xD

    • @nasserbenouara9354
      @nasserbenouara9354 Před 4 měsíci

      Exactly even started at same building diffrent floors

  • @xenonGT-ly8he
    @xenonGT-ly8he Před 18 dny +2

    1:18 C++ is really good at scaring people, I was coding c++ in the eductive context but unfortunately it didn't bring anything consistent, however when I started spending more time doing what I like to do during the vacations, that's when I realized I finally did something real

  • @isaacgentz3319
    @isaacgentz3319 Před rokem +8

    The music with the segmentation fault had my dying 😂

  • @marshallsweatherhiking1820

    The most obnoxious part of C++ is making your own templates. The syntax can be really obtuse and easy to forget even if you’ve done it before. Big inheritance trees are also annoying as f*, but I almost never use more than one layer in anything I write.

    • @filippo2185
      @filippo2185 Před rokem +3

      I've always known to avoid multiple inheritance for the diamond problem

    • @marcossidoruk8033
      @marcossidoruk8033 Před rokem

      Big inheritance trees are a problem in every language that supports them, but you have to be retarded to do such things.
      Also templates should be used for basic things like making a function that works for different types, if you use complicated templates you are again asking for trouble.

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

      @@filippo2185 killed many of my projects at a fundamental level, my teacher was overly obsessed with OOP.

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

      That's why C++ is cringe compared to C. Templates are useless bloat

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

      @@slynt_ templates can be incredibly useful, and can be the complete opposite of bloat, and enables c++ to surpass C in speed.

  • @zachsivankeo6721
    @zachsivankeo6721 Před rokem +47

    I’m starting to learn programming and while not a lot of this video made sense to me I think i get the overall message in that c++ is much more difficult than python but worth it once you understand it

    • @squizex7463
      @squizex7463 Před rokem +16

      C++ isn't that hard. I started with python by the accidence, I was seeing tons of memes such as (python user: "you can make everything on python" C++ user: "You can make python on C++") Then I tried C++ and it was welcoming. It was satisfying all my needs. Now I would forget python and never return to it, because this was a huge mistake in my life. So these stereotypes about complexity of C++ are lies. And you as a starter should start with a mixture of python and C++ - C#

    • @nyko-hardcore150
      @nyko-hardcore150 Před rokem

      @@squizex7463 So im learning python and C++ its that ok, or you have any tip pls, thanks :)

    • @squizex7463
      @squizex7463 Před rokem +5

      @@nyko-hardcore150 Its absolutely normal, but it is better to focus on one of them or it won't give a big progress. I mean separate the study like 75% language that you are focused on and 25% other language.

    • @nyko-hardcore150
      @nyko-hardcore150 Před rokem

      @@squizex7463 what language do you reccomend?

    • @squizex7463
      @squizex7463 Před rokem +8

      @NyKo -HARDCORE It depends on what you want to do. If you are a game dev you would learn c++(unreal engine uses c++) or c#(unity), or maybe something else, it depends on a game engine. If you are a game hacker choose c++. If you are a data scientist choose python. And for multipurpose you can learn anything. One tip - read books, practice, if you are using compilers or make (there are many variations of make, you can choose by letter at the beggining e. g. Im using CMake. If you are using game engine, you don't need this shit) read their documentations.

  • @monsieurouxx
    @monsieurouxx Před 7 měsíci +2

    Learn C++23. Disregard every other previous version. Realize it's a lot like C#, or even Rust. Never use a pointer again in your life, never worry about memory. Problem solved.

  • @niggster
    @niggster Před rokem +40

    let me rephrase
    why are those?
    Howling 😂

  • @willowsayswhat9642
    @willowsayswhat9642 Před rokem +6

    I’m learning C++ for my CS degree and I hate it. I have 1800 lines of code to make a simple sports management application in terminal. It’s simply a file I/o with a few switch statements. It is 80% boilerplate code.

    • @XYZW
      @XYZW Před rokem +1

      Sounds like skill issue

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

      Write it as close to pure C as possible instead. How you managed to reach 1800 lines on something that simple, I have no idea. You must be using every "high-level" piece of garbage in the entire C++ language. C++ has a couple of nice features that make it preferable to C for certain purposes. But the vast majority of the abstractions it introduces are useless OOP nonsense.

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

      @@slynt_ yep useless OOP is correct.

  • @sohampatel3784
    @sohampatel3784 Před 7 měsíci +2

    so i have just completed c. what should i do next ? c++ or python. 🙂

  • @rewrose2838
    @rewrose2838 Před rokem +19

    I wanna see Billy learn SOLID or something, more abstract. That's the fun bits.

  • @AndrewBrownK
    @AndrewBrownK Před rokem +18

    This was funny. I program in Rust, btw

  • @mllenessmarie
    @mllenessmarie Před rokem +4

    "maybe i start with C? Then some C+? seems like a naturial progression" - THOSE LINES ARE JUST TOO GOOD

  • @nazlcanozen56
    @nazlcanozen56 Před rokem +3

    That segmentation fault (core dumped) error still chases me on my nightmares

  • @SivaranjanGoswami
    @SivaranjanGoswami Před 7 měsíci +3

    C++ is a great language. I wrote embedded systems, command line tools as well as GUI in C++. But I switched to Python to get a job. I still miss the C++ days.

    • @dipsadhu
      @dipsadhu Před 7 měsíci

      which job you doing?

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

      @dipsadhu I am a Python backend engineer. I write backend apps in Django. And I also write scripts for processing data.

    • @dipsadhu
      @dipsadhu Před 7 měsíci

      @@SivaranjanGoswami how much you earn?

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

      @@dipsadhuSalary is not straightforward in the IT industry. I have worked really hard in the last 4 years and I am consistently getting good increments.

    • @dipsadhu
      @dipsadhu Před 7 měsíci

      @@SivaranjanGoswami woahhh, thanks for your advice 👍

  • @carlosalbertoalvarezvelasc3029

    I used to code in C in order to customize a CFD process in Fluent... though we are talking about C++, a chill goes through my spine when I saw the segmentation fault error... Jesus.

  • @kevinzebb
    @kevinzebb Před rokem +16

    C++ pro here, and yes it’s the best language. Wait till billy finds out about Lvalues, Rvalues, Xvlaues, Rvalue ref, Lvalue ref, move semantics, etc…

    • @blitzmensch
      @blitzmensch Před rokem +3

      It’s the best indeed, but every language has it’s own pros and of course cons. Mathematicians as an example do not want to study a whole programming language and standard library just to make a simple experiment (even then I think it would be easier to just study C++ over something as Python but that’s an opinion)

    • @Eren_Yeager_is_the_GOAT
      @Eren_Yeager_is_the_GOAT Před rokem +3

      Chad programmer right here

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

      All of that stuff is inefficient crap so babies don't make mistakes. Write in C.

  • @anon-fz2bo
    @anon-fz2bo Před rokem +7

    tbh c++ 17 and above has many functions and abstractions included in modern languages.

  • @doodymagoo2354
    @doodymagoo2354 Před rokem +4

    Playing that orchestral piece during segmentation faults should be a standard IDE feature

  • @EngineeringLife0
    @EngineeringLife0 Před rokem +2

    We need more of this content! Amazing, your channel will blow up

  • @silviodossantosneto6665
    @silviodossantosneto6665 Před rokem +9

    I just realized, Shregory is the future of ChatGPT 😂

  • @mrslashx
    @mrslashx Před rokem +9

    2:05 любимая ошибка C++ программистов

  • @ezekieloruven
    @ezekieloruven Před rokem +6

    Am I the only person who likes Python and C++? Isn't it easy to use C++ to build extensions for CPython? I mean maybe it is being in game development but I have used them both in production.

    • @kjgoebel7098
      @kjgoebel7098 Před měsícem

      You are not. I started (more or less) with C++, and learned Python as a teenager, and they're both very good tools in their respective domains. I do also enjoy the game dev.

  • @r1ain.602
    @r1ain.602 Před 3 měsíci +2

    Tbh programming is easy, the real hard part is hardware.
    -dave, an electronic engineer

  • @Antagon666
    @Antagon666 Před rokem +3

    If you need high level language that doesn't run like crap, just use c#.

  • @LeonardoCenovicz
    @LeonardoCenovicz Před rokem +2

    I hate that thinking about "ranking" languages LOL

    • @w2FCQugGMSt5YYF6
      @w2FCQugGMSt5YYF6 Před rokem

      Me too, it's like comparing a hammer and a screwdriver

  • @m.a8335
    @m.a8335 Před rokem +4

    Refactor Billy in Rust

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

    I started learning c++ a while ago and it was the most welcoming language right from the start. Everything just makes sense.

  • @onyinyechichukwuma689
    @onyinyechichukwuma689 Před rokem +5

    👀 I'm exactly like this!! I trash every other language.
    Never knew it was a C++ developer thing. 😂

  • @AfternoonWolf
    @AfternoonWolf Před 3 měsíci

    This has no reason to be that good. Some lines are pure gold

  • @saisagarsingh3340
    @saisagarsingh3340 Před rokem +7

    fr
    segmentation fault core dumped is worst can happen

    • @Yougottacryforthis
      @Yougottacryforthis Před rokem

      literally just gdb the shit outta it

    • @Thorhian
      @Thorhian Před rokem

      @@Yougottacryforthis Valgrind is pretty useful for tracking memory errors as well.

    • @Qwerty-lp1fz
      @Qwerty-lp1fz Před rokem +3

      Actually getting undefined behavior that accidentally doesn't crash but affects program's logic in a weird way is even worse :D

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 Před rokem

      I used to debug those on unprotected OSes, where they would crash the entire system.
      Hours spent in MacsBug ... fun times ...

  • @sephalopod
    @sephalopod Před 8 měsíci +1

    You know if you want to be faster then a C++ coder. You have to be a rust programmer, or a zig programmer (because in all tests these are the two fastest programming languages).

    • @slynt_
      @slynt_ Před 6 měsíci +1

      That is not correct. Tests show C as the fastest high-level language.

  • @Cargren18
    @Cargren18 Před rokem +6

    In comparison I had more fun in C++ than Python. I recently stopped doing python and started C++(I left python just 2 days before this comment).

    • @thecoolnewsguy
      @thecoolnewsguy Před rokem +4

      It's because python most of the time:
      import some_shit from that_shit
      Making programming boring

    • @Tealen
      @Tealen Před rokem +2

      ​@@thecoolnewsguy so true 😂

    • @Cargren18
      @Cargren18 Před rokem +2

      ​@@thecoolnewsguy definitely agreed

  • @at-sushi
    @at-sushi Před 8 měsíci +1

    I think the most thing beloved by C++ers is memory preciseness.

  • @flutterwind7686
    @flutterwind7686 Před rokem +3

    Actually IMO cpp devs prefer python over other dynamic langs

  • @BlockiestfiberMax
    @BlockiestfiberMax Před 10 měsíci +1

    Que ironia pero se puede usar python dentro de C++ y viseversa xd, ademas si se usa python dentro de C++ tambien se puede importar como dll para usarlo con C# asi que tenes como 4 lenguajes en una misma aplicacion

  • @turrnut
    @turrnut Před rokem +3

    "Thy code shall segfault."
    --Bjarne Stroustrup

  • @CptJackass325
    @CptJackass325 Před 10 měsíci +1

    Finally found it, what's been keeping me up at night for MONTHS
    Emotional Mess -Amy Lynn & The Honey Man

  • @krishna290gamer2
    @krishna290gamer2 Před rokem +3

    Me: an intermediate in python
    Started the basics of C++
    Switched to Arduino
    And now... I choose death by seeing my elder brother's C++ college question paper

  • @rmt3589
    @rmt3589 Před 11 měsíci +1

    But, what if we use Python as a scripting language for C++?

  • @nbamaniac
    @nbamaniac Před rokem +6

    I'm with Billy I hate all those stars

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

    Very true. I use Python for machine learning and recently started getting into C++. Jesus Christ do I want to cry sometimes.

  • @liveitout
    @liveitout Před rokem +4

    Yo... Python isn't that slow...
    It's slower in milliseconds, (Not like 10 or 20 second slow😂)
    the average user cannot notice the difference between the speeds over functionality.

    • @Eren_Yeager_is_the_GOAT
      @Eren_Yeager_is_the_GOAT Před rokem +1

      Python is litterly 25 times slower than c++ so in smaller programs where python is still almost instant it’s not that much different but the speed of c++ comes in really handy in heavy programs

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

    The question lies in whether you want to torture yourself or you want a more optimised code. And the answer is the same: C++

  • @FidosTeasers
    @FidosTeasers Před rokem +3

    Me: Likes Python and C++ and uses Booth.

    • @Cargren18
      @Cargren18 Před rokem

      Same😊. But I like C++ slightly more than Python as Python is just too simple.

  • @somerandomchannel2669
    @somerandomchannel2669 Před měsícem

    As a c coder, using c++ and oop is slow and inefficient, c allows you to leak memory much faster

  • @matteopiccioni196
    @matteopiccioni196 Před rokem +5

    C++ is complex AF

    • @blitzmensch
      @blitzmensch Před rokem

      The language itself is not too much complex. You can learn everything in less than a week. The main problem is the size of the CPP standard library

  • @adlzinn
    @adlzinn Před rokem +1

    Bro, i was trying to learn python and cpp at the same time some weeks ago, this video is just SO MUCH REAL

  • @FriedMonkey362
    @FriedMonkey362 Před rokem +4

    As a c# user (close enough i geuss) the more i try to learn c++ the more i want to kiII myself
    C++ syntax is confusing c# is easy syntax and it just makes sense
    Like in c++ why would reading from console randomly have >> in c# its just a built in function that returns a string
    And the dumass namespaces like why use std:: in c# its just another . std.ReadLine();
    std::cin >> input
    Oh an in c++ you cant declare and input in the same line
    string input = Console.ReadLine();
    string input;
    std::cin >> input;
    C++ sucks and makes no sense for braindead people like me

    • @torphedo6286
      @torphedo6286 Před rokem

      The cin / cout > syntax is pretty dumb, yeah. If you want something more similar to WriteLine you can use the C function printf from stdio.h instead. The stdio input functions from C will still require you to create the variable first, though. It's because it takes a pointer/reference to the variable so it knows where to write the input data to. It allows you to read data into existing buffers and control the allocation yourself.

    • @Thenamesjohnnymeow
      @Thenamesjohnnymeow Před rokem +1

      Yeah, C++ is one huge bloated pile of trash. Plain C is still the best. We're so lucky Stoustrup didn't get his wish to merge the two. I am starting to move more towards Rust because the community is nicer and the ecosystem makes work in Rust so much easier. But ODIN tho - that I like.

    • @megamozgs9959
      @megamozgs9959 Před rokem

      Just learn C if you dont like the syntax, but

  • @jktech2117
    @jktech2117 Před rokem +1

    well a opengl book i bought this year is actually 20 years old, so extremely accurate
    the book is: computação gráfica - geração de imagens

  • @dbneptune
    @dbneptune Před rokem +14

    C++ is actually the best programming language
    if your goal is suffering (I know from experience)

    • @blitzmensch
      @blitzmensch Před rokem

      It depends on how good you are at it.

    • @dmitriidemenev5258
      @dmitriidemenev5258 Před rokem +2

      ​​@@blitzmensch So you think it's okay to invoke a function that isn't even referenced anywhere at startup time?
      C++ makes it possible.

    • @blitzmensch
      @blitzmensch Před rokem

      @@dmitriidemenev5258 self modifying code or what? I could not get what you were talking about

    • @dmitriidemenev5258
      @dmitriidemenev5258 Před rokem

      @@blitzmensch static is the secret sauce.

    • @blitzmensch
      @blitzmensch Před rokem

      @@dmitriidemenev5258 afaik (in C) static only means a function cannot be seen from other source files, and also to make variables last throughout different function calls

  • @vjacobvhs
    @vjacobvhs Před 7 měsíci

    wow i actually genuinely chuckled at something for the first time in a while. it has to be just my brain's defence mechanism with all the flashbacks to c++

  • @itsme-we4ub
    @itsme-we4ub Před 5 měsíci +3

    Python: pointers are pointless 😂
    C++ : can you please write a function to swap two variables for me
    Python: yes... ok, wait, nope 😅

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

      because python does not need a function for something so trivial. thats a one liner a,b = b,a

  • @sc2sc286
    @sc2sc286 Před rokem +2

    Personally I prefer to just tear my hardware open and magnetize the memory myself

  • @matthewmatthew2946
    @matthewmatthew2946 Před 9 měsíci +3

    As someone who codes in C++, I can confirm that most of the comment section has no clue what they are talking about

  • @p-ocorriveau6792
    @p-ocorriveau6792 Před rokem +1

    segmentation fault is a short description of c++

  • @alexestefan7521
    @alexestefan7521 Před rokem +6

    C++ is good if you basically only use c stuff (no classes, no templates).

    • @cygniomega8322
      @cygniomega8322 Před rokem

      sure mate

    • @brennethd5391
      @brennethd5391 Před rokem

      Damn same profile picture.

    • @marcossidoruk8033
      @marcossidoruk8033 Před rokem

      I agree up to an extent.
      You can use classes and templates just done be an idiot about it. Keep your code C style, that is, (relatively) simple, procedural and explicit.

    • @blitzmensch
      @blitzmensch Před rokem +1

      C++ without classes and templates is C. And from what you said I’d say you are a programmer who only saw 10 tutorials which cover stuff which is the same on both C and C++.

    • @marcossidoruk8033
      @marcossidoruk8033 Před rokem

      @@blitzmensch my man is the living meme.

  • @On.Jonathan
    @On.Jonathan Před rokem +1

    C/C++ is(are) my native programming language and I'm pretty much happy to say that for many reasons, we love C++... ( I also love C# by the way.)

  • @heisenbergstayouttamyterri1508

    C++ is awsome, but people who use it are not. They're toxic.
    Different languages were made for different reasons...
    Python for ML,DL and IoT, JS for Web dev, C++ for System and game dev....
    There is no so called "Best Language" in the world....

    • @DOOT_II
      @DOOT_II Před rokem

      ^

    • @BukanChurchill
      @BukanChurchill Před rokem

      I feel like every programming community is toxic. Just look at the Rust vs C++ bullshit, it looks like a warzone.

  • @antony74416
    @antony74416 Před rokem +2

    pointers exist because functions in C can't return arrays,structs,strings,functions etc ONLY numbers

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

      aka, if you use c in cpp

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

      .... What? Sir, has anyone ever explained to you the difference between return-by-value and return-by-reference? Please, please tell me you know what this means

  • @Solaris5000
    @Solaris5000 Před rokem +4

    еюать я ору какая же жиза

  • @pvi-axe
    @pvi-axe Před měsícem

    I understand Seg fault is scary but have you ever tried using Map and put extra > or forgot one... that stacktrace is just CPP being indian daily soap drama 🤣

  • @childrens_casino
    @childrens_casino Před rokem +5

    Imagine using c++, nonsense language full of things one dont need that only complicates. C is the true elite language, with its simplistic ruleset to follow that can be built to expand in any direction as long as you can take it there

    • @itsalongday
      @itsalongday Před rokem +6

      Real men use assembly all the time for everything

    • @blitzmensch
      @blitzmensch Před rokem

      @@itsalongdaybetter to program in machine code. I did it 😊

    • @blitzmensch
      @blitzmensch Před rokem +2

      The same could be said of Pascal if only it had a decent compiler and standart

    • @rrohitamalan
      @rrohitamalan Před rokem

      And yet C++ is a betterment of C.

    • @blitzmensch
      @blitzmensch Před rokem +2

      @@rrohitamalan not really. You should consider them separate languages made for different purposes nowadays. C and Pascal can be used for Kernel development as an example, as they are very fast (Pascal has bad compilers though) while C++ for Kernel development is completely useless for it’s lack of the standard library in freestanding mode. Classes alone aren’t gonna make C++ better than C in Kernel dev. Of course on windows and linux C++ is great and I personally use it for game development. It really depends on what you want to do with the language. Thinking that way Python is great too for novice programmers or mathematicians who don’t want to learn a real programming language. Remember that you can also OOP in C if you know it very well.

  • @Bl0xxy
    @Bl0xxy Před 8 měsíci +1

    as somebody who enjoys c++, i have a lot of respect for python as it gives me the breaks i need and it's also fun

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

      I feel like pythons harder then c++ 💀💀💀 it's too simple i expect more from my language (like types)

    • @Bl0xxy
      @Bl0xxy Před 7 měsíci

      ​@@tweetyguy7347
      Python has types, and you can do type hinting like this
      my_int: int = 5
      my_string: str = "Hello"
      and for methods,
      def myBool() -> bool: pass

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

      @@tweetyguy7347 type hints

  • @caddr
    @caddr Před rokem +4

    nah bro, i prefer Rust, c++ is ugly

  • @kinershah464
    @kinershah464 Před 4 měsíci

    Billy forgets that Python also has * used for something else though. And lol that Pain theme music.

  • @adreto2978
    @adreto2978 Před 8 měsíci +1

    Anyone who watches these videos is a first year Comp Sci student who understands nothing about programming.

  • @PostLinuxoid
    @PostLinuxoid Před 9 měsíci +2

    Python coders be like: from import import import as import

  • @enigmatico6209
    @enigmatico6209 Před rokem

    I do Python and C and I can assure you, I ain't touching C++ ever. I'd rather code in Rust.

  • @jpjph5006
    @jpjph5006 Před rokem +1

    I would take c++ all day any day over python.

  • @49erman2
    @49erman2 Před 9 měsíci

    these are always so much fun to watch as a newer programmer

  • @wolfgaming3023
    @wolfgaming3023 Před 4 měsíci +1

    I use C# because it isn’t complete and utter hell

  • @BigJMC
    @BigJMC Před rokem +1

    I write in assembly, trynna do a 100% completionist run.

  • @umarovmuhammadsolih618
    @umarovmuhammadsolih618 Před rokem +1

    I am python developer learning C and C++. Wish me luck guys!

    • @seranom
      @seranom Před rokem

      Good luck. You will need it.

  • @C-mirror
    @C-mirror Před rokem +1

    1:29 discord's markdown parsing removes some asterisks and italicizes some text

  • @csibesz07
    @csibesz07 Před rokem +1

    std::trash(std::move(python)); 🧂