by angarg12 · 3y ago · 0 comments
* Although ChatGPT is pretty good at generating code, it kept making simple mistakes such as calling non-existing APIs or introducing bugs. Some of them it could fix itself, some I had to fix.
* The code provided worked well for the "happy path" but failed miserably for some corner cases. I had to fix that manually.
* The code was working, but I wouldn't consider it production ready. It required some cleanup, unit tests, etc. Again, some of this with ChatGPT, some without.
* Not to mention that I was the one with the knowledge about the domain, what problem to solve, a vague idea of how...
Not to pick on OP but extracting a few seconds of video from a file is a pretty straightforward task, you can essentially do it with a bash one liner [1]. My biggest question is how ChatGPT performs with a large codebase, contributed over time by different authors, with complex domain logic and layers of abstraction.
I also had a brief existential crisis, but I just shrugged it off and got back to work.
[1] https://askubuntu.com/questions/59383/extract-part-of-a-vide...
I saw a bunch of people talking about how GPT helped them code stuff on Twitter, so I thought I'd give it a try. Right now I'm building a sort of simple, mock version of the type of software that integrates with my company's APIs. I've successfully managed to create a simple web application that creates a new object, hits my company's API endpoint to create a corresponding object on our software, allows me to upload a document locally and then allows me to upload that document to our software via API as well. It's all a little messy and clearly not production-ready, but it works. It would've taken me probably a few months on nights and weekends do this (mostly refreshing myself on JS and Python). Instead I've done it in <24h (would've been shorter except for GPT-4's message limit).
I'm sometimes able to spot and fix GPT's bugs, but even when I'm not, it walks me through adding more logging and successfully debugs issues. Sometimes it takes a few tries and a little direction as to what I suspect the issue is, but so far it's fixed everything that's come up. I don't think this would be doable for a totally non-technical person, but I do think it'll get there pretty soon.
I'm just absolutely blown away.
I think we're going to see a lot of programmers who are going to trust GPT a little too much, and I think that's sort of scary. For the most part that is going to work out just fine. Often the quality of your programming isn't actually going to matter that much, because as long as it solves the business needs okish, then it's frankly great. That's not always the case, however, imagine someone using GPT to get your healthcare software wrong.
I'm still impressed with it in other areas. I think it'll do wonders in the world of office automation because it seems to have the ability to succeed at this much better than any previous "no-code" attempt where the logic would almost always end up requiring people who are basically programmers for it to work. I think GPT will help here, requiring less "superusers" for a department to move their data flows into automation. Especially in areas, where efficiency and stability aren't necessarily that important if the automation-tools mean you don't need three full time employees moving data from one system to another.
Speaking of which: https://meta.stackoverflow.com/questions/421831/temporary-po...
> Overall, because the average rate of getting correct answers from ChatGPT is too low, the posting of answers created by ChatGPT is substantially harmful to the site and to users who are asking and looking for correct answers.
> The primary problem is that while the answers which ChatGPT produces have a high rate of being incorrect, they typically look like they might be good and the answers are very easy to produce. There are also many people trying out ChatGPT to create answers, without the expertise or willingness to verify that the answer is correct prior to posting. Because such answers are so easy to produce, a large number of people are posting a lot of answers. The volume of these answers (thousands) and the fact that the answers often require a detailed read by someone with at least some subject matter expertise in order to determine that the answer is actually bad has effectively swamped our volunteer-based quality curation infrastructure.
If we're lucky ChatGPT will poison itself by pissing in its well, but it will take a lot of good things with it.
People claim that AI can write code so they start firing programmers. Universities stop software engineering programs as there is no one taking the courses. People stop writing blogs or stackoverflow. Software engineers either move to other fields or start living offgrid. No new innovation or new line of code written by human.
Meanwhile, software quality get worse by each passing day and there’s no one to fix. AI poisons it’s own well by generating shitty code and now even simple tasks are taking 30 seconds. People say, “In the good old days, we used to get response in under 1 second”. Just like how they talk about cars and their durability in the good’ol days.
IMO PM's are the clueless bunch of the whole set up. Often they are just making up things as they go and making it right through 'authority'.
PM's remind of me of early days of Sudoku craze when people thought they can put in any numbers in any squares and then later on puzzle would automagically rearrange itself to help them win. Backtracking never clicked for such people.
Once you are beyond simple toy apps, and have to build large engineering artifacts in iterations and realise it can't be from scratch in every iteration. The real fun begins.
Yeah, at this point I think this is a valid use case for GPT-4 in its current form. I would be comfortable using it to build internal process tools or standalone things like a simple browser extension. Nobody in engineering at my company would be dumb enough to let me start monkey around with our actual codebase though.
State your assumptions.
Read and summarize the pervious documents
generate a data flow diagram.
generate a data model.
Get it to inquire about use cases and requirements
generate tests for these uses cases and requirements.
Maybe this is the chatGPT equivalent of "learning to google search properly". You got bad answers, but maybe someone more competent at chatGPT prompts and workflow would have gotten to a better solution more quickly, and we need to figure out what that means
You mean in areas you are less expert in? :) Maybe it's bad at everything, but each person can only tell when it comes to their own area of expertise.
Modern languages (and tools like autocomplete) have already helped that a lot compared to assembly code or binary, this looks like the biggest jump in a long time. The path of programming so far has been moving from "describe how to do something" to "describe what to do" which this is certainly in line with.
It’s easy to get amazed by something that can halfway do something you can’t do at all automatically. But as others have pointed out, it’s not that great at it and not knowing enough to do it yourself means you don’t know enough to catch and fix bugs.
So this move to using chatgpt and similar in production by people who otherwise wouldn’t be able to do things in production is worrisome, imo.
The availability of a button inside an IDE doesn't make this a fundamental change in how we work
It feels like we are headed to a world where we can interact with a computer much more like they do in Star Trek; you ask the computer to do something using plain English, and then keep giving it refinements until you get what you want. Along the way, it is going to keep getting better and better and doing the common things asked, and will only need refinements for doing new things. Humans will get better at giving those refinements as the AI gets better at responding to them.
It is already incredibly good for being such a new technology, and will continue to rapidly improve.
Have you asked it to use any API that appeared after September 2021 (that's the cut off date for its data)?
Have you asked it to write code in less popular languages (e.g. Elixir)?
Have you asked it to write code for less popular or unavailable APIs (smart TV integrations)?
I don't feel that my job is at risk of disappearing. Instead I think we'll be using LLMs as tools to do our job better.
Therefore the inverse can be safely inferred by nondisclosure.
Yesterday I got a complex data structure out of it in 1h that we'd been talking about but not implementing because it would have taken a couple of days to get right.
In all cases it made mistakes and I had to rely on my experience as an engineer to ask the right questions and fix things. But god damn it made me insanely more productive.
Don't shrug this off and go back to work. You'll get left behind, and may not have a work to go back to.
This is supposed to take programming jobs?
HN is incredible.
Internal tools that automate 3 workflows we'd been doing manually. 2 node scripts and a super simple web app exposed on our private network.
Yeah I think it definitely is, but I don't know why. Bing is better at looking things up (perhaps unsurprisingly) but Chat4 is better at creating things.
Bing produced incomplete code.
Only GPT-4 was close enough to be correct.
Not being able to write code without it might be bad but it's a valuable resource and you should use it when it's available to you (for both)
I have no doubt that ChatGPT will become even better than StackOverflow at answering questions. Is this really going to make us better programmers?
Consider this classic: https://stackoverflow.com/questions/12122159/how-to-do-a-htt...
I was discussing a bug with a colleague, so for curiosity's sake I decided to plug a similar question into ChatGPT. I was quite impressed with the solution it gave, and interestingly, it had the same subtle bug that our code had. What blew me away is that when I pointed out the bug, ChatGPT fixed the code by itself. On one hand I felt "phew, at least it needed me to point out the bug", but then I thought "I just (perhaps stupidly) provided training data so that down the road ChatGPT would get it right the first time."
I don't see how people can see stuff like that and say "oh, it's just a fancy Markov chain generator" or "it can't reason". Even if that stuff is nominally true, how can people not be totally blown away by this? Just a couple years ago I think people would have been amazed that it can have totally natural, grammatically correct conversations. Moreover, for nearly 3/4 of a century the scientific community has pretty much coalesced on only using the output to define intelligence (aka the Turing Test). While I understand that ChatGPT may not 100% be there yet, I see no reason to believe that all this interaction people are having with it won't be fed back into it to drastically improve its responses over time.
It's more like the scientific community has spent the last 50+ years criticizing the Turing Test. Passing as a human is a nice engineering goal, but there has been a lot of doubt of using input/output behavior as the only measure of intelligence. If you took a basic AI class before machine learning became popular, the chances are the class spent more time on the criticism than on the test itself.
EDIT
And here is something else that just struck me. The errors in the code are obvious the minute you run the program, particularly in the beginning when the population dies off after day 1. Chat GPT is apparently incapable of running the simulation to check if its code actually makes sense. It needs someone to tell it. Think about that for a second. Can you imagine a fellow programmer handing you a piece of code without bothering to try to run it first?
I can see Chat GPT as an advanced assistant who can save a programmer a LOT of time right now, but definitely nothing more than that.
ps.
ChatGPT: "You should only share information that you are comfortable with being stored or potentially used as training data."The other day I was working with the Cisco Meraki API...I knew exactly what the script needed to do, but the calls were tedious and I didn't feel like learning the names of all the JSON columns, so I just had ChatGPT do it. I had to fix a couple mistakes, but the 20 minutes it took was better than having to read all the documentation.
This quote highlights the challenges of accepting new information or ideas when they might jeopardize one's livelihood or status quo.
Let's wait for "And now... long term memory is all you need" paper.
And afterwards it cleans the cup and puts it back in the cabinet.
If you want it to solve arbitrarily complex problems, you need to set up some sort of loop. People are already feeding the outputs back in as input in various primitive ways, but I suspect the real breakthrough will come when someone trains some sort of recursive transformer from scratch. (Assuming the current networks waste neurons in unrolling loops, we might possibly even see smaller models).
[0] Try the following family of prompts: "_ is an example of _, which is an example of _, which is an example of _...." etc to a depth of your choosing. At some point it bottoms out and you can't get any more levels out of it.