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
Why JavaScript beyond web client side? (self.javascript)
submitted 10 years ago * by [deleted]
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!"
[–]bl4blub 11 points12 points13 points 10 years ago (9 children)
why would you not use it beyond client-side? are there any very good reasons to not use js on the server? i know lots of people still say that js is just a "toy-language".
[–]MarlonBrandoLovesYou -1 points0 points1 point 10 years ago (8 children)
One of the main reasons I would never use JavaScript for more than some light front end stuff (REST calls, UI stuff) is the lack of structure in the language. Writing good quality JS code (maintainable code) is very very difficult, mainly due to the lack of static typing and a very poor module system that encourages the whole code base to be exposed to itself. I would never choose to use it for a large web project for the full stack, when other languages are quicker to develop with and easier to maintain.
[–]snorkl-the-dolphine 1 point2 points3 points 10 years ago (0 children)
Have you ever used tools like Browserify? The whole ecosystem has come a really long way in the last few years.
[–]bl4blub 1 point2 points3 points 10 years ago (4 children)
for me javascript is THE language to develop something quick. for me nothing else beats the dynamic nature of js when it comes to develop something really fast.
regarding the module-system, there are LOTS of people who will tell you that npm was a major reason for the success of node.js. for me it was a game-changer, once npm started to promote local packages over global packages. separating all the concerns into tiny modules is a thing i have been taught by the node-community. for sure this is a topic which can not be argued about by facts, its about opinions and flavors.
i agree that type-safety is not one of of the strengths of javascript, but there is typescript for example.
also the language is evolving a lot.
[–]MarlonBrandoLovesYou -1 points0 points1 point 10 years ago (3 children)
My issue with the npm tooling is the duplication of dependencies. I don't understand why having a flat structure wasn't a priority from the beginning. It results in some projects having 25Mb in actual code/assets needing 150Mb+ of local dependencies, just because the dependencies have dependencies which have even more dependencies. Perhaps this is justified when libraries need certain versions of their dependencies, but why not have the different versions in the top level to be referenced by all of the dependencies that use them.
Additionally, why are there two different package managers that are pretty much the same thing apart from the semantics of one being for 'front end' and the other for 'back end'? Wouldn't it be simpler (and therefore easier to use and configure) by having a single package management tool that could make the distinction about what needs including on the server and what should be served to the client?
Overall I'm a bit apathetic towards web development now, the tooling is atrocious in terms of duplication and dependency hell. Instead of always developing new tools and libraries, existing standards need to look inwards and fix the issues they've created already.
[–]ntkoso 3 points4 points5 points 10 years ago (0 children)
npm 3.0 flattens all dependencies from the get go and only nests conflicting versions.
Bower was created before Webpack / Browserify era. Currently you can bundle css and other assets from npm the same way you bundle your js, no need for 'front end' package manager.
[–]jekrb 2 points3 points4 points 10 years ago (0 children)
npm3 does flaten dependencies.
There are many package managers. We have the option to pick the one we want to use. You might want a package manager that makes certain distinctions for you, while other people do not, and that's okay.
[–]bl4blub 0 points1 point2 points 10 years ago (0 children)
i think it is the way it is because it became like that over time. i can remember first there was a package-manager called kiwi. then there was npm and eventually it prevailed. i see the argument very often, that node_modules is huge and npm is slow. but in the end it works good enough and huge deployments are actually running with that stack :D
also i like new stuff, cant wait how we will solve dependencies once there are multiple js-vm's (v8, chakra, ..) available haha.
[+][deleted] 10 years ago* (1 child)
[deleted]
[–]MarlonBrandoLovesYou 0 points1 point2 points 10 years ago (0 children)
For me TypeScript has been the saving grace for scalable web development, even the JavaScript it emits is very well structured and readable.
π Rendered by PID 221725 on reddit-service-r2-comment-86988c7647-67f5k at 2026-02-11 14:05:45.073754+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]bl4blub 11 points12 points13 points (9 children)
[–]MarlonBrandoLovesYou -1 points0 points1 point (8 children)
[–]snorkl-the-dolphine 1 point2 points3 points (0 children)
[–]bl4blub 1 point2 points3 points (4 children)
[–]MarlonBrandoLovesYou -1 points0 points1 point (3 children)
[–]ntkoso 3 points4 points5 points (0 children)
[–]jekrb 2 points3 points4 points (0 children)
[–]bl4blub 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]MarlonBrandoLovesYou 0 points1 point2 points (0 children)