I have been thinking of learning some programming recently, but I don’t feel confident enough. Is there any point in beginning with something like Zig or Go, and switching to something more serious later?

  • Scrath@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    1 day ago

    I feel like Python is sometimes too powerful in terms of what you can achieve with few lines of code. It tends to have lines that do a lot of things at once and therefore become very hard to understand despite not having a lot of code at the surface.

    In my opinion it is very good for stuff like data analysis and scripting test setups, but (with my admittedly limited experience in the area) I dislike using it for larger applications. Because it is a scripting language and not compiled, I have run into errors that a compiled language would have detected before even starting. Meanwhile python was happy to run my program until it unfortunately branched into the defective path…

    If you want to build stuff quickly it is incredibly what you can achieve with it though.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      17 hours ago

      Because it is a scripting language and not compiled, I have run into errors that a compiled language would have detected before even starting.

      Use type hints. Pyright in strict mode. (Don’t use mypy, it’s much worse.)

      I agree though, it is poorly suited to larger applications. Mainly because of its glacial speed.