In article <unnet8$2ml74$
[email protected]>, dxf <
[email protected]> wrote:
On 11/01/2024 10:51 am, Hans Bezemer wrote:
On Monday, November 27, 2023 at 9:16:47 AM UTC+1, minforth wrote:
I tested it with code snippets from F83 and an old but short 8QUEEN solver. >>> Your tool did not _document_ anything, but added hyperlinks to words,
pointing deeper into your own Forth systems. Good for you.
But thanks anyway for releasing your tool to the public.
You might be interested in HolonForth for comparison.
Yeah, it's useless. I'd write something like that in zero flat.
However, I had good results with feeding code to ChatGPT
and let it figure out what it does. I stripped all comments
from it - but I guess well named words might give it enough
hints.
I won't call it documentation either, but for figuring out what
zero commented code actually does functionality wise, I think
it's quite handy.
App code I write are near zero commented. This is less problematic
in forth where functions tend to be short. Unless a function is very >obscurely named (Will Baden?), forth is largely self-documenting.
Nor is 'tricky' code really a problem. By the time one realizes it
was tricky, one will add the comment. If OTOH one never comes back to
it, who is there to care? I appreciate there may be external reasons
to add comments e.g. to impress the audience or the customer demanded
it. But that's more about pleasing others. IIRC Moore's source for >ColorForth had no comments.
Moore is no shining example.
Moore doesn't intend to write portable programs, and he maintains
them himself, or rather he rewrites.
Also Moore's political ideas are abhorrent and his associating
with a patent troll was a financial miss.
You can learn things from Moore, but you have to decide what is
good and what less good.
One of the reason libraries in Forth are problematic, that the skill
to properly document API's is underdeveloped. Probably because
many people think that ( d n -- ud) is sufficient documentation.
Forth is only in part self-documenting if the functions are
brilliantly named, requiring a skill not wide spread.
There are two reasons to document, usage and maintenance.
I want ciforth to be used, so every word is meticulously documented.
I have much (40 year) professional experience in maintenance.
Maintenance documentation especially regards the overlooked border
cases makes out the value of a program. Consequently my Forth programs
are worth more to a c-programmer, than most Forth programs are to a
Forth programmer.
Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat purring. - the Wise from Antrim -
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)