An After-School Program Teaches Teens Java and Python::The students also learn how to design board games and video games

  • soulfirethewolf@lemdro.id
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    3
    ·
    1 year ago

    Java is a good language if you’re a beginner, but if you’ve already coded before in other languages, it’s going to suck.

    • sebsch
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      Especially for beginners its a bad language. You have the understand artificial concepts about classes, objects, abstract states before you re able to learn the important stuff like if/else, looping etc pp.

      I would always give beginners a language which is at least in their way as possible.

      • Pipoca@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        You don’t really have to.

        You can just handwave public static void main, and only deal with primitives, then static functions, before introducing objects.

        That’s what they did at my high school. It’s weird, and there’s much better ways and languages to introduce procedural programming, but it’s possible.

    • realharo@lemm.ee
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 year ago

      They should’ve just picked Kotlin.

      It also encourages good basic habits, such as not making a variable mutable unless you specifically need to (val is way more common than var, the IDE makes them very visually distinct).