We should revisit literate programming in the agent era
31–40 of 270 posts
Re: We should revisit literate programming in the agent era
#32The big problem with documentation is that if it was accurate when it was written, it's just a matter of time before it goes stale compared to the code it's documenting. And while compilers can tell you if your types and your implementation have come out of sync, before now there's been nothing automated that can check whether your comments are still telling the truth.
Somebody could make a startup out of this.
Re: We should revisit literate programming in the agent era
#33Interesting and semi-related idea: use LLMs to flag when comments/docs have come out of sync with the code. The big problem with documentation is that if it was accurate when it was written, it's just a matter of time before it goes stale compared to the code it's documenting. And while compilers can tell you if your types and your implementation have come out of sync, before now there's been nothing automated that c…
Re: We should revisit literate programming in the agent era
#34Re: We should revisit literate programming in the agent era
#35Earlier quoted context omitted.
Yeah, I think what is needed is somewhere between docstrings+strategic comments, and literate programming. Basically, it's incredibly helpful to document the higher-level structure of the code, almost like extensive docstrings at the file level and subdirectory level and project level. The problem is that major architectural concepts and decisions are often cross-cutting across files and directories, so those aren't…
Also: "Bad programmers worry about the code. Good programmers worry about data structures and their relationships." -- Linus Torvalds
If you get the architecture wrong, everyone complains. If you get it right, nobody notices it's there.
Re: We should revisit literate programming in the agent era
#36With there being data that shows context files which explain code reduces the performance of them, it is not straightforward that literate programming is better so without data this article is useless.
Re: We should revisit literate programming in the agent era
#37Interesting and semi-related idea: use LLMs to flag when comments/docs have come out of sync with the code. The big problem with documentation is that if it was accurate when it was written, it's just a matter of time before it goes stale compared to the code it's documenting. And while compilers can tell you if your types and your implementation have come out of sync, before now there's been nothing automated that c…
Re: We should revisit literate programming in the agent era
#38Earlier quoted context omitted.
Also: "Bad programmers worry about the code. Good programmers worry about data structures and their relationships." -- Linus Torvalds
> "Bad programmers worry about the code. Good programmers worry about data structures and their relationships." If you get the architecture wrong, everyone complains. If you get it right, nobody notices it's there.
Re: We should revisit literate programming in the agent era
#39Interesting and semi-related idea: use LLMs to flag when comments/docs have come out of sync with the code. The big problem with documentation is that if it was accurate when it was written, it's just a matter of time before it goes stale compared to the code it's documenting. And while compilers can tell you if your types and your implementation have come out of sync, before now there's been nothing automated that c…
Re: We should revisit literate programming in the agent era
#40Interesting and semi-related idea: use LLMs to flag when comments/docs have come out of sync with the code. The big problem with documentation is that if it was accurate when it was written, it's just a matter of time before it goes stale compared to the code it's documenting. And while compilers can tell you if your types and your implementation have come out of sync, before now there's been nothing automated that c…