frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: What is your #1 practical lesson or "aha" moment from coding with AI?

5•johndavid9991•3h ago
As a developer, my own workflow has shifted completely over the last few months, but I feel like I'm still uncovering the best patterns. I'm curious about the specific inflection points where things clicked for others. Was it a shift in how you prompt, a change in your tech stack, or learning when not to trust the output?

Comments

kasey_junk•2h ago
The chat metaphor held me back for too long. These are black box functions that produce text and should be treated as such.

It came to me gradually that I was slowly replacing each part of my skills with scripts that took defined inputs, validated them, triggered agent sessions with defined prompts and spit out validated outputs in defined formats.

Now I do it proactively, if it looks like a function or a loop, or workflow encode it as such. My outcomes are better, I can use cheaper models and it’s easier to test.

kingkongjaffa•2h ago
Do you have an example?
skydhash•1h ago
Not GP and I’m a general AI opponent, but it is the same strategy I adopted at work due to mandates.

I can’t give you a past example(they’re all related to $work). But you can probably work out a skill that downloads an emacs package, extract all user options, provide general configuration frameworks, prompt you with those and then write the use-package incantation for that.

The pattern is to systemize your decision making, figure out decision node, and then provide a framework to solidify that structure. It will rigidify it, but you gain in speed that way. Basically writing like the AI is an idiot. It’s not, and it’s not intelligent either. Bit you have to make the process explicit.

In most cases, a deterministic script would be better. The AI advantage is flexibility. In the above example, the flexibility is required for the configuration recommendation. Everything else before that component, and after should be very explicitly and even specified as small software to make it stricter and less prone to errors.

jaredXX•2h ago
Building a web app in a language I simple couldn't code in if put in from of Vim terminal (Flutter). The ability to iterate and express ideas at almost the speed of thought must have been what passengers felt like the first time they got in an airplane or car.
rimeice•2h ago
Don’t use it for coding. Well at least using it for everything around coding rather than just coding itself was my aha moment, I realised I could understand new codebases way faster, brainstorm, sense check ideas draft better thought out arguments to my perspective and generally ask stupid questions. All of which has significantly increased my learning as a developer. Using it for coding itself is another matter.
dredmorbius•2h ago
This Ask is quite similar to one which ran a couple of weeks ago, "Ask HN: What was your "oh shit" moment with GenAI?" (1,182 comments):

<https://news.ycombinator.com/item?id=48406174>

Unless HN mods want to add this as (another) regular recurring feature, it might be considered a dupe.

AnimalMuppet•19m ago
No, I think it's a different question. That was "what were you sure that AI couldn't do, and then you saw it do it". This is "practically, how do you make it work"?
downbad_•2h ago
This is very similar to a recent Ask HN post that made the Frontpage.

Ask HN: What was your "oh shit" moment with GenAI?

https://news.ycombinator.com/item?id=48406174

hgsocket•52m ago
getting know lot of new tech that actually have been around for years

Ask HN: After you ship a feature, what happens to what you learned?

3•gaggle_dk•1h ago•3 comments

Ask HN: Will programmers write more efficient code during the memory shortage?

141•amichail•1d ago•235 comments

Ask HN: What is your #1 practical lesson or "aha" moment from coding with AI?

5•johndavid9991•3h ago•9 comments

Ask HN: Do you use Claude Code, Codex, or something else?

4•JohnDSDev•4h ago•13 comments

Ask HN: Is anyone using the A2A protocol?

92•asim•2d ago•41 comments

Ask HN: What technique do you use to make Claude Code deterministic?

3•hbarka•8h ago•5 comments

Ask HN: What do you care about? What is your joy and purpose?

7•bix6•10h ago•17 comments

Ask HN: How to handle kernel struct changes (e.g. iov_iter) in eBPF?

3•morolis•10h ago•2 comments

Ask HN: What tools are you using for AI-assisted code review?

21•agos•2d ago•21 comments

Ask HN: Need advice on distributing and testing what I build

3•darth-pixit•12h ago•2 comments

Ask HN: Due to spam on GitHub, what platforms can I move my projects?

54•ciwolex•6h ago•56 comments

Forked CozoDB to give agents cognitive primitives

3•shanrizvi•21h ago•0 comments

Ask HN: What is the coolest tech progress outside AI?

13•vantareed•1d ago•9 comments

Ask HN: Is anyone else leaving AUR?

7•lordkrandel•1d ago•6 comments

Ask HN: What's a simple app you'd build if you had a weekend?

4•akashwadhwani35•19h ago•7 comments

Ask HN: I'm lost. How can I define ICP (Ideal Customer Profile)?

5•snowhy•2d ago•6 comments

Ask HN: Is there a way to stop the animated Google Doodles?

12•arnejenssen•2d ago•13 comments

Ask HN: Open-Source Intelligence

3•silent_butagrim•1d ago•5 comments

Ask HN: Is there a recognized standard for swarm intelligence benchmarking?

5•stephanieriggs•1d ago•1 comments

Self-adapting and mutating LLM based viruses/worms

3•rozumbrada•1d ago•4 comments

Ask HN: How do you effectively communicate or present?

10•hnthrow10282910•2d ago•7 comments

Ask HN: Conflicted about founding engineer role

8•gondolin1683•2d ago•18 comments

Ask HN: Do you find vibe coding / agentic engineering to be fulfilling?

10•uejfiweun•2d ago•13 comments

Trillions of dollars spent just to work on customer services?

8•YihaoZhang•1d ago•3 comments

Ask HN: What's a prompt you've written that you're genuinely proud of?

11•akashwadhwani35•2d ago•7 comments

Ask HN: Using OPA/Rego to secure MCP tool execution. Does it make sense?

5•wmolino•18h ago•1 comments

Ask HN: Has anyone had success with SBIR grants and what is the process like?

11•lyfeninja•2d ago•8 comments

Anthropic pauses credit change for Claude Code

36•fabianlindfors•5d ago•12 comments

Ask HN: Are other people seeing a spike in IT problems with businesses?

14•PaulHoule•3d ago•11 comments

Meetup.com login appears to be exceeding its reCAPTCHA Enterprise quota

4•infl8ed•1d ago•0 comments