Hacker News new | ask | show | jobs
by webarchitect 48 days ago
I can think of so many times this has happened before. People getting used to MVC, Dependency Injection, ORMs. Sometimes the code is so large you only work on a part of it, so you have to get used to a lot of not knowing.

So how do we build confidence anyhow when we can't know everything?

I think first, standard checks - does it compile? What do static analysis tools say - code quality, passes SAST analysis? Linters? Style checkers?

Do the tests run? I'm not comfortable with the tests I write let alone the AI.. by adding fault injection (fuzzing, chaos), and mutation testing, I have a better degree of confidence in the tests and code.

Spend even more time getting to know the product instead. Maybe I don't know the code as well as I used to, but I know the product backwards and forwards. That helps me have some new confidence that I didn't really have before. Knowing the greater whole.

4 comments

Your comment made me think that people have been happily importing hundreds to thousands of dependencies into their projects that were written by some random guys on the internet, but they've just now started to become concerned they don't understand the code they're shipping.
Exactly right. Many never check the release notes of those libs on bump either. To this add copy & paste from Stack Overflow we used to do. People are just afraid of losing their jobs now, so naturally we all got defensive.
exactly right but think about it a bit, the responsibility is kinda off shored to the library owner and the library is used by many and battletested meanwhile

with ai the only one that use that code is only him and the reponsibility is still on him

Yes this is essentially my take I posted. We have been working at various levels of abstraction for a long time using framework, packages, and even programming languages themselves.
I'll take a look at your post. I think it's really good to point out that abstraction is something that we have sometimes accepted / sometimes struggled with our entire careers (lives?)

I think the real question here is how we rebuild some confidence and perhaps remove some fear.

> So how do we build confidence anyhow when we can't know everything?

Avoid known unreliable tools?

Something that made MVC, dependency injection, and ORMs more palatable is that there is typically a well-structured interface between "our code" and "their code". The current state of agentic dev rarely has AI doing its thing behind some abstraction layer. It's really more like a new coworker that needs to be steered toward team norms very quickly.

I think the main challenge is pressure for more productivity with AI. I often go back and forth about if I am scrutinizing too much (and not being as productive as I could be) or not enough (and shipping slop). Building the additional QA harnesses and feedback loops for agents seems like the best known path forward to accelerate with some safety, but it is still pretty challenging to context-fiy all of the nuanced judgements a seasoned dev team makes.