Live data from Hacker News

Show HN: Huzzah – a novel approach to coding with AI

danielvaughn.dev

111–120 of 178 posts

Re: Show HN: Huzzah – a novel approach to coding with AI

#111
There's a problem being missed here. You're trying to make a big complex thing from a little simple thing. It's like trying to take a hash and turn it back into the original data, without knowing what the original data looked like.

You can get close, but things will be missed. So you'll edit, or provide more info to the AI outside your pseudocode, and maybe get to what you want. But another change will undo the fix you made, because whatever hidden AI context was needed for that first fix is gone now.

The pseudocode isn't a bad idea in terms of trying to visualize a complex idea. But just like writing code, humans suck at truly groking all the implications of their complex ideas, and make mistakes. We need formal methods to double-check those complex ideas to avoid the mistakes. Some kind of formal representation of your idea, in something like a cyclical graph, could have checks on it, to make editing it less error-prone. But you need to get the human out of the loop, or you'll be trapped in the same world we've always been in.

Re: Show HN: Huzzah – a novel approach to coding with AI

#113
post #36

I think the reverse direction is more important: taking a massive complex problem/codebase and decomposing it to short pseudocode. Then you could edit the pseudocode and compile it back into the system. That's the way software engineers working on large projects work anyway: you first gather context on the state of the system and read it at a level you can understand. Then you propose a change on the simplified repre…

This is the entire domain of programming language design, except with the goal of doing it reliably and deterministically enough that you didn't need to look past the short version of the code at the compiled output.

We all know how badly that failed once we started coming up with AI, and could outsource dealing with all that bullshit. Nobody wants this -- they ran screaming as soon as it was viable.

Re: Show HN: Huzzah – a novel approach to coding with AI

#114
post #48

Earlier quoted context omitted.

Clever! :) Difficult! :(

I don't think it's particularly difficult, or clever. You can prompt your way into this with frontier models, especially if your codebase is designed for it from the ground up (architecture well factored, documented, tested, harnessable, so that it even has a pseudocode representation in the first place). The biggest issue is you end up leaning heavily on the quality of the model. Lower fidelity models tend to make a…

Massive, complex codebase…short pseudocode.

The fact that you don’t think this is particularly difficult makes me questions everything after that statement.

Re: Show HN: Huzzah – a novel approach to coding with AI

#116
The downside is that... you don't get to brainstorm with the agent about ways to implement stuff. Architecture, design etc. It would feel like.. you're on your own. Of course you could just a regular chat interface alongside but theb you deal with two interfaces. Maybe this could be a target format for another chat agent that you talk to.

Re: Show HN: Huzzah – a novel approach to coding with AI

#117

I think you’re probably missing why it’s exhausting. The problem is not writing English, it’s the rate of change. Programming is meditative, it is a thinking process, the code you output is an artifact of your thinking. Agent-based development… there is no thinking, no meditation, you’re delegating the thinking to a machine, you’re just barking what you want at it, incessantly, endlessly. For businesses it makes sens…

> Either be a programmer and code, or be a delegator and delegate

Even if you just enjoy programming for the sake of programming, you can use it to review your code and then hand verify its findings, or prototype and explore feasibility of something you will in the end fully code yourself. For most people that enjoy programming there are still tasks they don't enjoy, like making a bunch of cross-language bindings for something that doesn't have an automatic way to generate them.

Re: Show HN: Huzzah – a novel approach to coding with AI

#118

Earlier quoted context omitted.

If we really could develop in UML, that'd be a nice sweet spot. But everything I read about the rise and fall of UML is: it's great to start, but never keeps pace with day to day code changes and becomes almost useless out of the gate as real edges force different paradigms. Now, if you could wake my AI up in the middle of the night and by morning my UML is is perfectly aligned, or the reverse, my UML realigns the co…

The AIs can read images and charts. If you want to try programming with UML, you should absolutely try it. My guess is that you'll initially be absolutely gobsmacked, but then the problems will start to show and it'll be frustrating as well.

Let's be honest, programmers can't program from UML specs.

Re: Show HN: Huzzah – a novel approach to coding with AI

#119
It is useful to know the level of how "hands-off" to specify directions for each task. With some experience one can learn when to specify the high level requirements, and when to stop and think about the problem at hand.

For example, with frontend, I can get an LLM to design half a page 80% to my satisfaction with two paragraphs worth of a prompt. "It should look like so, and have a text box here, and room for a demo there".

With ML training or backend or user-facing code, I might instead spend a paragraph thinking out my design intentions for a single function or even a single line, more for myself than the LLM. A harness generates a plan based on that paragraph, which one can then comment on and review the pseudocode it provided, ensuring it aligns with expectations.

Lastly have the LLM output some sort of documentation and "here's what I did" after each change. Your final step is to handwrite (paraphrasing what it gave) into any docs or commit messages, and ensure your commits are small enough to keep this maintainable. Paraphrasing the LLM, rather than the LLM paraphrasing you, is helpful to ensure the commit messages make sense to you three months from now.

Re: Show HN: Huzzah – a novel approach to coding with AI

#120

Earlier quoted context omitted.

I don’t mean to imply that making things with these tools is lesser, or that it doesn’t require some skill, but it is fundamentally different to programming. I’m glad you’re able to bring new things to life with these tools, that’s a great thing :) My broader philosophical take is that we, programmers, lived through a golden age where our skills used on our terms were some of the most valuable skills. The golden age…

What were programmers' terms?

The code
Post reply on HN