Message from C, C++ discussions

December 2019

— Because it's easier to use


Simple apps? Kernels? The gnome project?

And C is really stupid to learn. You can use it to introduce people to the basics of programming as loops, memory management and other stuff while keeping the complexity low

— But why would you teach people to "use" the wrong thing for most stuff theyre using

— The stl features a big collection of containers, and without having a good reason, beginners should know what an array is

Message permanent page

— So its basically too simplified
Like yes vector is usually the best choice but you should still know your Containers

Message permanent page

— That's not a reason from a learning point of view 🤔

— Also how the fuck is a vector "easier to use" than an array?
an array is literally just "put multiple variables behind eachother and have an index to access them"

Message permanent page

— It onv depends on what you want to achieve. If you only want to learn Cpp, just use it. In that case I suppose you are already familiar with programming and learning C will not be very useful

Message permanent page

— Dude, It doesn't work that way
At first, you don't need to know how it works before using
At first we teach how to use
Then we teach how it works
And it's MUCH simpler for beginners to understand

Message permanent page

— If you think so....

— Because you don't need to reallocate memory when you need more space, lol

— The usage of an array is really simpler than the vector one 😂