• Uplink@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    2 months ago

    Everybody hating on Java being the de facto language every student learns first (at least back when I was in university) but I think it’s actually a great first language while I don’t think python is for one simple reason: it has types but tries to hide them from you. It is soooo important to understand types early though.

    • BleatingZombie@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 months ago

      Strictly-typed languages are the BEST for learning programming. I also like Java for it because there’s a difference between int and Integer (forcing you to learn about objects)

    • Quetzalcutlass@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      The main problem with Java (or garbage collected languages in general) as a first language is needing to unlearn the bad habits it ingrains when you move to a systems programming language with manual memory management. Other than that it’s a pretty good first language, though I’d suggest learning a bit of C at the same time just to get a basic grip on things like pointers and stack vs heap.