...
these have nothing in common with eachother other than "it contains multiple things"
Anonymous
For example?
I'm talking about not OS development or something
Anonymous
klimi
Anonymous
I don't think you have an experience of teaching, @ff_0x1d3
...
okay, so tell me one reason you would actually tell a beginner about a vector before telling them what an array is?
Anonymous
Mat
For example?
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
Avezy
...
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"
Mat
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
klimi
if you think so....
Anonymous
Mat
...
how is "hey i have multiple variables behind eachtother" harder to understand than "yea this is a vector, you can initialise it with default values, or add something at the end"
...
this is not what arrays are made for
klimi
it defeats the purpose of having low level lang
klimi
just program in scratch
Anonymous
if you think so....
I know so
I have some experience if teaching
And I tried the both ways
Crush_my_love
If C is so hard to newbies, why then not teach them python instead of C++ ??
klimi
Anonymous
...
i can also use your super-argument for that
...
"its easier to learn"
...
its the same shit as teaching people to use "using namespace std;"
it *can* work, but wont if the project gets bigger than 10 files
...
literally the first point in every tutorial should be "do not use "using namespace std;""
Daniele
Crush_my_love
Anonymous
I teach how vector works after then they learned how to use it
And I think it's the right way
Anonymous
Anonymous
...
no i dont, because its simpler than a vector in EVERY aspect possible
Anonymous
...
yes it is
...
you straightup tell people "arrays are fixed size, you cant change it"
...
problem solved
Anonymous
My students don't think so
You think it's easy because you know it
Avezy
People learn Differently Not everyone is the Same
Some learn easier by actually seeing results and Not Just some console Output
Also yeah for a total beginner vector is easier to use they no need to specify the size before hand and the Compilers are pretty good at optimizing it
You actually need interest in programming with the language and showing total beginners that they can achieve Something is Motivating
Crush_my_love
So there is no point of idea that C++ hides some C's complexity(btw C++ add their own complexity), bc if evaluate your logic then any newbie just should stick with JS or python, bc it hides all the complexity at all.
...
klimi
everything is HARD
Anonymous
problem solved
And then you need to reallocate stuff etc
Working with C strings is also so fucking easy, yeah
Dima
Dima
...
Anonymous
Crush_my_love
klimi
Anonymous
klimi
finally i will be a programmer
Anonymous
Asm Is So EaSy yeah
Anonymous
Is easier than C
Anonymous
Let's teach it first
klimi
i would teach machine code first
...
so tell me, how is a vector simpler than an array?
without going into "reallocating stuff" (which isnt going to happen if you tell people "arrays are fixed size") it is simpler in any aspect
Anonymous
The discussion is over
Mat
I loved Assembly lessons and understood various stuff thanks to them
Avezy
You dont seem to Unterstand that some people start learning languages Like c++ and dont even Unterstand what an if Statement does
From the perspective of someone that can Programm in the language or in General knows programming logic everything seems way easier
Botir
C and C++ are different languages.
I am agree that C first then C++ is not good idea.
Also C++ first then C# is not good idea too.
Mat
Anonymous
klimi
Mat
Botir
But they teach it in this sequense
klimi
people who dont like computers will find them hard put thats like for everything
klimi
Botir
Crush_my_love
...
just because the syntax is c-like it doesnt mean the languages are close