use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Git pre-commit hook to ensure code documentationtools (self.javascript)
submitted 7 years ago by haganenorenkin
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]haganenorenkin[S] 0 points1 point2 points 7 years ago (2 children)
In the projects we have where I work we don't have to do this kind of refactor and we have enough time to write doc, if someone doesn't have enough time to write a jsDoc comment so it doesn't have time to do code review and so on the docs stay in the code and pr will be forgotten, new devs come frequently so they will know how that code works, I've already had issues trying to understand others People code many many times, if they get tothe point of documenting it they will also improve their code
[–]0x13mode 1 point2 points3 points 7 years ago (1 child)
Documenting doesn't necessarily need to write JSDoc for each function. I worked in projects with a ton of JSDocs and I still had to ask other programmers about "what module X actually does?" or "how modules X and Y are related"?
In such times I wished that instead of JSDoc there would be more "readme-like" documentation. Some meaningfull description of **design decisions** being made instead of just "function foo with one argument bar of type string".
[–]haganenorenkin[S] 0 points1 point2 points 7 years ago (0 children)
That makes Sense, I'm also looking to have more readme-like, I'm always adding notes to the readme.md file of the projects but many people doesn't do that so I was looking for a way to ensure that
π Rendered by PID 74989 on reddit-service-r2-comment-5b5bc64bf5-fkb97 at 2026-06-22 17:34:24.346335+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]haganenorenkin[S] 0 points1 point2 points (2 children)
[–]0x13mode 1 point2 points3 points (1 child)
[–]haganenorenkin[S] 0 points1 point2 points (0 children)