• 7 Posts
  • 23 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.


  • Thanks for the detailed write up.

    One more reason I might not have mentioned is that Rust is low level and has a good developer experience. At least I heard. The whole compiler is your best friend thing.

    Idk I guess I’m hoping it will teach me those concepts better without making me frustrated in the way C++ and C did. Those feel like they’re excellent languages that were no doubt revolutionary in their time but are now lumbered with legacy and unintuitive things. Maybe it’s false hope. Rust certainly looks intimidating but everyone says the tools and docs are amazing.

    I’ve decided I’m gonna learn it for sure. Whether I rewrite the project or not I’ll decide later.




  • It doesn’t really need it. I’m sorry for giving the impression that it’s some performance critical application lol.

    It’s just a simple web app backend with a db. Oh and the front end desktop version I wanna build will use tauri (because I hate the thought of bundling a browser) so that’s another reason to learn rust.

    I guess I just kinda want to make things minimal in the resources they use. Because that’s just neat :D




  • I used C++ and beriefly C before. I suck at both lol.

    I get that manually managing memory can be a mess and easily create big problems. Garbage collectors seem like a cool solution but they need a runtime. Rust has no runtime but somehow forces you to manage memory well. Idk how.

    But anyway more important to me is that it’s a modern language with good devex and tools and no runtime. So it’s like if C++ was remade today. At least that’s what I hope.



  • Yeah I heard about that.

    Although the whole purpose is to practice language for me and the host is aware of that so I’ll try as much as possible to stick to German. My German is somewhere around the low B1 high A2 range. Hopefully 4 months can make it confidently B1. Idk

    Oh and another thing. The types of people who immediately switch to fluent English are young people in cities. This is gonna be some small town in southern Germany. Hopefully their English isn’t great either haha.