• 2 Posts
  • 60 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.









  • That’s perfectly fine. Don’t worry about forgetting words. You will forget them, look them up again, forget them look them up again, eventually they’ll stick. Focus on the reading. Don’t treat it like a vocabulary lesson. Every day you’re here to read, as long as you reach the end you’re good, over months you’ll realize you learned a lot of vocabs.

    At first because the text will be so dense with new words yes it will take a long time to read, that’s why I typically only read a short maybe half a page per day. Then gradually increase that as your vocabulary grows over months. The goal should be to encounter say 50-100 new words a day. Notice I said encounter not learn.

    Those websites where you look up words are really useful. Make sure they have text to speech and read out loud in the language not in English even if you see the translation in English that’s fine.

    Also do a lot of listening along with the reading. I usually get myself an audio book and its corresponding text, chop it up into 1 minute and half a page segments, for each segment listen once, then read looking new words up, then listen while reading at the same time a few times, trying to follow a long, looking up any words I forgot, then listen without reading a dozen or so times until I can follow along. Then movd on to the next segment.