Live data from Hacker News

Can LLMs write better code if you keep asking them to “write better code”?

minimaxir.com

431–440 of 461 posts

Re: Can LLMs write better code if you keep asking them to “write better code”?

#431
post #372

Earlier quoted context omitted.

Well if you or anyone else that has good optimization and performance chops http://openlibrary.org/ has been struggling with performance a bit lately and it's hard to track down the cause. CPU load is low and nothing too much has changed lately so it's unlikely to be a bad query or something. Main thing I've suggested is upgrading the DB from Postgres 9, which isn't an easy task but like 15 years of DB improvements p…

Is there source code / a GitHub link with more information?

https://github.com/internetarchive/openlibrary

Re: Can LLMs write better code if you keep asking them to “write better code”?

#432

Earlier quoted context omitted.

> "think through this step by step" Has always made sense to me, if you think how these models were trained. My experience with great stackoverflow responses and detailed blog posts, they often contain "think through this step by step" or something very similar. Intuitively adding that phrase should help the model narrow down the response content / formatting

Then why don't they hard-code the interface to the model to pretend you included that in the prompt?

...they do. It's called "o1".

Re: Can LLMs write better code if you keep asking them to “write better code”?

#433

Earlier quoted context omitted.

A patient cannot become a doctor by asking AI to explain and prescribe treatment based on symptoms. That's what Simon is trying to say.

That statement is not being discussed as it is obvious. The question is "can AI be a developer", not "am I a developer if I use an AI who is a developer".

The answer to your question is "can AI be a doctor".

Re: Can LLMs write better code if you keep asking them to “write better code”?

#435

Earlier quoted context omitted.

If your position is to find fault then that’s what you will accomplish.

I'm speaking from experience and observation of the past two years of LLM assistants of various kinds that outsourcing code production will atrophy your skills generally and will threaten your contextual understanding of a codebase specifically over the long term. If that's a risk you're willing to take for the sake of productivity, that can be a reasonable tradeoff depending on your project and career goals.

It'll atrophy whose skills?

I'm using it to increase my own.

Re: Can LLMs write better code if you keep asking them to “write better code”?

#436

Earlier quoted context omitted.

That statement is not being discussed as it is obvious. The question is "can AI be a developer", not "am I a developer if I use an AI who is a developer".

The answer to your question is "can AI be a doctor".

This doesn't make any sense: it's a question, not the answer. I don't see the relevance of doctors to the current topic anymore. Your initial reference made sense as an analogy (although the analogy itself was irrelevant), but the new reference doesn't make any sense whatsoever.

Re: Can LLMs write better code if you keep asking them to “write better code”?

#437

Earlier quoted context omitted.

In my experience the trouble with LLMs at the professional level is that they're almost as much work to prompt to get the right output as it would be to simply write the code. You have to provide context, ask nicely, come up with and remind it about edge cases, suggest which libraries to use, proofread the output, and correct it when it inevitably screws up anyway. I use Copilot for autocomplete regularly, and that's…

After 6 months of co-pilot autocomplete in my text editor feeling like an uninformed back seat driver with access to the wheel, I turned it off yesterday. It’s night and day to what I get from Claude sonnet 3.5 in their UI, and even then only on mainstream languages.

I like copilot for completing one liners.

Also Copilot Chat in VSCode works like Cursor IDE if you provide #codebase in the prompt.

Re: Can LLMs write better code if you keep asking them to “write better code”?

#438

Earlier quoted context omitted.

In my experience the trouble with LLMs at the professional level is that they're almost as much work to prompt to get the right output as it would be to simply write the code. You have to provide context, ask nicely, come up with and remind it about edge cases, suggest which libraries to use, proofread the output, and correct it when it inevitably screws up anyway. I use Copilot for autocomplete regularly, and that's…

After 6 months of co-pilot autocomplete in my text editor feeling like an uninformed back seat driver with access to the wheel, I turned it off yesterday. It’s night and day to what I get from Claude sonnet 3.5 in their UI, and even then only on mainstream languages.

[deleted]

Re: Can LLMs write better code if you keep asking them to “write better code”?

#439
post #435

Earlier quoted context omitted.

I'm speaking from experience and observation of the past two years of LLM assistants of various kinds that outsourcing code production will atrophy your skills generally and will threaten your contextual understanding of a codebase specifically over the long term. If that's a risk you're willing to take for the sake of productivity, that can be a reasonable tradeoff depending on your project and career goals.

It'll atrophy whose skills? I'm using it to increase my own.

Your coding skills. If you're a new programmer, I can't emphasize this enough: Typing is good for you. Coding without crutches is necessary at this point in your career and will only become more necessary as you progress in your career. I'm a 25 year veteran professional and there's a reason I insist on writing my own code and not outsourcing that to AI.

Using AI as a rubber duck and conversation partner is great, I strongly suggest that. But you need to do the grunt work otherwise what you're doing will not lodge itself in long term memory.

It's like strength training by planning out macros, exercises, schedules and routines but then letting a robot lift those heavy ass weights, to paraphrase Ronnie Coleman.

Re: Can LLMs write better code if you keep asking them to “write better code”?

#440

Earlier quoted context omitted.

> Btw, _whose_ digits are we talking about? You seem to be under the impression that whose is not a form of which , which is incorrect. whose:which::whose:who

The sum of the digits of which equals 30.

Are you sure you don't mean "The digits of which sum to 30"?

There being one legal way to say something isn't evidence that other ways are illegal. It remains the case that whose bears the same relation to which that it does to who.

Post reply on HN