logoalt Hacker News

reinitctxoffsettoday at 12:41 PM1 replyview on HN

That revision of the style guide is expressly written for consumption by agents, it says so in the introduction, so agents edit it whenever they fuck up in C++, that's on purpose.

Just about all the snippets are lightly adapted from shit I wrote before agents were relevant, so any fail in there is on me.

Do you have any errata or just a shitty attitude?


Replies

tom_today at 2:30 PM

One man's attempt at a wry observation is another's shitty attitude, I suppose. It just struck me, as 2/3 of the target audiences mentioned are made up of people, and here is a doc that's been more than just breathed on by an LLM - and then we're to write config parsing by hand! The rationale is fine and all that, it just tickled me that here's an amusing example of having computers do people's work and having people do computers' work - playing (to my mind) to the strengths of neither.

(If the bots are allowed to modify the doc as they please, it's inevitable their writing style will seep in I suppose.)

If it'd be any consolation, the doc seemed fine, maybe even interesting, but the LLM writing style gives me a headache. I did notice a std::string by value that, according to the ref rules, could conceivably be a const std::string &, I think: https://gist.github.com/b7r6/5dde648f5dc1dea1e9039f2211f5d40... - whether this is worth caring about, given that it's apparently loading a file, I don't know, and there could be some other reason for this not evident in the code provided. (Or maybe I missed something, probably something obvious.)

show 1 reply