4 ms·
> Look at what I just did with ChatGPT in 30 seconds (and I did not cherry-pick, these were the first answers I got!): Weird flex, as that code is like 90% boi
by dvt 4y ago
> Look at what I just did with ChatGPT in 30 seconds (and I did not cherry-pick, these were the first answers I got!):
Weird flex, as that code is like 90% boilerplate[1]. Everyone was freaking out about Copilot and no one seriously ended up using it because it just generates buggy (or copyrighted) code. It can't even handle writing unit tests with decent coverage (which is arguably the most repetitive/boring software engineering task).
[1] https://github.com/ngtkt0909/linux-kernel-module-template/blob/develop/00.hello/src/hello.c https://github.com/ngtkt0909/linux-kernel-module-template/bl...
- dragonwriter 4y ago> no one seriously ended up using it [citation needed] I mean, I’ve seen people claiming to use it and that it has significantly accelerating their work. On what are you basing the conclusion that it has no serious use?
- vbezhenar 4y agoI do use it and I'm very picky when it comes to writing code. Here's example of tiny webapp I wrote recently: https://github.com/vbezhenar/pwgen/blob/main/pwgen.html https://github.com/vbezhenar/pwgen/blob/main/pwgen.html Of course it wasn't Copilot writing it, but it definitely helps with boring parts. Like I'd write const charactersElement = document.getElementById('characters'); and rest 10 lines will be written with Copilot with minimal assistance. It's like having stupid but diligent assistant who's happy to copy&paste&adapt parts of code. I can't claim that I often use fully generated Copilot functions. Sometimes I do, often with significant rework, but that's because, as I said, I'm very picky. I paid GitHub $100 already and don't regret it. Though I think that Copilot has plenty of features ahead. For example finding obvious issues in the code would be very useful. Like typos. Another issue with Copilot is that it only generates new code. Imagine that I need to edit 10 similar lines. I edit one line and I'd like Copilot to offer other edits. Also UI is lacking. Like it generates 10 lines but I only like first line. Now I have to add 10 lines and delete 9. But I'm sure that those are obvious directions.
- wizeman 4y ago> Weird flex, as that code is like 90% boilerplate[1]. Isn't 90% of code boilerplate anyway? Also, didn't ChatGPT generate more than just the boilerplate? Didn't it interpret what I wanted and generated the code for computing the factorial as well, as well as modifying the boilerplate (e.g. the kernel module name, printed messages, function names, the module description, ...) so that it matches what the kernel module is supposed to do? Which is exactly what a human would do? Aren't you also missing the fact that I gave it a 2-sentence instruction and it "understood" exactly what to do, and then did it? Like a human programmer would do? Which, in sum, is totally the opposite of what you were claiming? > Everyone was freaking out about Copilot and no one seriously ended up using it because it just generates buggy (or copyrighted) code. Don't most programmers also generate buggy code at first? Don't they iterate until the code works, like what ChatGPT does if you give it feedback about the bugs and problems you've encountered? Also, Copilot and ChatGPT have different levels of capabilities, don't assume just because Copilot can't do something, that ChatGPT can't. ChatGPT is clearly a big step forward as you can clearly see from how everyone is freaking out about it. Finally, don't assume that these models are never going to improve, ever again.