• 3 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: December 5th, 2023

help-circle




















  • Hmm. Well I tried to learn C++ as my first programming language when I was 12 so that’s probably the reason lol. I was just bad at everything at that time. I moved onto Java next, but maybe I should revisit C++.

    But if I had to name specifics these come to mind right now:

    • Using code across multiple files or libraries is really annoying. The preprocessor directives, I kinda get them but there’s always something that breaks and I don’t understand why. Also why isn’t there a package manager or something like that? Hmm maybe there is nowadays but I don’t know if there was back then
    • Still don’t know what a link error is or why it would randomly show up and then disappear if I restart visual studio
    • I know this is a meme but long hard to understand error messages in the case of C++ and no useful error messages at all in C
    • In C did you know that the order of items in a struct matters? I didn’t until I spent an hour debugging a segfault.
    • Obviously C doesn’t have strings. Accomplishing even the simplest things in C feels really hard. Like you’re on your own.

    I’m very sure all of these can be summed up as me being bad at the languages. Skill issue etc. and it’s true. I am bad at both.

    But the point is there’s a lot of things I don’t understand and that seem unintuitive to me. So it’s not fun, so I don’t use it. If you gave me a programming problem for fun and told me choose your language I would never choose C++ and certainly not C. I’d use Python, JavaScript or Java because they feel more fun to use and I can see progress faster. Same for my new projects. I’ve never tried to make anything more complicated than a command line program in C++ or C.

    At the same time I understand that higher level languages abstract a lot of things away from you and I really do wanna get better at understanding those concepts.

    Anyway thanks for attending my therapy session.