Live data from Hacker News

ChatGPT Changed How I Write Software

readysetcloud.io

41–50 of 51 posts

Re: ChatGPT Changed How I Write Software

#41
post #37
post #17

Earlier quoted context omitted.

My problem with GPT-4 so far is that it's most impressive at doing things that I don't really need any help with, but when I ask it something that I find genuinely challenging, it's error prone and often generates suboptimal code. Of course, it's an extreme far cry from Markov chains and earlier models, but at the end of the day, I think it's skipping too many steps right now. To be clear, it's still really impressiv…

I think things you don't need help with are exactly the good case where it shines. You give it some context, and get back working (or close to it) code - make any modifications necessary and ask it to generate unit tests. It's easy to validate and saves you 15-30 mins or more. Half the time I ask it for help with something completely foreign and I can't properly diagnose or fix the issues - without taking the time to…

I've definitely given it a try for some of that, but the truth is I just don't have that many greenfield projects. Most of my work is maintaining existing code, and CoPilot/GPT-4 haven't proven as useful for me at that.

When it comes to new, greenfield projects, I really do try to be ambitious generally speaking, and this leads me into trouble. I gave it a try to see if it could generate code for something where I needed just a slightly tricky data structure maneuver. It was a nicely self-contained problem, pretty much ideal for this sort of thing, but it still generated code that didn't compile and wasn't optimal.

To be fair, it was kinda close, which is great. But overall it wasn't worth the time: I'm pretty slow, but most of my time is NOT in trying to implement basic things, it's trying to come up with what I need to implement in the first place. So I definitely tried spitballing with GPT-4 a little bit to try to get an idea of whether or not that was a good idea. Truth is, it's a bit hit-or-miss.

Here's my take:

- For programming tasks, it's just skipping too much stuff. I think the future for LLMs doing complex tasks is definitely going to depend heavily on huge context windows and approaches like langchain. That said, I think today you still can't really get something that resembles a "self-driving" robot programmer, because it's just lacking the depth necessary.

- For language tasks, it's fantastic. When it comes to language tasks, it really doesn't feel like it's skipping anything, it feels like it has a genuine understanding of language. I'm not sure if we're there yet, but I am hopeful for the future of machine translation using LLMs: You can't talk to Google Translate about the context your string will be used in, but you CAN do that for GPT-4, and while I'm not really fluent in any language aside from English, cross-checking its work, I think it's at least a lot better than what you can currently do using DeepL and Google Translate for common languages. (To be fair, even LLaMA finetunes have been SHOCKINGLY useful for this use case in my experience. They hallucinate a bit too much to be useful, but the fact that the hallucinations usually seem to lie close to the answer leaves me impressed given that it's a several GiB bundle of data on my SSD that runs on CPU only.)

Also, GPT-4 is just going to be epic for people learning new things. I am enthusiastically excited about the ability to just auto-generate some example code for some kind of thing I'm not familiar with. Even if it's nearly useless, it can probably get you pointed in the right direction and learning what terms you need to google for.

Re: ChatGPT Changed How I Write Software

#42
post #32

Earlier quoted context omitted.

I've gotten pretty good at getting ChatGPT to do what I want. I wrote about it here, https://zchry.org/words/building-a-brand-identity-with-code , but that's probably still light on details for you. There really isn't any magic bullet I don't think, every case is unique and involves a lot of trial and error. The original prompt was something as simple as "You're going to help me build a plugin for figma that draws Li…

Off topic, this is super impressive website. Thanks for sharing.

Thank you!

Re: ChatGPT Changed How I Write Software

#43
Unfortunately for this poor foolish man, he has spiked his own credibility with his zeal for AI. I mean, aren’t you kind of dismissing this post as “oh it was probably written by ChatGPT.”

One indicator of low credibility is that he keeps saying “this saved me weeks of work” for things that look like they might take a few minutes to do with a spreadsheet, or else could be Googled, or for which there are already free tools, or frankly don’t even need to be done.

I have a bias about his project that I will admit: he seems to be yet another one of those smug entrepreneurs who’s goal in life is to contribute nothing creatively or intellectually to the world. A parasite. Fills me with loathing.

Re: ChatGPT Changed How I Write Software

#44

Earlier quoted context omitted.

For issues 1 and 3, I usually have success asking ChatGPT to correct them. Ie "Can you write this with fewer callbacks using async/await?" or "Can you make this code faster to execute?"

Right that's what I mean, it requires "fiddling" to resolve. I think these could both be solved with a larger context, where you could include a style guide.

Thanks, I misunderstood.

> I think these could both be solved with a larger context, where you could include a style guide.

Hm, I'm not so sure. If you tell ChatGPT that good code has something wrong with it, it will overcorrect by modifying the working code, usually making it worse or even breaking it!

IMO, this is where you need a human in the loop, to recognize the deficiency and tell ChatGPT what to correct. Maybe in GPT-6 that won't be necessary and human programmers will be obsolete, but not today.

Re: ChatGPT Changed How I Write Software

#45
i use gpt4 daily.

it’s not very good at writing code, but can write code in small well defined chunks.

i’m working on a game with blender, cpp, physx, and wickedengine.

it writes a lot of python for blender with prompts like:

blender. python. apply transforms to every object unless X.

these tend to work, if scoped small enough, and any exceptions or failures are put as followup prompts.

writing python for blender is more annoying than hard, so this is great.

the other type of prompt i use a lot is like this:

blender. did X. expected Y. got Z. why?

i use prompts like these a lot, for cpp, physx, and wickedengine. often i ask for code, but not to copy it verbatim, but because i’m thinking in code.

these types of prompts usually output a list of possibilities. almost always the list contains what i’m looking for. usually it’s the first item.

a gamedev prompt might be:

wickedengine. code. how to rotate normal 90 degrees right on y in world?

Re: ChatGPT Changed How I Write Software

#46
post #27
post #21

Earlier quoted context omitted.

I don't have any super concrete examples, but I can confirm it _helps_ in writing software for me. Things it has helped with, that are now part of a codebase I work in and get paid for. Generated example css to center a text element onto a sibling image. I'm decent at css, but I didn't know I could do this easily. This definitely saved me a decent amount of time Write some boilerplate react hook wrapping over an axio…

Does the ChatGPT plugin for PHPStorm actually analyze your existing code? As-in... can you ask it to code something using your pre-existing utility functions, classes, and so on?

The one I use is CodeGPT. It doesn't. It's a simple chat-like wrapper over the GPT4 api.

Re: ChatGPT Changed How I Write Software

#47
I have found ChatGPT to give bad answers for more complicated questions. For example, the other day I encountered some TypeScript code that surprised me. Basically it was:

class A { @SomeDecorator() x: string }

const value: A = {x: "foo"};

I was surprised that it compiled at all and structural typing applied to classes, even though '!(value instanceof A)'. But it worked! I asked ChatGPT for more information about this, and basically it just told me that it wouldn't compile, which was obviously wrong.

Re: ChatGPT Changed How I Write Software

#48
post #2

Yeah I'm not convinced. As usual with most pro-ChatGPT posts I see, there is little to no actual useful information on how to use ChatGPT practically. When I read one of these articles or posts, I usually expect to see concrete prompts, their output, and how they can be used to speed up development. Instead all I see is generic vagueisms; "it helps me write unit tests", "it helps me code faster", or in the case of th…

[deleted]

Re: ChatGPT Changed How I Write Software

#49
It’s not a bad article. Only feedback I would have is about this passage:

“”” If you routinely pass in a dataset to AI, it can identify anomalies and watch to see if it settles or even reason why the anomaly occurred in the first place. “””

This is not a great use for LLM’s. AI? Sure. But not this type of it.

Re: ChatGPT Changed How I Write Software

#50
post #17
post #3

Earlier quoted context omitted.

Have you tried GPT-4? Its at least an order of magnitude better than 3.5,and has rarely produced code that doesn't compile for me. The difference is night and day.

My problem with GPT-4 so far is that it's most impressive at doing things that I don't really need any help with, but when I ask it something that I find genuinely challenging, it's error prone and often generates suboptimal code. Of course, it's an extreme far cry from Markov chains and earlier models, but at the end of the day, I think it's skipping too many steps right now. To be clear, it's still really impressiv…

> My problem with GPT-4 so far is that it's most impressive at doing things that I don't really need any help with

That's actually what I like about it. It's pretty good at doing routine tasks that I easily could do, but which are boring and/or time-consuming. That frees me up to do more interesting stuff.

One example I've given here before is porting an extension I wrote for the Atom text editor to VS Code. I have no doubt that I could learn to write extensions for VS Code, but using ChatGPT meant that I didn't have to waste hours learning how to do that. I just took the skeleton code generated by ChatGPT, dropped in my pre-existing code, and boom... done. Since learning to write VS Code extensions isn't my primary goal (or a secondary goal, or even a tertiary goal), that was a clear win for me.

I put off switching to VS Code for far too long after Atom was EOLed, just because I didn't want to take the time to learn how to port my extension.

Post reply on HN