I’ve been wanting to learn how to code for a while so I figure now is as good a time as any to start. I downloaded VS code on my laptop for python but I don’t really know end product I should try to code and I also am just bad and barely know what I’m doing. Does anyone here have any advice on what to code and how best to learn?

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    Started with C++, definitely wasn’t easy. I ended up giving up and revisiting a couple years later and PHP/HTML was a fair bit less to take. I did end up revisiting C++ and making an archive format for my game engine. These days I definitely start by the low level, even libraries I jump to the low level features/long form before going to the nicer abstractions for the sake of understanding what’s going on under the hood. It’s definitely valuable too.

    Just pointing out different styles of learning exists, OP can choose whatever fits better for them. I’ve known people that good completely demoralized because it was a bit much to take to think about how big an integer is in memory and arrays and whatnot. Especially if you approach it with making games, focusing on player moment and map scrolling can be more intuitive to learn the basics and slowly migrate to lower level things. I have friends that started with 6502 or Z80 assembly (good ol’ Ti 83+ calculators) and they liked that way better because it made them appreciate what compilers really do better. Really dependent on the person.

    I advocate for whatever works better for the learner, whatever makes them not give up and whatever keeps them going.

    • abhibeckert@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Started with C++, definitely wasn’t easy. I ended up giving up

      I made it about as far as std::cout << "Hello World!"; and couldn’t figure out wtf cout was or progress from there.

      Eventually, nearly a year later, I started over with a simpler language (Basic) and maybe five after that I realised my IDE just wasn’t setup right - so cout literally did nothing at all.