Ask HN: Does ChatGPT/AI enable anyone to code?
I'm non-technical and have never written code. There's a lot of talk on Twitter how AI means anyone can now easily code and build products and stuff.
Since a lot (most?) of HN is about technical stuff, I'd love to find out from y'all - how true is that?
Do you think that software engineering will go to a place where anyone can just say "help me build an app that does these three things" and I can just deploy that?
Or will a baseline of skill always be required?
(
58 comments
| 6 points
| on HN
)
It is the same for coding. Yes, you can ask it to generate basic code, and it will work. But my job as a software engineer isn't to write code. It is to deal with messy humans. Sure, ChatGPT can write an app that does three things. Does it work reliably on all different mobile phone devices? And do you only need three things, or do you want 16? Most clients know precisely what they want; they can't express it accurately in words in a single iteration. When you have delivered those three things, they will often ask for more. They will often ask for a hexagon-shaped room after you have built them a perfect circular-based one and then complain heavily if you quote it will take several weeks to refactor.
a) Product sense becoming more important i.e. talking to users and figuring out what they want and how to build it rather than the pure ability of using code to make the computer do something
b) Having the machine but no idea how to repair/augment it only gets you so far. Like you might be able to run a lawn care business but if your lawnmower breaks and you can't repair it your business is dead.
Is that about right?
It is also about knowing when to mow the lawn. Generally, you shouldn't mow the lawn when it is too wet, as it is too heavy on your mower. You also want to avoid mowing it when it has been too sunny, as the grass will turn brown. That requires experience beyond buying a mower.
My experience with ChatGPT for coding has actually been the opposite: It was better at understanding and guessing underlying needs than the typical programmer I've worked with, who usually needed everything spelled out in technical bullet point requirements. Clients don't think like that (because they don't know how software works), but programmers need that (or need to come up with it on their own) to write the code. ChatGPT on the other hand seems pretty good at using its vast training data to guess at your intent and needs, as long as it's a relatively common use case.
I would say that's one of its great strengths (its ability to combine your prompt and its vast natural language data to give you an answer that effectively summarizes what your good options are). It's a better product owner than most programmers, in other words.
On the other hand, its coding ability isn't very impressive. It has the ability to generate code and it will run it and debug it if you ask it to, but it doesn't always do that by itself, and it's not great at doing "sanity tests" along the way to make sure each unit of code it's producing is actually doing what it should. For the most part it's doing the same sort of statistical modeling of language for coding as it does for natural languages, but code is a lot more precise and nuanced and can't just be a popularity contest of most statistical likely outcomes.
As a programmer, even a beginner one, you can usually spot these mistakes or at least ask it to explain or change some part of the generated code. However, for someone with zero coding experience, it might be harder to even spot these mistakes to begin with. You might be able to deploy the code but it might not actually do the thing you think it's doing, or maybe only do it under some circumstances but not others.
To be fair, though, the same things can happen when you work with human programmers. There's a lot of back and forth there too and trial and error. And many of us aren't great communicators, so ChatGPT has an advantage there. If you're patient with it, it might be a nice long term partner. But it's not quite at the "make me a _____ app and deploy it" one-prompt stage yet. Probably soon! I have no doubt one day soon it will replace developers like me, but for the time being, it works more effectively when paired with a human (and vice versa).
However as your project grows you will be forced to learn programming principles in order to progress. ChatGPT will help you learn these principles 10x faster.
My suggestion is don't think so binary about it. ChatGPT+GitHub copilot will make it way easier to code, and to learn how to code, and you will get stuck far less often (than you would have before LLMs) but you should still expect to have to learn a lot along the way.
LLMs are to programming what a power drill is to carpentry. Way easier to use and faster than a screw driver, but you still have to use it...
same with chatgpt. when i ask it to do things i know a lot about, i am often time shocked how bad the code is that it generates and often does different stuff. makes me wonder about the code that i ask it to generate to do things i dont know about. haha.
If I ask it to generate something that I understand: "Wow this is the most surface level garbage anyone could create by reading one SEO-optimized article"
When it's about something I don't know anything about: "Wow it's impressive how far AI has come"
What I do find AI super useful for is finding stuff like metaphors.
"I want to find a metaphor between product-led vs. sales-led growth strategies for startups. Please give me a list of 10 i could use"
Those prompts are incredibly useful. I reckon there's some type of analogy with coding here.
Those are three different things. Most of these AI agents can produce working code in different languages. Whether that matches tightly defined business needs is a different matter. Writing code that makes a P5.js sketch that animates a cat is a neat trick, but not something you can build a product around. Building products is a broad enterprise and can be very difficult, even with a full team of highly skilled engineers. Google and Facebook have access to the best engineers on the market and even they make products that bomb or go way over budget and deadline. The "and stuff" part is usually the part that makes money. Logistics, financial infrastructure, marketing, marketplace differentiation, and much more go into successful business built on software. An AI agent can describe those things in plausible terms, but can't manifest any of it.
What these platforms CAN do is help prototype experiments quickly. Then you could take it to a Dev team and have it built properly. I think that is an interesting future and will allow more people to participate in the early stages of some projects.
It certainly helps with deployment though, especially things like why import vs require, where to find the API keys, which class to look inside, and so on. I would say we're twice as productive now. If it took you 3 days to do hello world, it would take maybe 1 now.
You definitely still need to read the docs. AI is just great at telling you which docs to read. But it may lead you astray if you choose not to.
Another gotcha is that LLM is the average of the above average skill. It sounds funky but basically GPT still recommends a 2018 stack for Android, which is far outdated, even though it knows the 2024 stuff. We see people trying it in interviews, and many end up giving feedback that they wish they didn't use it.
Sometimes the hallucinations it has can be dangerous, you can’t copy-paste all, you have to give a look to the code to avoid some nonsense operations.
This can be dangerous also because if ChatGPT writes an entire app and the app has a bug in the code, ChatGPT will replicate the same bug on all the other apps that rely on that code. And if one guy found a vulnerability in ChatGPT coding operations, it can be exploited on every app created with ChatGPT.
However it’s a super useful tool, especially when you have to write ripetitive code or change something like a variable, you can ask ChatGPT to do these repetitive tasks and it’s good at it.
I think it's early days and whyle AI can write code to deliver features it's not perfect. So someone who knows how to write code, deploy software has a basic understanding of software architecture and cyber security will have a lot more luck than someone who has to run everything through the AI.
It's similar to how computers in chess worked. At one point (around the 90s and 00s) computers could play very good chess, but they had weak spots. So the best chess player in the world was a team of humans and computers. But eventually computers got better and no longer needed any human help. I think a similar scenario may play with software development, and we're still not at the place where an AI can everything without technical input from a human.
But when something didn't work I instantly ran into the issue of not knowing if I did something wrong or if the code was bad lol
i still don't know how many things work, like some functions, and I struggle a lot when the code gets complicated - it starts to lose the overall picture. To address this, i have to start reading the code line by line to understand what's happening.
So far, I have used Node.js with Express in the backend mostly. My advice would be to go ahead and try it, don't be afraid, as it helps a lot. it makes you feel like you can build a lot of complicated stuff, though, I'm having a hard time finding ideas lately
Much of the time, and for simple enough tasks for which there exists enough examples in the training data, what it produces might be useful. But it can also be wrong in subtle, non-obvious ways. But if you don't know anything about coding and just don't want to pay people for their time and skill, nothing is obvious.
There's a lot of talk about all sorts of nonsense on Twitter. No, this isn't true.
But a better answer would be, given a large enough context size (32k or higher), it should be reasonable to write code as long as it doesn't try to do something stupid like using the wrong json parser format for a function that doesn't even exist in that library.
I would never ship a production app built with ChatGPT. I need to know the intricacies of my code base. I wanna fix bugs in my head based on the architecture and specific implementation details. I need to know how fragile or not my system is and its weaknesses
I’m a management dope now and lost most of my coding mojo, but I can much more quickly conjure up small scripts or programs to do small tasks or demonstrate a point.
When I started my career, I was the “kid” who introduced Google to the office! ChatGPT feels like that!
Last week I wanted to interface with a bluetooth device in Python on a Mac.
I asked ChatGPT for a solution - it told me about a Python-ObjectiveC bridge to the MacOS Bluetooth API. It coded a stub to search for the device, connect to it, query for services, and write data to a specific service.
I've never used bluetooth before. I have minimal experience with Python. With ChatGPT this entire prototype took about 10 minutes to implement.
FYI - it can't turn lead to gold either.
Also, no one actually knows that LLMs with transformers will continue to scale. Every AI ceo says yes but that can’t be said without bias.
Yes, I believe that AI will eventually be able to create accurate patch files.
I think we'll just have to agree to disagree. You take care now.
I think so too but the OP is asking about chatGPT and relatively near term tech (given the context of his question).
Your naivety about software engineering is not uncommon but it is misinformed.
I think we'll just have to agree to disagree. You take care now.
For real you're as bad as me because you also reply and can't stop.
I'm not hearing voices, I'm talking about the context of the OPs question.
Your original comment provides zero baseline for how long the bluetooth script would have taken to write without chatGPT, with or without experience.
Friend, I never said anything of the sort. You are literally arguing with voices in your own head.
> makes you reek of being a junior engineer.
I have almost 40 years of experience as a software engineer on some of the most prestigious projects of their time. Trust me, you do NOT want a dick measuring contest.
Please stop - you’re making an ass of yourself. I will not respond to you further.
Or maybe I guess you are realizing you are in beyond your depth and want to save face.
Good. I'm glad we could reach agreement.
I will not respond to your further.
Stop spamming HN saying this over and over. It doesn't make you look clever or polite, as you think. If you have substantive comments, make them. Obstentatiously posting over and over that you intend to stop posting is way too lowbrow for HN.
It's like the crazy guy on the street corner screaming about his conspiracy theories. No one talks to him.
Take a hint.
Goodbye now.