I just used claude AI for writing a man page for a trivial, small script:
I think I would never have done it without this help. I would not have wasted time. It would have remained 'undocumented', namely documented with the code and some comments in it.
It is sure a good use of AI, no need to write troff, only more or less correct what comes out (sure a lot of errors that I will never test) and then tell to correct / improve. Claude invented from alone realistic examples for the use of the script, it generated the next to last (with sqlite) only with a short suggestion. The structure of the last was given by me, was done with sqlite3, and asked claude if it is not a better example to use pure tcl, then it answered immediately with that script that I would have done in the same manner, but reading carefully the documentation of sort command, namely not so fast.
AI seems usable as a tool for programmers ...
I think I would never have done it without this help. I would not have wasted time. It would have remained 'undocumented', namely documented with the code and some comments in it.
It is sure a good use of AI, no need to write troff, only more or less correct what comes out (sure a lot of errors that I will never test) and then tell to correct / improve. Claude invented from alone realistic examples for the use of the script, it generated the next to last (with sqlite) only with a short suggestion. The structure of the last was given by me, was done with sqlite3, and asked claude if it is not a better example to use pure tcl, then it answered immediately with that script that I would have done in the same manner, but reading carefully the documentation of sort command, namely not so fast.
AI seems usable as a tool for programmers ...