4 ms·
I probably spend 5-10% of my time on average, and more in bad situations, going through code trying to purge past mistakes. Part of why this takes so much time
by hinkley 3y ago
I probably spend 5-10% of my time on average, and more in bad situations, going through code trying to purge past mistakes. Part of why this takes so much time is that there’s always some special idiot who is writing new code in the bad way and won’t stop.
But they are typically lazy and copy and paste that code from existing places. If you can remove the last copy from the code, they will finally stop.
And now that special idiot is a piece of software that never sleeps, never eats, and never forgets? What could go wrong?
- gjadi 3y agoWisdom of the crowd is the hypothesis made here I guess.
- hinkley 3y ago"Think about how dumb the average person is, and then realize that half of them are dumber than that" -George Carlin The wisdom of crowds, if it applies to teams, is in communication. I talk you out of cutting corners, and sometimes you talk me out of it. There's no communication in a training corpus. You just get the average of all of the code that wasn't so horrible that people stopped what they were doing to fix it. Which is to say, half of the code is barely tolerable.
- lopkeny12ko 3y agoThese are exactly my thoughts. This just sounds like a bot to regurgitate the same mistakes over and over again. I'm struggling to understand who at Google actually thought this was a good idea? Or is this just a novelty research project with no practical use?
- passwordoops 3y ago"Did you say this is using an LLM? SHIP IT!!" is my guess.
- Arainach 3y agoGoogler, opinions merely my own: Google's monorepo and tooling for changes across the entire repo make it possible and common to fix entire classes of mistakes at once. Bad patterns lingering in copy/paste is not an issue in practice due to a combination of such changes and linter presubmits that identify and flag any recurrence in the future.
- redleggedfrog 3y agoWhat I want is to write less code. I'd like automated analysis help with finding better more concise ways to render the logic. More code != better.
- JustSomeNobody 3y ago>More code != better. >more concise ways to render the logic This isn't better either. Edit before the shitstorm: This isn't necessarily better either.
- hinkley 3y agoWhen I'm looking at code, I don't want to read War and Peace. But I also don't want to read Haiku either. All the burden is on the reader, and there are many readers. Usually what I want is a short story. Long enough to be accurate, short enough to lose distracting and unnecessary information.
- hiddencost 3y agoI suppose I'm excited for the opposite reason: It's much easier to get one model to change its behavior, than 1000 software engineers.
- qup 3y agoThe whinging we hear is firmly anchored to the timeline on which humans improve, and the extent to which they improve.
- avgcorrection 3y agoWhat I’ll decline: Using LLMs to write more code What I’ll buy: Using LLMs to write less code (maybe even delete a lot)
- jvalencia 3y agothis
- codethief 3y ago…or to do annoying refactorings!
- TremendousJudge 3y agoI would not trust an non-deterministic system to do a refactor on a production system -- I would have to review the whole thing. Isn't it quicker to just do it myself with my regular deterministic tools?
- onjectic 3y agoI’m going to start calling all of my co-workers non-deterministic systems.
- TremendousJudge 3y agoThe difference is that your co-workers sign on their own work -- if it breaks, it's their responsibility. If you commit some code, and it breaks, it's on you, no matter which fancy tool you used to write it.
- 8note 3y agoGenerally if you write some code and it breaks, your whole team has some fault in its release mechanism, and that's group owned
- deleted 3y ago[deleted]
- macjohnmcc 3y agoWhen I find one bug I assume it is likely repeated all over the code and I search it out. I have been burned enough times to not consider it a must.
- hinkley 3y agoThere's always a subtle difference in one of the 3 implementations. Less subtle when it's 5+. That's where the time adds up.
- macjohnmcc 3y agoI also found during these kinds of sweeps large copy and pastes of code. It really lowered my opinion of those working on the same project.
- hinkley 3y agoIt's taught me to worry about people who happily volunteer for difficult tasks. I used to think they were troopers, now I see more and more of them as having a high pain tolerance, and I don't mean that as a compliment. Pain in information and they throw away a lot. It's a form of job security, and not a particularly benign kind. Our job is to replace painful processes with code. If you can't do that you aren't fulfilling the basic premise of your profession.
- zaphirplane 3y agoNot talking to you, just on the topic of DRY fundamentalism I find people creating these DRY abstractions with a lot of knobs to be strange. End up with dryWithRain, drySpicy, dryStrict, dryTurbo then the abstraction is a maze of confusion