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?

  • Phantaminum@lemmy.zip
    link
    fedilink
    arrow-up
    66
    ·
    2 months ago

    Learing the bases of programming is language agnostic really. You can start even with pseudo code, then learn the language you will like to work with. Just choose any language that seems fun and enjoy the process.

    Good luck!

      • Droechai@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 months ago

        Avoid BASIC though, never had much use of the hours I spent on it as a preteen.

        I did learn alot of useful stuff when I was playind around with arduinos, and since then the market of fun microcontrollers have expandes quite a bit. Its great to see your code immediatly change stuff in the real world even if its just a basic display connected to a thermometer

  • Zak@lemmy.world
    link
    fedilink
    arrow-up
    40
    arrow-down
    1
    ·
    2 months ago

    I question the suggestion that Zig and Go are not “serious” programming languages. They certainly weren’t designed to be “easy” beginner languages.

    I don’t think it matters a whole lot which language you start with. Learning to program is largely separate from learning a particular language, and if you do programming for a while, you’ll probably learn several. I do think someone who wants to understand programming deeply should learn each of:

    • A lisp, probably Racket, but others will do. This teaches a lot about how computation works, and is at least a local maximum for abstractive power.
    • C, an assembly language, or something similar where the developer must manage memory manually and has the ability to mismanage it. This teaches how computers work.
    • A statically typed functional language, probably Haskell. This makes programming more math-like and probably represents a local maximum for what can be proven about a program’s behavior without solving the halting problem.
    • SQL. I wish there was something prettier with a modicum of popularity that does what it does (PRQL is my favorite recent attempt), but there isn’t. This teaches thinking about data in sets and relations, and you will almost certainly use it in practice.
    • 0t79JeIfK01RHyzo@lemmy.ml
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 months ago

      The creator of Go has an infamous quote on the language.

      The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt. – Rob Pike

      source

    • galaxy_nova@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      2 months ago

      I really hate SQL it often feels like you have to work backwards instead of procedurally when you get anything complex going. Thank goodness I mostly work in pyspark.

      Edit: Also thanks for the shout to prql looks cool might try it in a personal project or something

        • Gonzako@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          Same! The more I learn the more astounded I am. You mean I can retrieve 5m records in .01 seconds?

        • toynbee@piefed.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          CRUD

          When I was growing up the most advanced console to which I had access was the Genesis (or Master System, if you prefer). On it, by far the game I played the most was Ultimate Mortal Kombat 3. (I liked Tobias Boon - sorry - Noob Saibot).

          For that game, you could unlock debug mode by pressing b, a, down, left, a, down, c, right, up, down. BADLADCRUD. I don’t know what CRUD is in the context in which you were commenting, but it reminded me of this.

          • Womble@piefed.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            It stands for Create, Read, Update, Delete. Those are the primary operations on a database and a crud app refers to one which is little more than a front end to a database.

    • Valmond@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      2 months ago

      Why in your opinion do you think any person who wants to understand programming “deeply” (I’m not exactly sure what you mean with that) should learn lisp and haskell? It seems way way unnecessary.

      And then you throw in SQL. Sure why not, but then why not javascript, Lua, c++, rust, PHP and a whole load of others who will teach you something unique most probably.

      • Corngood@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        2 months ago

        Not OP but I was a pretty competent C/C++/C# programmer first. Lisp and Haskell both totally changed how I thing about programming. I’ve used all the other languages you listed and I don’t think any of them have a unique philosophy to offer, except maybe rust for the memory model.

        Lisp teaches you how flexible programming languages should be. Haskell teaches you about things like higher kinded types, and exposes you to loads of cool category theory stuff. Other languages can probably accomplish these goals, but I don’t think any of the alternatives you listed could.

        • Valmond@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          Flexibility? Have you tried c++ 😁, check out template meta programming, and voilà rusts static memory management and compile time error checking in c++.

          What I want to say is you don’t need this or that language to grasp functionality, and IMO heskel and lisp probably have more interesting and modern counterparts, if you feel the need.

    • thingsiplay@lemmy.ml
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 months ago

      Depending on what he means by “serious”. I don’t know what hat means in context of languages. So, depending on his personal definition what “serious” means, Go might not be serious at all.

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 months ago

    The trouble with “easy” languages is that they allow you to write incorrect code without much pushback.

    The trouble with “serious” languages is that they push back even when you’re writing correct code.

    There’s plenty to learn from either route. Just pick something that piques your interest and dive in.

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    2 months ago

    Is this bait? Zig and Go are very much serious, especially Zig.

    Generally python/Javascript is good for learning the basics. To know how types work learn c#/java/go. To learn how the memory works Zig/C are good. To learn about what a fully defined behavior means in a program you learn Rust. To learn what actually happens on the processor you learn assembly.

    Honestly, if you’re hyped about Zig go for it, although I’d suggest “warming up” by doing a tic tac toe in python.

  • Kissaki@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 months ago

    Anything is better than nothing.

    Go and Zig are serious languages. Go is especially established and has a big ecosystem and capabilities. You could stick with Go forever if you don’t want to expand afterwards.

    Starting ‘simpler’ is better because it gives you successes. It keeps you going.

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

    It’s not so much easy-difficult, it’s high-level-low-level. Low-level languages can be easy in the sense that you don’t have many entities to juggle (stacks, registers, etc.) and high-level languages can be miserable, like C++.
    Of you’re interested in starting with the fundamentals, go with C. If you just want to get something made, go with Claude Python.

  • Sivecano@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    2 months ago

    Zig or go are not that unserious of languages. Zig is arguably quite hard due to being pretty low-level. Maybe think about what domain you want to do programming in… Python might be a decent starting point tho (easy language, no memory management)

  • thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    2 months ago

    Python is designed as an easy language. Yet it is a fundemental important language in the IT, backbone of many Linux operating systems and servers. One could even say… a serious language.

    I personally wouldn’t care if a language is called “easy” or not. You should also look at what it is capable at its peak and where it is used most often, if it works for you. Pick the language that you think fits you the best. I wouldn’t call Zig as an easy language to get into, its still low level language.

      • chunes@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 months ago

        Try uninstalling Python from Ubuntu and see what happens. (Do NOT actually try this.)

        • thingsiplay@lemmy.ml
          link
          fedilink
          arrow-up
          4
          ·
          2 months ago

          I need to test this with multiple distributions in a virtual machine, out of curiosity. Then test executing common tasks. Could be an idea for a blog post or YouTube video…

  • wewbull@feddit.uk
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 months ago

    Firstly, Zig and Go are serious. Anybody who told you different isn’t a good person to learn from.

    My journey was:

    • Basic (various dialects)
    • 6502 assembly
    • Forth
    • 68000 assembly
    • Pascal
    • C
    • Perl
    • C++
    • Python
    • x86 assembly
    • Java
    • Haskell
    • RISC-V assembly
    • Zig

    With some others thrown in I’m sure and some hardware description languages. The stuff I learnt in Basic 45 years ago is still relevant today. I learnt something from all of them. It doesn’t really matter where you start, but you have to take a first step and you need to write code to learn, even if it’s just copying it. It has to go through your fingers.

    • pixeldaemon@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      I remember people telling Zig was a “vibecoder” language, in the context of rewriting Bun to Rust. Yeah I know, a very odd kind of logic

      • nettle@mander.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        Zigs goal is to be more pragmatic than C.

        It is quite possibly the worst language to vibecode in, it is updating fast so LLMs usually don’t know what format to use (meaning a person who knows zig must fix those format errors). You can also get an LLM to write terrible rust code and while it will perform shit it will probably work, Zig on the other hand has manual memory management and everything has to be thought about or else it won’t work. This is why once Anthropic bought bun they decided to vibe remove zig.

        As the previous comment said the lead developer for zig really, Really, doesnt like AI and much of the community is also using zig because of its human focus. (Such as me)

        The great benifit of Zig over C in my opinion, is it is more human readible, especially in terms of what is happening with memory management. Zig aims to have no hidden actions making it just as low level than C while making more sense and hiding less.

  • WolfLink@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

    Yes 99% of programming is the higher level thought process behind making a program, and that skill transfers between programming languages. The specific syntax doesn’t matter that much.

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    2 months ago

    Zig and Go are serious. I think Python would be a language that isn’t serious (despite it’s widespread use in serious applications) but has a reputation for being easy. I don’t know if that reputation is really deserved.

    Anyway I would start with one of Python, Go or Typescript (via Deno). I would avoid Rust, Haskell, OCaml, C++ as your very first language, but they could be your second.

    Whatever you do don’t learn Python and stop there. That’s the way to be a crap programmer. And if you do use Python learn to use type hints early on.

    • Scrath@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      2 months 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
        2
        arrow-down
        1
        ·
        2 months 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.