Hacker Newsnew | past | comments | ask | show | jobs | submit | stingraycharles's commentslogin

That project in itself looks very interesting. How are people using it, any examples of how people get this into an actual report / CI test / benchmark / whatever ?

Code metrics in general aren’t that widely used. I’ve only ever worked at one place (a bank) that tracked it, and that was only because sonarcube had it built in.

While a lot of metrics make intuitive sense, we don’t have that much hard evidence to prove or disprove their value. Part of it is the whole “if a metric becomes a target, it ceases to be a good metric” thing. Adding the checks to a large existing project probably has negative value. But I think it’s worth doing for greenfield projects.

For humans, these should just be advisory. But for LLMs I’m happy enough to make it a blocking check.

I keep thinking of doing an experiment where I give the same LLM the same problem, and only change which metric is enforced. And then see if any of them have a noticeable effect on correctness/maintainability.

> any examples of how people get this into an actual report / CI test / benchmark / whatever ?

Yeah they have examples of adding it to CI, or local checks, generate html reports, etc in their docs.


I think the future of development will be a lot of automated quality checks like these on AI-drafted code that humans review and ensures that it doesn't muck up the business logic and actually fulfills the acceptance criteria. that said, I don't think existing toolsets are really great at actually measuring code quality

I've been in the process of reviewing and validating a lot of tools like this (qlty, Sonarqube, fallow, etc) and the false positive rate is anywhere from 20% to 80% for a lot of our sniff tests (zizmor produces an overwhelming majority of false positives here for what feels like arbitrary and very context-dependent GHA requirements)

the last thing I want to do is to annoy the hell out of our devs by requiring checks like these to pass especially since it's only a small percentage of them who vibe code everything and then also vibe response to code reviews. I feel like that's the anti-pattern that we'd push people towards by requiring checks like these to pass

another avenue of exploration has been requiring test coverage but also good test quality metrics (eg are there negative tests? mutation testing? empty asserts?) something that seems quite easy to spin up into a skill and pair with a deterministic harness. trash-tests is a neat little project that incorporates some of this: https://github.com/frangelbarrera/trash-tests (disclosure: I am not the repo owner or even a contributor, just a quality nerd who loves underdogs lol)

all in all, it really does feel like we'll need a revamp of the SDLC with our current expected velocities


Yep, agree on annoying developers. So just to cover usability it can run in warn and block mode to address this.

Though to the bigger point of your comment, yes SDLC are becoming faster. We can churn out code at a ridiculous rate. However, doesn't mean it's good code. And hence, there are studies showing things actually slowing down because reviews pile up.

I guess I look at the Change Impact formula (and https://impactgate.officefloor.net implementation of it) as threshold tool. Small changes that aren't contributing to god classes, just let through. When things start to smell, the files involved get marked for review.

Ideally this then can cut down on review time and allow overall increased velocity.

But yes relies on trusting the AI to do "simple" things


Yep, this all actually started because of experimenting with my own open source project https://officefloor.net (giving full disclosure)

I was testing the additive pipeline style of OfficeFloor against the mutative handler style of Spring. I was looking to see what factors could be used to allow AI to make long on going changes (experiment is 60 changes to an end point, where all add functionality and every 4th change is mutative on existing rules). Then I watch how AI manages to make the 60 changes in each architecture.

I've done many runs and you are quite right about Goodhart effect in giving it the metric. Never knew Spring code could be written so badly.

I've tried runs with better prompting also and I'm starting to find the key factor is actually the architecture itself.

From my initial findings, it's seeming that additive pipeline architectures hold up much better against AI slop than our typically single method web handler architectures.


> Tighter integration than UK

Sounds like it could be a solution for the UK as well, which begs the question: why wasn’t a similar proposal worked out with the uk?


Because the UK wanted out, not in. You can work out solutions only when you are looking to work out solutions.

The UK left and wasn't even able to make proper deals for exiting the EU, their own Brexit caught them by surprise and it was total chaos for a long time. They could now try to get closer integration with the EU but there doesn't seem to be much will for it in the UK.

Title misses a (2020)

Yeah but that doesn’t work when you’re using C++ to implement another language where people can do anything they want, including circular references.

Perhaps the external enemy being able to do these things is, in fact, their own failure in a way.

Not really, I do not buy that. Ukrainian intelligence can sabotage train tracks deep within Belarus and Russia. And given how convient it would be to blame Russia here I wonder why they do not.

I’ve just asked a friend of mine who lives in PNG and yeah, this definitely happened. Nowadays it doesn’t happen anymore except potentially in some insanely remote areas.

Supposedly the Japanese during WW2 also resorted to cannibalism.


President Bush (snr) was nearly eaten by Japanese soldiers:

https://www.reddit.com/r/HistoryMemes/comments/qr1zth/in_sep...

(before he was president!)


> Supposedly the Japanese during WW2 also resorted to cannibalism.

Germans and Russians did too. Most humans with a survival instinct will turn to cannibalism if it their only means to survive. This is completely unrelated to cannibalism as a cultural practice.


Apparently cannibalism after sea disasters was considered acceptable, as long as there was a fair lottery!

https://en.wikipedia.org/wiki/Cannibalism_at_sea


Rewrites require a lot of effort, significantly more than just adding comments. It’s a pragmatic tool until you actually have the time to do the rewrite.

I never said rewrites.

And the more you put in procrastination-encouraging half-solutions, the worse your code base gets.


This was already known when Apple Intelligence was first announced years ago so nothing surprising there.

Seems like this is a draft / filler that was supposed to be updated. At least it’s not AI.

Yeah as long as the audience is there, people will keep posting on Twitter.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: