On Fri, Nov 27, 2026 at 04:08:43PM +0100, Laurenz Albe wrote: > On Fri, 2026-11-27 at 10:08 +0100, Daniel Gustafsson wrote: >> If we want to publish code samples we should add them to the documentation >> and >> properly explain them there. IMHO. > > I can agree with that. What do you think about point b) in my message?
I kind of disagree with the point of putting code samples in the docs. These prove to rot and be forgotten very easily, and they're not easy to check. You could add some sample module in src/test/modules/ instead, which would make sure that the code always works, under the condition that it is useful for.. Tests. Then just have the docs point at a wanted path in the code tree. -- Michael
signature.asc
Description: PGP signature
