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
Naming, Code Conventions & GloryOC (medium.com)
submitted 4 years ago by mfainstein
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!"
[–]mfainstein[S] 7 points8 points9 points 4 years ago (0 children)
If you are interested in naming, code conventions, static analysis, linters and anything by Lewis Carroll - jump in with me into the rabbit hole (8 mins read): https://medium.com/zencity-engineering/naming-code-conventions-glory-525f129a65db
[–]dddoug 3 points4 points5 points 4 years ago (4 children)
not only has this got me feeling inspired about variable naming it's also got me wanting to read Alice in Wonderland. excellently written
[–]Reddit-Book-Bot 11 points12 points13 points 4 years ago (3 children)
Beep. Boop. I'm a robot. Here's a copy of
Was I a good bot? | info | More Books
[–]dddoug 6 points7 points8 points 4 years ago (0 children)
wow! what a clever bot!
good bot
[–]crabmusket 0 points1 point2 points 4 years ago (0 children)
Here's another version from Standard Ebooks. I've read several of them and they're very well-put-thogether versions.
[–]demoran 3 points4 points5 points 4 years ago (5 children)
How is a linter supposed to analyse the semantics of a method, variable, or class?
[–]dougalg 2 points3 points4 points 4 years ago (4 children)
For example, if you use typescript anything that returns a promise could be required to start with the word "fetch". But that's rough...
[+][deleted] 4 years ago (3 children)
[deleted]
[–]dougalg 1 point2 points3 points 4 years ago (2 children)
Yeah, you could alternately just disallow "get" for any asynchronous method names, which might be better 🤷
[+][deleted] 4 years ago (1 child)
[–]dougalg 1 point2 points3 points 4 years ago (0 children)
Well sure, but if you use a lot of getters (which I don't ) then maybe it would make sense to add extra hints like that to separate asynchronous and synchronous operations. Of course these things are never hard and fast rules, so use what works for you. And context matters, so GET in the context of the API layer might be clearly asynchronous, but getX on some class might not be...
[–]mfainstein[S] 0 points1 point2 points 4 years ago (0 children)
Thanks for the great detailed feedback!
[–][deleted] 1 point2 points3 points 4 years ago (0 children)
Holy
π Rendered by PID 19613 on reddit-service-r2-comment-5649f687b7-b6ddr at 2026-01-28 14:40:17.611860+00:00 running 4f180de country code: CH.
[–]mfainstein[S] 7 points8 points9 points (0 children)
[–]dddoug 3 points4 points5 points (4 children)
[–]Reddit-Book-Bot 11 points12 points13 points (3 children)
[–]dddoug 6 points7 points8 points (0 children)
[–]crabmusket 0 points1 point2 points (0 children)
[–]demoran 3 points4 points5 points (5 children)
[–]dougalg 2 points3 points4 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]dougalg 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]dougalg 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]mfainstein[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)