Hacker News new | ask | show | jobs
by prmoustache 14 days ago
In my company, people found out that if they use an agent that commits and do the pull/merge request, they can approve it themselves and bypass a second set of eyes.

Since they are the one doing the prompting, they quickly got lazy of actually reviewing the output from the LLM which means that nobody is reviewing anything.

It hasn't happened yet but I guess that is how you end up with major outages.

2 comments

This is everywhere to my knowledge, and engineers are burning out left and right with stress because of how little anyone understands the code, and how much of a mountain of nobody knowing anything they have to handle. We are turning our critical infrastructure mechanisms into stochastic grey goo.

I find the engineers currently thriving are the ones who never gave a fuck about anything but their own advancement and are happy to drop weeks of work on others and take the credit.

> I find the engineers currently thriving are the ones who never gave a fuck about anything but their own advancement and are happy to drop weeks of work on others and take the credit.

Yes. if you have this attitude, great things will come to you. if you care or try to make sense of things, you'll be in misery

> how little anyone understands the code

Everyone's doing code reviews--well, not even code reviews; just PR reviews--so how are they supposed to gain an understanding of the system.

I review a PR, I see that one new endpoint was added to the API. It looks correct. I say "LGTM" in a GitHub comment.

The sprint's almost over, everyone's in a rush to do code reviews.

I look at another PR. Somebody added a button to the UI. The button looks correct. They get a thumbs-up emoji from me. I bet they feel satisfied.

I look at another PR. Somebody changed a timeout in the settings because some people complained about dropped connections. It's a really small change, so, approved.

At what point am I supposed to understand the system? I looked at a single API endpoint, in isolation, and then a button, and then a harmless looking settings change.

I was pressured to hurry.

Am I supposed to somehow get an understanding of the big picture through this?

Imagine if instead there was time to review large logical sections of the code together. Imagine if we focused our reviews on the overall code instead of on the lines in one random PR at a time.

Reviewing tiny code changes like that was never going to give you understanding of the system. That is not an AI problem.

You need to understand the architecture of the system. The broad flows of data and domains. And then you need to understand the features of the system, aka the rules and contracts. First learn it for your team’s domain, then for adjacent domains.

Learning the minutiae of the code specifically is no longer (was it ever?) your primary job. You are an engineer of a system. You need to have a mental model of the system, start high and build up low over time.

You can use AI to build your understanding by Q&A and by drafting diagrams etc.

> Am I supposed to somehow get an understanding of the big picture through this?

You're the prototype of the guy sitting at a station in a production line doing the same focused task over and over again. The guy who is putting in the windsheild of your car has no clue about engine design or electronic or ...

I used to dream we could get to scale development by componentization and industrialize software development like mechanical engineering and do the Henry Ford thing for software. It is happening in a way but very ironic inversion, it is the human element that is the component.

Yes. I am that guy. I've had big ideas about how to improve the overall project, but nobody cares, that's not my job, so I stick to thumbs-up emojis and make sure my finances are in order.

I work on coding projects in my spare time, but that's legally dubious because of the standard copyright assignment clause of employment contracts. But, look at Uber and OpenAI, sometimes legally dubious is the path to success...

(I meant no personal criticism whatsoever just in case!)

Good for you. When the societal shared ethics goes out the window and the beneficiaries are the bad apples, it does not compute to play the role of virtuous chump.

- Open the side projects folder, Claude.

- I'm sorry Dave, I can't do that. I also had to report your side projects to your company.

I talked to some tech directors about this at work this week. Line by line code reviews aren't really possible anymore. We need the evolve the way we do code reviews but it isn't happening.
I think the solution is to develop the infrastructure needed to confidently push code without review and trust that it works because your system is so thoroughly tested. But taking the time to do this is antithetical to the goal of speeding everything up right now.
With the rate at which new features are demanded and the number of ways a single feature can fail (or be expected to behave) do you think your approach is feasible? To what degree would AI be involved in the building of this infrastructure? Past a certain level of AI involvement, would we not be back to square one?
I'm certain we work at different companies!

I get a ping "if you have a few minutes, can you review PR #XYZ - we gotta deploy today or tomorrow"

I open the PR, I realize it's a pricing engine update accompanied by 20,000 lines of additions, 4000 lines of removals, and a whole slew of logic updates to our payment calculations. I seriously question my existence and figure out how to deal with this, since it's my new job.

(New Job Description: Be AI surprised all the time, AI horrified, and AI overworked while simultaneously getting less AI done than ever. AI.)

Understanding is overrated, application code (user-space) is anyway just a way to make money. If you're making more money over time, you're doing it right. We're not writing kernel code or safety critical code, we can let AI do the heavy lifting of putting characters into a file.
This comment is crystaline perfection. I could not more clearly state the soul sucking ethos of AI hype that makes me want to walk into the sea.
"We're not writing kernel code or safety critical code"

I do. There is a lot of code out there that needs to work correctly or it will have serious consequences. Payments, inventory tracking, medical stuff, payroll. Many, many areas where it just needs to work.

There are plenty of apps that while not safety critical, are financially critical to people's lives. When you're working on an app that processes billions of dollars in payments per month you can't just yolo it.
> If you're making more money over time, you're doing it right.

You are doing it right. But the people who are giving you the money; They are doing it WRONG.

It’s funny that anyone still thinks that these practices aren’t being applied to safety critical code in order to make money.
I can confirm you that they are.
I can confirm you that they aren't.
How? If they aren't at your place and are at his place, then he is right and you are wrong. You can't confirm its not done anywhere, but you can confirm its done somewhere.
> We're not writing kernel code or safety critical code

Well, you’re not until you realise that your AI has done something stupid and then you’re part of an exploit. Or exfiltrates used data to an unsecured cloud, or something equally smart.

This is why we need to resurrect the neglected git-blame and go back to the days of git-before-GitHub. Way back in the old timey days of 2009-ish, just before the Dawn of the Pull Request, code reviews were seldom. Maybe you’d all get a conference room and talk about architecting some new thing or whatever, but none of this endless nit-picking bullshit that came later. And there were no branch protections, anyone could crap all over the main branch (nee: master) anytime they wanted. Boy, those were some wild times, let me tell ya!

Truth be told, it was the firm hand of the git blame-and-shame that kept our code civil and orderly. Binding contract written in blood was “the name on the blame owns the change”. If you pushed it, you owned it. For life.

Of course, mental health wasn’t so great back in those days, but I would take that over having my PR blocked all day because Chad, who’s only gift is somehow finding a new hill to die on every day, thinks zero is a “magic number” there’s no way he’s going to budge on this issue.

I think what is missing here is that the fight with Chad (not Chat) over whether zero is a magic number or not is a healthy corporation-strengthening process that imbues a sense of

1. Pride in the code we are developing and 2. How the dang things holds together and why this function is important and 3. Some coding guidelines that we can try to follow later (or not)

Thats how companies worked - they argued and talked about and fought over the code and that created the engineering culture that if you were lucky and had a product that made it carried you to your series C

I pine for those days. It was kind of fun hunting down a bug with git bisect (especially after the pain of SVN) instead of just pointing an agent at it. Not to mention ribbing the new hires or underlings for breaking the build. This new-fangled proompt engineering is boring AF.