...
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
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?
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
she also tells beginners to use vectors instead of arrays, at this point, this just teaches people how to write terrible code..
So its basically too simplified Like yes vector is usually the best choice but you should still know your Containers
Mat
Because it's easier to use
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"
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
Anonymous
but why would you teach people to "use" the wrong thing for most stuff theyre using
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
klimi
if you think so....
...
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++ ??
...
i can also use your super-argument for that
Crush_my_love
Because dynamic type system is 🤢
but it hides all complexity, and it seemed you are all for it.
...
"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;""
Anonymous
but it hides all complexity, and it seemed you are all for it.
It hides the complexity, yes But it makes them more stupid and it's harder to switch to the static type system then
Crush_my_love
It hides the complexity, yes But it makes them more stupid and it's harder to switch to the static type system then
idk, I started my journey from javascript, now i'm learning C and asm, and I'm fine with it
Anonymous
I teach how vector works after then they learned how to use it And I think it's the right way
...
It hides the complexity, yes But it makes them more stupid and it's harder to switch to the static type system then
and all you're saying is exactly the same. if you dont teach people how basic stuff like an array works, they wont understand it, because they (( sort of )) understand how a vector works.
Crush_my_love
I'm talking about the average person
I just wanna say that, if this average person want something easier to write, they will never choose C or C++ anyways.
...
no i dont, because its simpler than a vector in EVERY aspect possible
...
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
...
And then you need to reallocate stuff etc Working with C strings is also so fucking easy, yeah
no its just that you shouldnt teach people about that container stuff at first at all
Anonymous
who are your "students"
University students that didn't have any programming experience before
Crush_my_love
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
Mat
I would teach them assembly language first
That would be a nice idea if they're interested
...
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.
Anonymous
I loved Assembly lessons and understood various stuff thanks to them
They are useful when you know something already
Anonymous
its "C-like"
JavaScript is also C-like, so what?
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
C# isn't even related to C/Cpp at all 😆
But they teach it in this sequense
Crush_my_love
people who dont like computers will find them hard put thats like for everything
these people will stick anyway with python or js at the end.
...
just because the syntax is c-like it doesnt mean the languages are close