Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
D--M22687yI find the best way to teach C++ is to teach C first in one big ol file, then make them experience the hurt of trying to fix a bug or organise code.
-
@D--M Begone Satan!
@JJonekK Welcome to devRant! Keep teaching him and you'll have plenty of rants. (So I suggest don't lol.) -
@D--M why not just write C++ in a single file? I just don't see the point in learning C first when you want to learn C++
-
D--M22687y@Krokoklemme
I say C, what I really mean is the basics, so no classes, no being spoiled by standard library things or new features (vectors, strings, etc)
In terms of teaching, its much better to allow the student to come to the conclusion of "o, i wish i could organise this data in a certain way" then to tell them outright how to do things. Its better to let them experience the fuckery, let them try and solve it themselves and once they have a solution, then present them another solution and let them decide objectively what to do. -
*helps friend understand what the heck is going on in the basic C class for 5 hours straight*
*friend goes to the exam and gets a 0*
OH FOR FUCKS SAKE! -
@D--M and you can't do any of those in C?
Anyway, I'll just leave this here https://youtu.be/YnWhqhNdYyk -
@kenogo He told me he knows basics about classes, just lacks practical usage of them.
As soon as I've shown him that classes don't magically include themselves into main cpp file, he got mindblown.
Not to mention his surprise that you need to have a 'main' function in order for your program to work. -
@farkaskid Come on, the autocomplete only adds 4 lines,
bracket
contructor prototype
destructor prototype
bracket
He knew both of these so we skipped it with autocompletion.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Me being a good collegue teaching my friend basic C++ for upcoming exam and trying my best not tore my friend apart.
Crime scene: university's library, today, 1PM.
Me: Create a new class, just type 'class' and hit TAB
Him: I'm trying to but it pastes some code
Me: That's the point of hitting TAB.. now that we are finished, include it in your main file, the one with main entry point
Him: I have no such thing
Me: Look for main function
Him: There's none, what is it called?
Me: ...main
Him: Yeah, what is it called?
Me: ..main, the name is main
Him: I get it, but what is it called?
Me: 'MAIN' FOR GODS SAKE, THE NAME IS 'MAIN' *points towards my code*..
Him: Oh, okay, I get it now
Me: Ok, let's compile
*Error pops on his screen*
Him: You know what, I don't think you can really program.. *closes laptop and walks away*.
FML
undefined
university
c++
collegues