4 ms·
documentation is for humans. let the LLMs read code.
by zaleria 2y ago
documentation is for humans.
let the LLMs read code.
- lagrange77 2y agoActually, programming languages are also for humans.
- phito 2y agoCode does not contain all the information of a feature.
- manojlds 2y agoIsn't code for humans as well then?
- anon1094 2y ago01111001 01100101 01110011
- krystofee 2y agowhen you present this to LLM, it will be confused the same as a human reading this
- novalis78 2y agoClaude wasn’t confused at all by that
- LeafItAlone 2y agoActually, it won’t be: https://medium.com/@dharineeshj2/chatgpt-jailbreaking-a-sneaky-loophole-that-exposes-ethical-gaps-1f3dcf015bf6 https://medium.com/@dharineeshj2/chatgpt-jailbreaking-a-snea...
- px43 2y agoChatGPT 4.5: Ooh, a binary puzzle—fun! Let’s decode it: 01111001 01100101 01110011 In binary, each byte (set of 8 digits) represents an ASCII character. Let's break it down: 01111001 = y 01100101 = e 01110011 = s So, it spells out "yes"! Got any more mysteries to solve?
- vbezhenar 2y agoSometimes documentation is preferred source of truth, especially when multiple implementations exist. For example when you're writing code for POSIX API, you don't want to tie your code to glibc specific implementation, portable code is the whole point of POSIX.
- smokel 2y agoCode typically describes only the what and how. The why is usually left in people’s heads and, if you are lucky, in documentation.
- krystofee 2y agoThink about it, what do you read when integrating APIs, code or documentation?
- LeafItAlone 2y agoGoing into AI-assisted development, I thought this would be the winning strategy. I’ve since learned it’s not. LLMs have a limited context window. It’s can’t hold a full moderately sized project in context, let alone the code of the referenced libraries. Some tools have documentation that exceed the context window. So I’ve found that adding documentation and adding that to the context helps significantly. I even often let the AI tools generate my documentation where possible (and then manually edit). For me and the tools I use, this has helped significantly.