835
Amazon AI (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] CXORA@aussie.zone 311 points 3 days ago* (last edited 3 days ago)

People who share the size of a codechange as a mark of how effective ai coding agents are truly missing the point of code changes.

[-] softwarist@programming.dev 4 points 1 day ago

Big Diff Energy

[-] fckreddit@lemmy.ml 119 points 3 days ago

Number of lines of code written is a shitty metric to measure productivity.

[-] CorrectAlias@piefed.blahaj.zone 46 points 3 days ago

In college, on the first day of orientation, someone in my class bragged that they wrote 50,000 lines of code for a game that was similar to tic tac toe, emphasizing that he "wrote a lot of code". A TA told him that it wasn't a sign that his program was decent and that it really didn't seem like it should take 50k lines of code to make something as simple as his game.

He dropped out after the first week of intro to programming.

[-] fckreddit@lemmy.ml 24 points 3 days ago

That's nothing, I wrote the code to return if the input is even or not in 1M lines of code.

[-] Siethron@lemmy.world 17 points 3 days ago

If 1 no else if 2 yes else if 3 no....

[-] Shayeta@feddit.org 6 points 3 days ago

If you want to learn natural language processing, this is actually a fun example to generate code for.

[-] fckreddit@lemmy.ml 4 points 3 days ago
[-] prime_number_314159@lemmy.world 1 points 2 days ago

Are you working with 20 bit integers? You'll never get it down to a million lines like that...

There's a million lines of If >4096, subtract 4096

Then a quick lookup case statement for whether the remaining number is even.

[-] KairuByte@lemmy.dbzer0.com 54 points 3 days ago

And yet I experience it so often. That or “effort points” as the metric being used to determine who all stars are.

Either as a metric just encourages gaming of the system:

  • Why write one line when I can write the same thing in 20?
  • Why take this one effort point task I think will take three when I can just skip it and grab these one effort points I think will take 20 minutes?

I’ve been on teams that on the surface didn’t have these metrics matter, but the top effort points achiever got bonuses on the DL.

[-] Valmond@lemmy.dbzer0.com 27 points 3 days ago

What did you do?? You refacted the code and now it's better organized but you overall got rid of lines?

I'll set up a PMD meeting to help you out of this problem, but fair to say don't expect a raise or a bonus this year.

[-] ViatorOmnium@piefed.social 16 points 3 days ago

I wouldn't say PR size is a bad metric, you usually just need yo read it the opposite of how sloppers do it, i.e. the most productive PRs are short and focused.

[-] RustyNova@lemmy.world 13 points 3 days ago

Then Devs focus on minifying the code into an unreadable mess

[-] ViatorOmnium@piefed.social 18 points 3 days ago* (last edited 3 days ago)

I'm not saying it's a good individual metric. In fact, applying individual metrics to developers (or most workers really), will only land you in Goodhart's hell.

But as part of holistic operational health tracking, it's a useful team level metric, as there is ample evidence that shorter PRs tend to result in less operational issues. And, of course, this is only valid if you don't try to tie financial rewards to it, otherwise people will forget that PR size is a proxy measure for how easy changes are to review and rollback.

[-] KairuByte@lemmy.dbzer0.com 1 points 3 days ago

Yeah, I’ve been guilty of coming up with “cute” solutions that are extremely optimized and concise, but you needed to take a hundred times as long to work through what was going on.

Usually I would put an explanation comment, but sometimes a less optimized solution is the better option for readability sake.

[-] Shayeta@feddit.org 1 points 3 days ago

Hah, if those pesky devs think that they can play the system by just rolling up the code into a single line they got another thing coming - we're actually tracking PR character count, NOT LOC like some other companies!

[-] ViatorOmnium@piefed.social 1 points 3 days ago

That's the beautiful thing about mandatory reviews. If I can't understand the PR, I just veto it until it's fixed.

[-] Slotos@feddit.nl 2 points 2 days ago

I’m working with a legacy codebase for the last few months, where a simple PR often ends up crossing a 1000 lines count due to testing and commenting, and I can’t stop apologizing for those.

Yet there are people out there bragging about 10x changesets.

[-] firelizzard@programming.dev 5 points 3 days ago

PR size is an awful metric. The bigger the PR, the less reviewable it is.

[-] PoolloverNathan@programming.dev 5 points 3 days ago

Yes, that's what the comment said — smaller PRs are better.

[-] firelizzard@programming.dev 4 points 3 days ago

PR size is still an awful metric. It should be within bounds but it should never be an actual metric. Treating it as a metric is an idiotic idea.

[-] Klear@quokk.au 47 points 3 days ago

I'm just a hobbyist, but I'm always more proud of commits that remove stuff.

[-] traxex@lemmy.dbzer0.com 31 points 3 days ago

Removing shit and it still working perfectly the same is absolutely a goal everyone should have. Less code means less to maintain.

[-] Baizey@feddit.dk 6 points 2 days ago

And being more performant, the perfect trio

[-] HuePony@lemmy.ml 5 points 3 days ago

Unless its template voodoo magic

[-] sqw@lemmy.sdf.org 7 points 2 days ago

i refactored some web code i wrote ten years ago and it's more elegant and a tenth the size with new features because of language advancements. feels great.

[-] resipsaloquitur@lemmy.world 21 points 3 days ago* (last edited 3 days ago)

Didn’t you hear? We’re going back to KLOC for measurement of productivity.

[-] rabidhamster@lemmy.dbzer0.com 4 points 2 days ago

If we're going back to the 80s, do we at least get the company provided cocaine?

[-] Redkey@programming.dev 5 points 2 days ago

You reminded me of a story I recently read, where the author highlighted just how much awesome programming someone had done by describing how their hands were cramping up.

It's like estimating how well an artist paints by looking at how much paint is on their clothes, or judging how good a cook is by how many cuts and burns they have. The actions that cause those things are incidental to the process, not central, and an excessive amount points to incompetence, not hard and skillful work.

[-] VeryInterestingTable@jlai.lu 27 points 3 days ago

People who've never reviewed a PR be like. Wow green number big, is good.

[-] mckean@programming.dev 9 points 3 days ago
[-] psud@aussie.zone 6 points 3 days ago

Lines added, lines deleted

[-] ech@lemmy.ca 4 points 3 days ago

Might as well be bragging about pictures they've taken of their bowel movements.

[-] abbadon420@sh.itjust.works 3 points 3 days ago

Please tell me this subreddit is satire

[-] entwine@programming.dev 2 points 3 days ago

No, this is the most serious subreddit in all of reddit.

this post was submitted on 11 Mar 2026
835 points (99.3% liked)

Programmer Humor

30344 readers
2073 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS