19

I started learning Node.js this morning. Wow, mind blown.

I can see how I could use this in an existing web development project.

What are the barriers to using Node.js instead of something else? Are there support/performance issues?

Comments
  • 14
    Your website including images will be 1MB and node_modules will be 200MB :🙂🔫
  • 6
    @gitpush we should also let him know that node_modules is not going to be included in production.
  • 5
    @tahnik and also not pushed to source control
  • 5
    @tahnik actually node modules will be included in production of it's a server side project, say a web server. But still, who gives a fuck about disk space? This isn't 1995, disk space should be the least of your worries

    True about source control tho
  • 1
    oh yay, 1 thread is plenty for an app in 2017 -node devs
  • 0
    @BindView Thing is, that one thread will get much more done than one thread in a sync language.
    My one threaded node app can make 2000 requests wait for all responses and save them to disc in 5 seconds...

    Also you can easily spawn multiple node processes so I don't see the problem really
  • 1
    For someone who used with JavaScript. It's pretty much relatively not so hard to learn nodejs .

    But for juniors. I think we need to guide them since NodeJS may be hard for them
  • 1
    So, basically, it has potential but it's probably not the most efficient solution at the moment?
  • 2
    @m0fo Thanks for your perspectives!
  • 1
    I agree with everything @m0fo said.

    @Artemix you are blindly hating node.

    "that shit will never run a fully-fledged entreprise service" - Netflix, Paypal, Ebay, Medium all uses NodeJS.

    And why are you so worried about dependencies? Most of the core dependencies will be maintained for a long time. It's how node works.
  • 1
    @MonsieurMan thanks, I see it as an extension of the client-side JavaScript I've been learning. The more I learn, the more exciting it is to me.

    I'm also pretty keen to return to learning Python. I started learning Python 2.7.x earlier this year. I want to go back to the beginning and learn Python 3. I think I forgot most of what I managed to retain.
  • 1
    @m0fo thanks, that's sound advice. I'll curb my curiosity!
  • 1
    Learning node also helps open you up to a host of different front end frameworks such as angular which is very in at the moment, and probably will be for a long time.

    Also, Node is not necessarily slow and someone has managed to get that single thread to manage 1M concurrent connections at once before. 1M.
  • 1
    @craig939393 Thanks, it sounds like I really should just focus on developing a solid understanding of Planet JavaScript and Node before rushing back to Python or starting PHP.

    Not so easy for me. So many new things to learn and use ... 🌈
  • 1
    @m0fo From the little I understand about those languages, I suspect that they will take me in a different direction.

    At the moment, I'm more focused on web development than native app development so JavaScript + Node (obviously); PHP for WordPress and, eventually, Laravel; and Python for what I understand could be supporting backend services.
  • 0
    Surprised no one has mentioned Go 😛
    Always seems there’s someone preaching Go
  • 1
    @Artemix I don't think you understand how Node.js works. All those calculation heavy things can be offloaded to another process. I haven't worked on huge node.js projects but seeing how companies start using it it seems less of a problem with node.js and more of a problem with developer skill.

    As for a zillion dependencies. I think the whole node_modules meme is overrated. Even on a VPS it's not a problem to have your app take 100MB of disk space since the lowest of tiers already usually offers more. You'll more likely run out of performance in your tier than disk space these days.
    Anyway, I'm not saying node.js is the best all and end all of web servers. But it is a good one and should not be ignored.

    Ah and Node.js never running on big servers? Yeah... tell that to PayPal, Netflix, Microsoft, eBay, Groupon and many others
  • 0
    Now that I think of it... I think I know why @Artemix hates node so much. Look at his/her shirt... Guess whose jobs Node is taking over 🤣
Add Comment