this post was submitted on 19 Mar 2025
369 points (100.0% liked)

Technology

67242 readers
5948 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
 

Researchers have found that large language models (LLMs) tend to parrot buggy code when tasked with completing flawed snippets.

That is to say, when shown a snippet of shoddy code and asked to fill in the blanks, AI models are just as likely to repeat the mistake as to fix it.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 38 points 5 days ago (1 children)

To be fair, if you give me a shit code base and expect me to add features with no time to fix the existing ones, I will also just add more shit on the pile. Because obviously that’s how you want your codebase to look.

[–] [email protected] 1 points 4 days ago* (last edited 4 days ago) (1 children)

And if you do that without saying you want to refactor, I likely won't stand up for you on the next round of layoffs. If I wanted to make the codebase worse, I'd use AI.

[–] [email protected] 4 points 4 days ago (1 children)

I’ve been in this scenario and I didn’t wait for layoffs. I left and applied my skills where shit code is not tolerated, and quality is rewarded.

But in this hypothetical, we got this shit code not by management encouraging the right behavior, and giving time to make it right. They’re going to keep the yes men and fire the “unproductive” ones (and I know fully, adding to the pile is not, in the long run, productive, but what does the management overseeing this mess think?)

[–] [email protected] 4 points 4 days ago (1 children)

Fair.

That said, we have a lot of awful code at my org, yet we also have time to fix it. Most of the crap came from the "move fast and break things" period, but now we have the room to push back a bit.

There's obviously a balance, and as a lead, I'm looking for my devs to push back and make the case for why we need the extra time. If you convince me, I'll back you up and push for it, and we'll probably get the go-ahead. I'm not going to approve everything though because we can't fix everything at once. But if you ignore the problems and trudge along anyway, I'll be disappointed.

[–] [email protected] 1 points 3 days ago (1 children)

I bet the people you work with are very happy to have you as a lead.

[–] [email protected] 1 points 3 days ago