• ranzispa@mander.xyz
    link
    fedilink
    arrow-up
    35
    ·
    4 days ago

    Clearly Kendrick Lamar started programming in the 70s in Fortran, had a small flirt with MATLAB and ended up using Julia in the end.

    I didn’t know he was so strong in scientific computing.

  • fleem@piefed.zeromedia.vip
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 days ago

    I am so much more down for the memes about fictionalised genius of famous people, where we end up learning a little something

    as opposed to the fictional CEO of sex, especially when its in the vein of some stupid FPS from 2012

    yay

  • vrek@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    4 days ago
    1. I never mock those who are trying to learn.

    2. Why is he starting with c/c++? Yes they have uses but not as a starter just playing around.

    3. I struggled with this initially too cause I didn’t understand why. Most people would say “give me the first object”. In reality your requesting an offset * size of each item + list start.

    • Venator@lemmy.nz
      link
      fedilink
      arrow-up
      4
      ·
      4 days ago
      1. Why is he starting with c/c++? Yes they have uses but not as a starter just playing around.

      sometimes it’s not interesting enough to keep someone’s attention if it’s just “playing around”: some people need to feel like what they’re working on while learning has a real purpose, and some purposes have to use C++ (e.g. Arduino)

      sure it might not be the most effective or efficient way to learn, but it can be more motivating.

      • vrek@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        Kinda but especially with extremely new, either python or Javascript is recommended. If they are absolutely new, scratch.

        • atopi@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 hours ago

          i have seen arguments against learning python as a first language (when my countries government suggested replacing c++ with python in school)

          i may have just had a bad first experience with JavaScript; i wouldnt let a child new to coding anywhere near that language

          • vrek@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 hours ago

            I would say python is good for basics like for what’s a variable, how if/else work, how to iterate over a list, the thought process of breaking down a problem into sub problems. Now it’s not a good language for going much beyond that. Do not try to make a real time video renderer in python.

            Once past that I would say go either front end or backend. If backend c++ is a good option. Now that you know what a variable is we can discuss the difference between a uint32 and a bool. Why we don’t use an int variable set to 1 or 0 to determine the results of an if statement. This is also where you learn about memory and how computers actually work.

            If front end is the choice, maybe not Javascript but typescript would probably be a good option. I don’t know much about front end(I hate doing visual design) so I can’t go into much detail. Is there a better front-end language you recommend? Only other one I know at all is c# with blazor or winforms.

            The issue I see with jumping straight into c++ is it’s so much to learn to do simple stuff. For example a lot of early programmers get confused with working with functions and what return values. I attended a boot camp through work for python(I knew programming hobby level but it gave me a pay raise). There were 12 students, 4 choose to do a selenium script to test a website as a final project, 1 did a script I think for tracking expenses and income but he did it all in main because he couldn’t figure out arguments and return values from other functions. This was after 9 weeks, 5 days a week 8 hours a day, plus 4 days to develop the final project. Now throw in what a header file is and the difference between declaring a function and defining a function. It’s a lot to start off with.

    • vocornflakes@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Oh but Lua is so much worse than that. Table keys (array is not a thing in Lua) can be whatever you want. Especially even negative, and not like how python does it. 1 is just the convention.