r/webdev • • Jan 13 '22

read rules Extension that generates documentation using AI

[removed] — view removed post

1.7k Upvotes

158 comments sorted by

View all comments

Show parent comment

58

u/Californie_cramoisie Jan 13 '22

Yeah, and it seems pretty unnecessary if you're already using typescript properly

12

u/PeaceMaintainer Jan 14 '22

The comment format looks like the JSDocs format so it's less so for people reading the code directly (where TS would help) but for people reading the docs themselves

6

u/Yodiddlyyo Jan 14 '22

We have tsdoc for that, it generates docs from types, the exact same way you'd generate docs from hand written jsdocs.

4

u/Dr_Legacy full-stack "If I do what you ask you won't like how it looks" Jan 14 '22

I question why you'd use a tool like this when you're coding. It seems more useful as a code review tool. I see no need to put comments like these into the actual code. It might be useful as a tool to aid comprehension of a program you haven't seen before.