Live data from Hacker News

If AI writes code, should the session be part of the commit?

github.com

381–390 of 410 posts

Re: If AI writes code, should the session be part of the commit?

#381

Earlier quoted context omitted.

By that time you would’ve written the code yourself, only better.

I am sure this is partly tongue in cheek, but no, you can’t have written the code yourself in that amount of time. Would the code be better if you wrote it? Probably, depending on your coding skills. But it would not be faster. OP is talking about creating an entire project, from scratch, and having it feature complete at the end.

[dead]

Re: If AI writes code, should the session be part of the commit?

#382
post #312
post #51

I floated that idea a week ago: https://news.ycombinator.com/item?id=47096202 , although I used the word "prompts" which users pointed out was obsolete. "Session" seems better for now. The objections I heard, which seemed solid, are (1) there's no single input to the AI (i.e. no single session or prompt) from which such a project is generated, (2) the back-and-forth between human and AI isn't exactly like working wit…

The issue is that there is more HN submissions than the community is able to process. But you could say the same of the front page, which is mostly a fairly small sample of the good stuff that go through /new So you could treat Show HN as the same. Like what gets floated on /show is only a small sample of the good stuff in /shownew and be fine with the idea that a lot of the good Show HN just slip through the crack.…

Where is this deluge tho? In the last week how many have we seen hit the front page? A dozen? That Mathematica clone, the ZX spectrum emulator, the poorly named rtk, and…like 1-2 more are what I can remember from the last week that got popular.

That’s…pretty manageable.

Re: If AI writes code, should the session be part of the commit?

#383
post #51

I floated that idea a week ago: https://news.ycombinator.com/item?id=47096202 , although I used the word "prompts" which users pointed out was obsolete. "Session" seems better for now. The objections I heard, which seemed solid, are (1) there's no single input to the AI (i.e. no single session or prompt) from which such a project is generated, (2) the back-and-forth between human and AI isn't exactly like working wit…

> it's foolish to fight the future And yet, the premise of the question assumes that it's possible in this case. Historically having produced a piece of software to accomplish some non-trivial task implied weeks, months, or more of developing expertise and painstakingly converting that expertise into a formulation of the problem precise enough to run on a computer. One could reasonably assume that any reasonable-look…

>a plan detailed enough to reliably one-shot an implementation across several models.

What. Why should this be an output? Why if I make a project should I be responsible for also making this, an entirely different and much more difficult and potentially impossible project? If I come and show you a project that require required thousands of sessions to make I also have to show you how to one shot it in multiple models? Does that even make sense?

Re: If AI writes code, should the session be part of the commit?

#386
post #312

Earlier quoted context omitted.

The issue is that there is more HN submissions than the community is able to process. But you could say the same of the front page, which is mostly a fairly small sample of the good stuff that go through /new So you could treat Show HN as the same. Like what gets floated on /show is only a small sample of the good stuff in /shownew and be fine with the idea that a lot of the good Show HN just slip through the crack.…

Where is this deluge tho? In the last week how many have we seen hit the front page? A dozen? That Mathematica clone, the ZX spectrum emulator, the poorly named rtk, and…like 1-2 more are what I can remember from the last week that got popular. That’s…pretty manageable.

They’re in /shownew. the last 30 Show HN submissions were sent in the last two hours. I think that’s a lot more than what we used to see.

Re: If AI writes code, should the session be part of the commit?

#388
Absolutely not. It's a huge waste of resources, even for machines. We don't commit every false start that humans make either. If you MUST think like this, what you really want to do is have a two-phase generation process. Generate the SPEC in one session, then try to get an AI to compile it to code. However, our LLMs are not set up to be deterministic, so there is little benefit to doing this. There are also many tweaks that people want to make which are stylistic or nitpicky, which have nothing to do with the quality of the original spec. You don't actually want to document EVERYTHING unless you work in aerospace or something.

Re: If AI writes code, should the session be part of the commit?

#389

Earlier quoted context omitted.

When a human writes the code should all their slack messages about the project be committed into the repo?

Ideally, yes. Although Slack is a vendor lock-in and we need a better platform to archive the sessions.

You can scrape slack when you make the commit, and archive that.

Re: If AI writes code, should the session be part of the commit?

#390

Earlier quoted context omitted.

The thought you have while coding should be part of your workbook. This is a distillation of all the input and processing at the time, which can be a valuable clue for bug hunting and refactoring.

yeah lets commit all your thoughts too, and your personal journal. please also include a picture of your children and wife in the commit

This is an extremely ugly response and you should feel shame.
Post reply on HN