r/softwareengineer
•
u/CarrotTraditional739
•
1d ago
•
1
Claude .md documents, code comments etc.
I am just wondering whether other people have the same experience as me or whether what I'm experiencing is an artefact of my own skill level etc.
While it's undeniable that Claude (or other LLMs) can make code that works, the various explanatory documents it produces, when asked, are oftentimes unreadable.
One of the things that I've found it does is that it makes up its own nicknames for processes, its own weird counterintuitive variable names etc. Maybe these nicknames are utilised in some industry, but Claude didn't get those from my team.
Whenever I ask it to provide comments on the code, it produces a lot of bizarre sentences too that are unclear and misleading.
Getting into a discussion with it so that it explains to me what it means will sometimes lead to a nightmare back and forth that I need a lot of time and patience to understand.
I've also had this phenomenon where after reading a lot of Claude text output I get this weird 'brain freeze' where nothing makes sense to me anymore.
Weirdly I believe Claude is worse at writing text around the code (or in general) rather than the code itself. The code at least eventually works.
I think this is also true for text that doesn't have to do with coding. A colleague of mine produced a document that I'm pretty sure was Claude-heavy, regarding a business strategy, and terms within it were bizarre and made little sense (everyone in the company, including boss, were asking her what she meant).
Of course we know that all of its output is prompt sensitive but I think once you get into the discussion regarding the perfect prompt you might as well do things yourself
9
u/RPBiohazard 1d ago
100%, my whole team hates reading docs it makes. Especially the nickname thing.
3
u/Free_Bullfrog_555 1d ago
The writing output is horrific, I experience the same brain freeze when presented with hundreds of lines of nonsense in explainers/docs/proposals etc. It doesn't matter how many rules I set about simple, human readable sentences, maximum sentences, jargon, dot points, step by step, etc it almost immediately reverts to garbled nonsense and I've started getting migraines every time I glance at my terminal.
That aside... I really enjoy writing quality documentation. I've made a rule for myself that every PR description must have a human written section at the top - much nicer for my colleagues and it also helps me to digest wtf I've just presented for review.
But omg don't get me started on DMs and responses written by Claude (or worse, Devin)
2
u/GrainyStateOfMind 1d ago
Absolutely, it’s horrible. I basically have a boilerplate spiel I give it that boils down to “Wtf is this? Give me the concise, TLDR, version of everything you just said” that generally makes it somewhat human-readable.
2
u/Equivalent-Wafer-812 1d ago
I see terms like: upstream, fail-closed. I mean, the objects and data comes from the same project, not another API. How that's upstream!!?
2
u/Wunjo26 1d ago
Oh my god I was literally ranting about this to my colleagues the other day! Claude totally does that shit and I find that it either gets worse as the day goes on or I just get more fatigued and notice it more. Either way, it seems like it makes up “nicknames” for things as a shortcut and it ends up being more taxing for the user because now you have to keep up with the mental mapping that’s going on rather than just referring to the actual thing at hand. It’s very validating knowing that I’m not alone and am not imagining this shit.
2
u/hex_longevity 1d ago
Gemini has this tendency too. It just loves to latch onto a semi-cute and totally unnecessary name for some part of your process or algorithm and promote the hell out of it. Seems to also have kind of a second-level, knock-on effect too: if you don't remove these before they acquire extra weight by being repeated here and there in your documentation, they gain a completely unearned primacy that can result in trivial stuff being eagerly included in summaries and digests where it should not belong.
Of course you can get it to agree, easily, that this is not a good look and that it ought to do otherwise. But never forget that every time you prompt it is brand new, that it's stateless and the only state is coming from your side, in the form of growing context. So you didn't get anything to "agree" about anything; you just succeeded in making a gesture that showed up in a particular type of mirror.