139

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

Comments
  • 4
    @Lahsen2016 Thanks, I'll keep that in mind.
  • 25
    I 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.
  • 4
    @JJonekK welcome!
  • 4
    @D--M that's evil lol
  • 2
    @D--M I wouldn't dare lol.
  • 2
    @D--M Begone Satan!

    @JJonekK Welcome to devRant! Keep teaching him and you'll have plenty of rants. (So I suggest don't lol.)
  • 9
    @jhh2450 @JJonekK @MissDirection
    Hey, thats how i learned :D

    And now i write node.
  • 2
    haha
  • 3
    @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++
  • 6
    @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.
  • 5
    *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!
  • 3
    @D--M and you can't do any of those in C?

    Anyway, I'll just leave this here https://youtu.be/YnWhqhNdYyk
  • 1
    @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.
  • 1
    Who relies on a auto completion while teaching? but he is still a jerk
  • 0
    @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.
  • 1
    I hate how he was the one who ended the conversation
Add Comment