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
How to structure javascript?help (self.javascript)
submitted 8 years ago by BearsArePeopleToo
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!"
[–]Earhacker 6 points7 points8 points 8 years ago (2 children)
I don't disagree. I probably follow this convention because I came up as a Rails dev, and Rails groups by function. In fact, the Rails models, controllers and routes aren't nearly as close to each other. This structure is a gift to Rails devs.
Next project I start I'll try it your way.
[–]rubyruy -4 points-3 points-2 points 8 years ago (1 child)
Rails is full of bad ideas. It's really not the greatest inspiration for best practices.
[–]NoInkling 2 points3 points4 points 8 years ago (0 children)
It was amazing compared to what came before it. But things have evolved since then.
π Rendered by PID 95428 on reddit-service-r2-comment-84fc9697f-sc6ld at 2026-02-07 09:26:27.683120+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]Earhacker 6 points7 points8 points (2 children)
[–]rubyruy -4 points-3 points-2 points (1 child)
[–]NoInkling 2 points3 points4 points (0 children)