4
dUcKtYpEd
167d

Colin Rickels [10:24 AM]
i know im nerding out but this alone is one of the reasons i think node is byfar the greatest platform to write an app on. In one line, it checks how many cpus your machine has, makes sure your running currently on a master process and not a child spawn, forks child processes for each core you have so that your now running a cluster of node.js servers (one per cpu sharing the same port) and then spins up the server. Its brilliant! And even though your writing simple javascript thats easy to understand, your also thinking about low level mechanics of server functionality

Comments
  • 4
    Have you ever seen POSIX C?
  • 0
    @nitwhiz i actually heard it mentioned in the node documentation. I believe it utilizes it under the hood
  • 2
    Have you ever seen Erlang?
  • 4
    Also. You're just importing a bunch of prebuilt functionality.
    And using a lot of preconfigured stuff.

    Pretty sure Python would have similar stuff.

    Things like C# .NET Core make it longer because they offer more customizabillity. They are meant to scale easily to huge industrial strength codebases with tons of traffic and a very flexible request processing pipeline (also does multicore way better, in my opinion). Not really a fair comparison.

    Also, starting huge prebuilt server processes is low level?
  • 1
    @RememberMe im working .net core on another project. Your right, it takes alot more to do alot less. Just generating a jwt token the other day took me all day because i had to pull in 9 different classes to make it work and that was after reading 10 different blogs where it was done entirely different in each one for a different vertical purpose. I mean for a web developer with a background in php, I would usually consider forking a process to be something risky and not recommended with the language. The magic of using node is that I do not have to be the master of all things to utilize it in the most powerful of ways. I tend to find c# and java devs being siloed to the language because of its demands. Not that its a bad thing, I just personally enjoy doing more without having to understand overly engineered and over-abstracted libraries that push system uniformity more than anything. I have not heard of Erlang, i tried googling it
Your Job Suck?
Get a Better Job
Add Comment