• webghost0101
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Yes i haven’t written the api itself, we (or at least most of my direct coworkers) also don’t have direct acces to the raw database in production.

    All the documentation was intended for python and i was provided an jupyter notebook with some python demos. Giving chatgpt the documentation expecting it to understand it is not recommended.

    Seems one of of my higher ups is biased againt python “They use that in school as a starter language” (as if that makes it inferior) But there seems to be more in house experience with powershell and others have to be able to continue my work if i quit or fall sick for long.

    So the first thing i gave to chatgpt was a selected few snippets of the python notebook and asked to show how i would do the exact same thing in poweshell.

    Then i asked what i would need to do more to make this a final working script. (With a very basic goal).

    Once that is working i could easily provide a new instance of chatgpt with either full code or the function/part i was working on and provide it with information on what the next step is or what i am trying to do. If i get an error i provide it with that and ask what might cause it.

    I have enough coding affinity to notice if it hallucinates, Most of my personal problems writing code is that i am very bad at syntax and not great at spelling.

    Chatgpt very often provides long stretches of non functional code because it doesn’t fully understand the context of what i am trying to do but in the middle of that code i may find an excellent for loop function that does successfully implement the logic for that part. i then copy that part with minor changes.

    I recognize that for you most of my code counts as boilerplate stuff. But id have a frustrating experience writing it my self.

    I rather explain the logic i need in a prompt, and i find it very fun to then puzzle all the snippets together into a coherent script.

    I estimate i am on average slower then a full dev but i have the massive benefit of being my own client. The things i am automating are things my team constantly have to do manually trough crapware. Therefor i fully understand what exactly needs to be done, as opposed to us asking the in house devs to check options to see if maybe x y z can be done easier.

    Those in house devs are also at my disposal if i get stuck or have questions, some parts are code snippets directly provided by them.

    Edit: thats gpt4, i started with 3.5 and its helpful but 4 is such a massive jump i cant take 3.5 seriously anymore.

    • Vlyn@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      But that sounds like you already know how to code, but instead of asking Google you just ask ChatGPT and hope for the best.

      How do you think programmers work? I don’t know shit either, if I need to call an API I look up the docs for it. If I have to do something in Python, C# or whatever and I don’t know how, I just google it (and there’s hopefully a neat Stackoverflow answer that shows how it’s done, otherwise I have to scour the documentation and figure it out myself).

      Instead of Googling you’re using ChatGPT, but in the end it seems like you are checking yourself if the answer could work and you build it into your software yourself. That’s way above any random person who now thinks they can produce code by asking ChatGPT.

      Most of my personal problems writing code is that i am very bad at syntax and not great at spelling.

      That should be a non-issue, because you should be using an IDE (which sucks for Powershell, but would be really easy for Python or other languages). I just start typing and it usually auto-completes. If I don’t know what the function is named I can just ask the IDE what’s available, then select the one I want. The only thing I have to write myself are variable names (the first time around), but I get help for anything else.

      Your boss is honestly an idiot, working in Powershell is like pulling nails. Yes, it works, but you’re severely limited in how you can write the code and it’s usually a mess of random scripts thrown together. Python or any other scripting language would be vastly better for tooling.

      • webghost0101
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Pretty much yes. Except i find chatgpt multitudes easier and faster to find answers then google ever was.

        My stance on the power of AI remains that its not a magic button yet. You have to understand its output and know how to use, just like with every other tool.

        I was never in a position to code with an autocompleting IDE, back when i had programming in school we were supposed to type everything ourselves. I understand why they wanted it like that but it very much disadvantaged me and my grades.

        I may have to add i am neurodivergent between adhd and autism with some mild dyslectic/dyscalculia overlap. What works for others rarely works for me. This has added to my gripe of how hostile the internet has become, littered with ads and unnecessary fluff. Chatgpt always gets straight to the point, even if its wrong (but so are many people). Its consistently trying to be helpful no matter how stupid a question i ask it.

        While my career advice was to not go into programming, i have good faith that with the evolving tools and also my own knowledge gain by tinkering with linux (also sm chatgpt is an amazing help with) my disadvantages will fade and i will become a competitive equal to the mainstream developers of today.

        That boss regularly causes eye rolling. There is some good reasons on why we use powershell, we have close relations to microsoft and it has good compatible features with some other things we use. But simply dismissing python was really uncalled for. The best tool for the job always depends on the job. And to sort of quote the sorting hat “Python would have done well for this job”