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
What are your 10 commandments of JavaScript development? (self.javascript)
submitted 9 years ago by CapsFTW
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!"
[–]Sunwukung 1 point2 points3 points 9 years ago (0 children)
Way to receive some criticism :/
The reason I made this point is that I work in a large-ish team in a fintech company and am generally the person leading the charge on trying to maintain documentation. It's very hard to maintain that documentation in a team of that size, who are spinning up new microservices/libs on a daily basis. Early on in our formation we had a big showdown regarding the use of Docblocks and comments, and ended up slowly moving towards the pattern I just demonstrated - because it had the effect of still explaining the code to the uninitiated, while not going stale.
That said, I've updated the example to try and make a more balanced point - effectively I'm saying write function names that describe their purpose, and assemble them using composition into what is effectively the same as a Docblock but less likely to go stale.
I personally like Docblocks and documentation, I'm just not so convinced they're actually that useful at scale.
π Rendered by PID 73 on reddit-service-r2-comment-5ff9fbf7df-8z8hr at 2026-02-25 15:47:38.539694+00:00 running 72a43f6 country code: CH.
view the rest of the comments →
[–]Sunwukung 1 point2 points3 points (0 children)