260
you are viewing a single comment's thread
view the rest of the comments
[-] TomMasz@lemmy.world 69 points 1 day ago

LOC is a terrible metric. The worst programmer I ever had work for me had the highest LOC of anyone on the team, and his code was crap that barely worked.

[-] Flamekebab@piefed.social 41 points 1 day ago

Is this why so many of these fuckheads are keen on LLMs? They're great at vomiting out reams of code.

[-] AA5B@lemmy.world 7 points 1 day ago

My biggest objection is unit tests. LLMs can actually be a useful tool for populating out unit tests. But of you let them run amuck, you get vast quantities of tests that add no value but now you have to maintain in perpetuity

This one junior developer didn’t notice the ai brought in a whole new mocking tool for a few tests and didn’t understand my objection.

[-] black0ut@pawb.social 2 points 6 hours ago

Relying on a chance machine to thoroughly test your code sounds like a recipe for disaster

[-] CeeBee_Eh@lemmy.world 2 points 7 hours ago

LLMs can actually be a useful tool for populating out unit tests.

My experience with this is the LLM commenting out the existing logic and just returning true, or putting in a skeleton unit test with a comment that says "we'll populate the code for this unit test later".

[-] Flamekebab@piefed.social 8 points 1 day ago

I had a dev add a load of unit tests that mocked values and then tested for the mocked values. I mean... They passed...

[-] aesthelete@lemmy.world 8 points 1 day ago

With emojis in it for extra flair!

[-] unexposedhazard@discuss.tchncs.de 3 points 22 hours ago

A few posts up was a meme about Arch linux updates having a net negative file size :)

[-] magic_lobster_party@fedia.io 11 points 1 day ago

In my project there has been this guy who produced more lines of code than most other. All of his code is a terribly convoluted mess no one can work with. Also buggy and slow as hell. It’s been many years since he left the company, and the negative effects are still seen today.

Luckily we’ve been able to detach ourselves from the worst parts.

[-] aesthelete@lemmy.world 13 points 1 day ago* (last edited 1 day ago)

It reminds me of the quote, "if I had more time I would have written you a shorter letter". Terse code is often better, because it is often developed using a process that only adds necessary things or was created by trial and error during the development process that isn't included in the final output.

Lengthy code is often written because a person coded their misunderstandings, their ambiguities about the problem space, and their early failures at solving the problem into the code.

[-] magic_lobster_party@fedia.io 1 points 1 day ago

True. However, in this case I believe this guy just had a weird admiration for complexity.

[-] AA5B@lemmy.world 2 points 1 day ago

Complexity or “complexity”? A couple months ago I had to accept a merge from a junior developer that is now flagged as the code with the highest complexity in my code base. It was in Groovy and he must have just discovered closures. Instead of breaking up the code in nice modular testable blocks, it was massive methods hundreds of lines long, and the most egregious use of closures

[-] magic_lobster_party@fedia.io 1 points 1 day ago

Not necessarily closures, but it involved many dynamically generated lists of lambdas passed around through many layers of abstraction.

this post was submitted on 06 Dec 2025
260 points (100.0% liked)

Mildly Infuriating

43090 readers
225 users here now

Home to all things "Mildly Infuriating" Not infuriating, not enraging. Mildly Infuriating. All posts should reflect that. Please post actually infuriating posts to !actually_infuriating@lemmy.world

I want my day mildly ruined, not completely ruined. Please remember to refrain from reposting old content. If you post a post from reddit it is good practice to include a link and credit the OP. I'm not about stealing content!

It's just good to get something in this website for casual viewing whilst refreshing original content is added overtime.


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means: -No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...


7. Content should match the theme of this community.


-Content should be Mildly infuriating. If your post better fits !Actually_Infuriating put it there.

-The Community !actuallyinfuriating has been born so that's where you should post the big stuff.

...


8. Reposting of Reddit content is permitted, try to credit the OC.


-Please consider crediting the OC when reposting content. A name of the user or a link to the original post is sufficient.

...

...


Also check out:

Partnered Communities:

1.Lemmy Review

2.Lemmy Be Wholesome

3.Lemmy Shitpost

4.No Stupid Questions

5.You Should Know

6.Credible Defense


Reach out to LillianVS for inclusion on the sidebar.

All communities included on the sidebar are to be made in compliance with the instance rules.

founded 2 years ago
MODERATORS