I may be a old man yelling at the clouds, but I still think programming skills are going nowhere. He seems to bet his future on his ‘predictions’

  • nieceandtows@lemmy.worldOP
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    4 days ago

    I recently needed to implement some batch processing logic in our code to account for some api level restrictions (the code already pulls from the api in pages and date ranges, but if I specify a date range too wide or a batch that would get too many records back, it gets rejected, so we need to break it down and run the date range in batches). I tell this junior developer what the issue is, and what we need to add to the existing class in our codebase. I follow up with him after a week, and this is what he sends me.

    Boilerplate code from chatgpt that has almost nothing to do with what we discussed. And how can you even give me a whole ‘working’ code without even testing it? He didn’t even clone our original repo and test it as is to understand why we need what we need. AI sure is making programmers dumb.

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      6
      ·
      4 days ago

      Does it least actually have something to do with PayPal? And is pandas actually useful? lol

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      4 days ago

      I can understand commenting ASM, optimized C code can use some comments too, but commenting python should be a crime, as its function calls document themselves, and you’ll usually split data over named variables anyway.

      • Baldur Nil@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        4 days ago

        Only chatGPT has these kinds of comments as if you’re seeing code for the first time. 😆

        I’m not against adding comments where is needed: in the company I work for (a big bank) my team takes care of a few modules and we added comments on one class that is responsible to make some very custom UI component with lots of calculations and low level manipulations. It’s basically a team of seniors and no one was against that monster having comments to explain what it was doing in case we had to go back and change something.

        For 99% of the code you just need to have good names though.