@@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.
"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.
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 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.
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...
"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.
@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.
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
@@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.
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.
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.
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.
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.
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
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
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
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
@@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.
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
@@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 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 :)
@@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 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.
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
@@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.
@@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).
@@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.
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++.
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...
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
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.
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.
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
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 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 -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.
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.
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.
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.
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.
@@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.
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.
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)
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.
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.
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).
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
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
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.
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
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
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.
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.
@@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
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++
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.
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++.
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....
.... 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
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 🤣
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
@@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.
@@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
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
Python already consumes as much memory as C++ leaks all over on the floor, so no.
a = list(range(9999999999999999999999))
if you're using C++ right you won't have memory leaks
you fool, any language can leak memory, including Python.
@@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.
This guy is basically the smart version of Beluga.
I would say that it is the programming version of beluga.
It's the cheap rip off of beluga, not even half as funny
@@esfera2181 beluga wasnt even remotely close to funny. Only made corny ass jokes.
@@esfera2181In which world is beluga funny though?
@@notoriog from 138 million alternate timelines there was none where Beluga was funny.
"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.
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.
@@frankluvsu21 Dude. That's like lvl 9000.
Also nobody is rich enough to own a chip factory.
@@daxasd3270 nah, I'm Elon's 6th son and I own 20 different chinese chip factory.
@@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.
Dang, as a new Python dev mostly still learning about coding, I salute you mr. Binary dev
As someone who has coded in C++, I can confirm that our biggest fear is Segmentation Fault.
I would rank undefined behaviour above that
@@IAmNotASandwich453 I would rank VTable errors that your compiler and linker didn't catch above that.
yes...
What about C enjoyers?
@@IAmNotASandwich453 it is only scary when you are trying to debug a program or work with the memory
I feel just so slightly offended as a C++ developer
Python is so slow 👋
I’ve had to handle segfaults in both Python and C++ code. Maybe it’s the kind of Python code I write ...
@@henriquenogueira31 Python is just inadequate for embedded systems
Did your core dump
You're a ground above
Most Python users prefer death over C++
Edit: This is the first time I got 1k likes. Feels nice
at least you do not have to code in c++ when you are dead.
And most C++ users prefer death over Python
@@zineelabidinebelkadi2202 totally agree
@@Richardo2928 wait, what?
I started with c++ and then switched to python, cause I want to work in AI. Python is so fricking easy hahaha
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...
"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.
@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.
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
@Himanshu Sharma what are you talking about, systems languages or compiled languages like c/cpp and rust require crazy amounts of debugging
This whole comment section is worthy of a video if it's own.
Maybe i start with C?
Then some C+?
Life could be a dream, life could be a dreaaaaam
that was actually my thought process as someone who is just now learning how to code :D
Yeah starting on C is very reasonable, it's a lot simpler unless you need the higher-level strings or maps or something.
@@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.
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.
@@ccgarciab We should keep C++ as it is and develop C+++ from there
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.
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.
That sounds like a tough experience 😮
I wish I was good at physics but nope, I'm only good at math lol
Just finish the presentation before stack overflow comes up
Maybe you are simply not a good developer.
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.
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
The only thing that I hate about C++ is its ancient header file system.
@@호서대학교이호진😂😂
@@호서대학교이호진 AGREEEE, god that sucks, hate the header file system
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
Finally a C++ video for high intellectual coders like myself
you must be a rick and morty connoisseur like myself
@@GamerTheTurtle i use Wxx and K--- and also R%%
@@GamerTheTurtleYESSSS
lua victims🗿
I think u meant low intellect
this video is a low effort "le funnyx which is not even that funny
I found your channel yesterday and binged all your Billy videos. So glad to see you upload regularly lol
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
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
@@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.
Nah. Just stick printfs everywhere.
i personally go by placing cout
Or forgot to allocate a new memory
The video is a bit too fast comparing to previous billy videos
Stay awesome
Must be all the C++ ;)
@@MrPSolver lol probably,
And the Valgrind flashbacks brings me to bad times
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
Can you help me like after learning c++ and dsa is that all or should I learn more languages?
@@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).
@@hetmanfokoCan I ask you so simple question though, what's the thing that C++ is not capable of doing? :)
@@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 :)
@@hetmanfoko Yeah, I agree with you for that, C++ is just so complicated for simple tasks😅
Boy am I glad I started with C++ as my first language, learning Python after that was an actual walk in the park.
Lmao thanks for the heads up. I shall main c++ and sidetrack python.
@@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.
@@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.
@@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.
@@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
The unnecessarily rude and unhelpful StackOverflow reply is so accurate. I have never seen a single question answered on that website. 😭
Can someone explain the ending for non-C++ programmer, please?
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
@@bene0817 Thanks
@@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.
For context: it's basically the bane of any c++ developer's existence
@@bene0817 How does this not prevent buffer overflow attacks?
how to scare a C/C++ programmer:
1. SEGMENTATION FAULT
that was my biggest enemy when i took CS50x
Important thing is that you should start by learning C so you know what C++ actually does for you.
And then Python, so you know what it actually does for you
That is: nothing.
You will realise you can get everything done in C.
@@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).
@@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.
@@marcossidoruk8033 and I talk as a mainly C programmer and my favourite language is C.
This just made me realize the world of pain I'm going into choosing C++ as my first.
Ohh boyyy
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++.
do C instead. its easier
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.
I had no choice, it's all they teach me mainly in university xD I had never programmed
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...
Rust sucks
I've skipped C++ and gone straight from Python to C#. The horrors
@@ThatOneGoatGuy c# is more java than C++
@@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 😅
"In C++ we write everything ourselves"
Assembly Programmer: "ok"
GNU Compiler: Why do I hear boss music?
Shregory helping the stack exchange community lmao
Python is built on C. The two languages are practically cousins. Cython works nicely
The most common python implementation. There's also PyPy, Jython, IronPython, RustPython...
Lol.. cython means devil in my language
Python is a C program xD
Exactly even started at same building diffrent floors
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
The music with the segmentation fault had my dying 😂
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.
I've always known to avoid multiple inheritance for the diamond problem
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.
@@filippo2185 killed many of my projects at a fundamental level, my teacher was overly obsessed with OOP.
That's why C++ is cringe compared to C. Templates are useless bloat
@@slynt_ templates can be incredibly useful, and can be the complete opposite of bloat, and enables c++ to surpass C in speed.
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
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#
@@squizex7463 So im learning python and C++ its that ok, or you have any tip pls, thanks :)
@@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.
@@squizex7463 what language do you reccomend?
@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.
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.
let me rephrase
why are those?
Howling 😂
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.
Sounds like skill issue
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.
@@slynt_ yep useless OOP is correct.
so i have just completed c. what should i do next ? c++ or python. 🙂
D ++
I wanna see Billy learn SOLID or something, more abstract. That's the fun bits.
This was funny. I program in Rust, btw
And I use arch
"maybe i start with C? Then some C+? seems like a naturial progression" - THOSE LINES ARE JUST TOO GOOD
That segmentation fault (core dumped) error still chases me on my nightmares
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.
which job you doing?
@dipsadhu I am a Python backend engineer. I write backend apps in Django. And I also write scripts for processing data.
@@SivaranjanGoswami how much you earn?
@@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.
@@SivaranjanGoswami woahhh, thanks for your advice 👍
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.
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…
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)
Chad programmer right here
All of that stuff is inefficient crap so babies don't make mistakes. Write in C.
tbh c++ 17 and above has many functions and abstractions included in modern languages.
Playing that orchestral piece during segmentation faults should be a standard IDE feature
We need more of this content! Amazing, your channel will blow up
I just realized, Shregory is the future of ChatGPT 😂
2:05 любимая ошибка C++ программистов
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.
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.
Tbh programming is easy, the real hard part is hardware.
-dave, an electronic engineer
If you need high level language that doesn't run like crap, just use c#.
I hate that thinking about "ranking" languages LOL
Me too, it's like comparing a hammer and a screwdriver
Refactor Billy in Rust
I started learning c++ a while ago and it was the most welcoming language right from the start. Everything just makes sense.
👀 I'm exactly like this!! I trash every other language.
Never knew it was a C++ developer thing. 😂
This has no reason to be that good. Some lines are pure gold
fr
segmentation fault core dumped is worst can happen
literally just gdb the shit outta it
@@Yougottacryforthis Valgrind is pretty useful for tracking memory errors as well.
Actually getting undefined behavior that accidentally doesn't crash but affects program's logic in a weird way is even worse :D
I used to debug those on unprotected OSes, where they would crash the entire system.
Hours spent in MacsBug ... fun times ...
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).
That is not correct. Tests show C as the fastest high-level language.
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).
It's because python most of the time:
import some_shit from that_shit
Making programming boring
@@thecoolnewsguy so true 😂
@@thecoolnewsguy definitely agreed
I think the most thing beloved by C++ers is memory preciseness.
Actually IMO cpp devs prefer python over other dynamic langs
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
"Thy code shall segfault."
--Bjarne Stroustrup
Finally found it, what's been keeping me up at night for MONTHS
Emotional Mess -Amy Lynn & The Honey Man
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
But, what if we use Python as a scripting language for C++?
I'm with Billy I hate all those stars
Very true. I use Python for machine learning and recently started getting into C++. Jesus Christ do I want to cry sometimes.
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.
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
The question lies in whether you want to torture yourself or you want a more optimised code. And the answer is the same: C++
Me: Likes Python and C++ and uses Booth.
Same😊. But I like C++ slightly more than Python as Python is just too simple.
As a c coder, using c++ and oop is slow and inefficient, c allows you to leak memory much faster
C++ is complex AF
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
Bro, i was trying to learn python and cpp at the same time some weeks ago, this video is just SO MUCH REAL
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
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.
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.
Just learn C if you dont like the syntax, but
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
C++ is actually the best programming language
if your goal is suffering (I know from experience)
It depends on how good you are at it.
@@blitzmensch So you think it's okay to invoke a function that isn't even referenced anywhere at startup time?
C++ makes it possible.
@@dmitriidemenev5258 self modifying code or what? I could not get what you were talking about
@@blitzmensch static is the secret sauce.
@@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
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++
Python: pointers are pointless 😂
C++ : can you please write a function to swap two variables for me
Python: yes... ok, wait, nope 😅
because python does not need a function for something so trivial. thats a one liner a,b = b,a
Personally I prefer to just tear my hardware open and magnetize the memory myself
As someone who codes in C++, I can confirm that most of the comment section has no clue what they are talking about
segmentation fault is a short description of c++
C++ is good if you basically only use c stuff (no classes, no templates).
sure mate
Damn same profile picture.
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.
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++.
@@blitzmensch my man is the living meme.
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.)
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....
^
I feel like every programming community is toxic. Just look at the Rust vs C++ bullshit, it looks like a warzone.
pointers exist because functions in C can't return arrays,structs,strings,functions etc ONLY numbers
aka, if you use c in cpp
.... 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
еюать я ору какая же жиза
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 🤣
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
Real men use assembly all the time for everything
@@itsalongdaybetter to program in machine code. I did it 😊
The same could be said of Pascal if only it had a decent compiler and standart
And yet C++ is a betterment of C.
@@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.
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
I feel like pythons harder then c++ 💀💀💀 it's too simple i expect more from my language (like types)
@@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
@@tweetyguy7347 type hints
nah bro, i prefer Rust, c++ is ugly
Billy forgets that Python also has * used for something else though. And lol that Pain theme music.
Anyone who watches these videos is a first year Comp Sci student who understands nothing about programming.
Python coders be like: from import import import as import
I do Python and C and I can assure you, I ain't touching C++ ever. I'd rather code in Rust.
I would take c++ all day any day over python.
these are always so much fun to watch as a newer programmer
I use C# because it isn’t complete and utter hell
I write in assembly, trynna do a 100% completionist run.
I am python developer learning C and C++. Wish me luck guys!
Good luck. You will need it.
1:29 discord's markdown parsing removes some asterisks and italicizes some text
std::trash(std::move(python)); 🧂