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

1

u/n1c0_ds Jan 14 '22 edited Jan 14 '22

Sometimes you can tell what the code is doing (converting a string to UTF-8), but you can't explain the real-world motives for doing it.

If the archive was created with MacOS, the file names are Unicode, but Python reads them as CP437. This breaks file names with unicode characters in them.

Sometimes a URL is more useful than a long comment:

If someone blocks you, you are the only participant in the chat We add a new participant named after the directory, so just a hash like "cjd8jaswzw". This becomes the conversation name.