←back to thread

358 points maloga | 4 comments | | HN request time: 0.21s | source
Show context
danjl ◴[] No.45005657[source]
The LLM started with a three month headstart, both in terms of code, using the previous game as a template, and more importantly, all of the learnings and mistakes you made in the hand-coded pass.
replies(4): >>45005731 #>>45006290 #>>45006581 #>>45007911 #
1. AIPedant ◴[] No.45006581[source]
Yeah, I figured this was clickbait but my jaw still dropped a bit when I saw this:

  I cloned the backend for Truco and gave Claude a long prompt explaining the rules of Escoba and asking it to refactor the code to implement it.
How long would it take the human dev to refactor the code themselves? I think it's plausible that it would be longer than 3 days, but maybe not!
replies(2): >>45006919 #>>45007521 #
2. globular-toast ◴[] No.45006919[source]
I don't know I feel like rewriting a backend for one card game into a backend for another wouldn't be that difficult, especially for the original dev. Once you've worked out how to represent cards and code the rules you're basically there for any card game.

Also, a refactor is by definition rewriting code without changing the behaviour. Worth knowing the difference.

3. dingnuts ◴[] No.45007521[source]
As an LLM hater, I have to say, this is exactly the use case I want code generation for. If I need to figure out the problem as I develop, which is the case for new code, the model can kindly get out of my way. But if I have already written a bunch of code and I can explain the problem with the understanding that I've gained from my implementation and have the bot redo the grunt work? fine with me..
replies(1): >>45008314 #
4. GaggiX ◴[] No.45008314[source]
>As an LLM hater

I thought this was the start of a joke or something, I guess if you use LLMs you are a "LLM lover" then.