8
JS96
112d

Tell me what you want but ChatGPT is the best dev companion ever.

I've just submitted 700 lines of JS code with various complex functions because I had an issue for some specific cases I couldn't identify.
In less that a second ChatGPT noticed a missed argument in one of the many function calls... mind blowing.

It's something I would otherwise notice after hours of debugging, looking for a needle in huge functions.

Comments
  • 19
    Impressive as that is for ChatGPT - this is a formal error that I would have expected a Linter to catch.

    Which in turn begs the question, why you are developing in such a loose language without Linter?
  • 4
    That’s how I use it…hard to find errors after spending a long time finding but having a shit day where brain doesn’t want to wake up. I also have it write code for me but it’s usually tedious stuff like writing enums that would take me long to type or tedious queries I wouldn’t have an issue writing, just want to save time. I wouldn’t let it handle more complex or creative tasks bc then I would have to read garbage
  • 6
    @Fast-Nop asking the real questions here
  • 7
    Hate to agree with the crowd, but this is a job for a linter and not a LLM. You just handed Albert Einstein algebra 2 homework bro.
  • 8
    Just a reminder that if you work for a company, the code belongs to the company (unless some form of contract declaees otherwise)

    Using an LLM without permission is illegal.
  • 8
    @IntrusionCM very much this.
    All the big and relevant companies I know have guidelines against this. They send us emails reminding us not to paste company code into chatGPT or other online services.

    Remember that they keep the convos to further train the network, which means you private company code can and will start appearing in the responses in the future if you give it enough samples. Not a good idea if you don't want to be stolen from or hacked
  • 3
    @Hazarth

    Exactly. And as laws are very complicated due to it being an international problem, its really not fun.

    I think the LLM bubble will burst spectacularly in the next years.

    Theres just too much "grey" in it.

    E.g. the ongoing law processes regarding training data... Will be fun to see how this pans out.

    If it takes the direction of the trade war like in the US ... Oh boy. ChatGPT and other LLMs could be wiped out over night.

    I'm not against AI. But without full transparency and ensuring that no wiggle room exists for things like copyright infringement its doomed to fail.

    Will be interesting to see how it pans out.

    Google vs Oracle took a decade to be fully resolved...
  • 4
    @IntrusionCM private code of mine :P

    @Fast-Nop I'm not a professional js dev and this is a side project, so the answer is: pure ignorance, I didn't know about its existence and didn't care enough to search for something like that, just opened VS Code and started the project that is 90% PHP (which is checked in real time in VS Code and prevents errors of this kind) and JS is for simple ajax requests and this particular script that is slightly more complex.
    You, and others, are right though, I should have used something like that for sure. Thanks for the tip.

    @superdupernova it's just this file.

    @TeachMeCode it's very handy to save time, and stress in situations like this where you keep searching for the wrong thing.
  • 1
    you know it's bad when OP is using chatgpt to find an error that fucking bitburner would've yelled at me about, much less any browser or linter. imagine needing a large LLM to replace a browser game that teaches you basic JS.
Add Comment