1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting To Know NodeJS

Discussion in 'General Programming Chat' started by Ramse, Jun 28, 2015.

  1. Ramse

    Ramse Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 6, 2014
    Messages:
    816
    Likes Received:
    93
    Home Page:
    NodeJS is a server side framework, very popular these day.
    Here's an interesting infographics, that guides you to NodeJS:

    [​IMG]

    Do you use NodeJS, what do you think about it?
     
  2. TheLoneSynchro

    TheLoneSynchro Regular Member

    Joined:
    Sep 13, 2013
    Messages:
    306
    Likes Received:
    77
    The only thing I don't like about NodeJS is that I don't like JavaScript. Mainly because I enjoy programming languages that don't have dynamic variables such as Java. I find sending JavaScript Objects over the network to be a waste of bandwidth (Sending everything as a String). For example, sending an Integer over the network would require the following, at a bare minimum:

    Code:
    { "name": "12364327" }
    Let's say that we're using the 1bpc (1 Byte Per Character) assumption here, that's 22bytes being sent over the network, apposed to just writing an integer (binary format, 4 bytes) over a network.

    I've yet to see any libraries that handle binary encoding for JavaScript, which is my only complaint about NodeJS. It's a bandwidth hog under heavy loads.

    Performs extremely well though.
     
  3. Ramse

    Ramse Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 6, 2014
    Messages:
    816
    Likes Received:
    93
    Home Page:
    You do have a point there. Thanks for sharing your thoughts.

     
  4. bretonel

    bretonel Junior Member

    Joined:
    Jun 27, 2015
    Messages:
    125
    Likes Received:
    15
    Occupation:
    programmer
    Location:
    the inter nets
    Home Page:
    Maybe an exercise in 'perspective change' may help you:
    You say you don't like js, but the language it's just a tool, what you do with it is what matters.
    Would you say that you don't like a hammer?
     
  5. Ramse

    Ramse Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 6, 2014
    Messages:
    816
    Likes Received:
    93
    Home Page:
    Depends on what I need it for.
     
  6. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,567
    Likes Received:
    11,030
    Occupation:
    Pusillanimous Knitter
    Location:
    Buenos Aires
  7. Ramse

    Ramse Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 6, 2014
    Messages:
    816
    Likes Received:
    93
    Home Page:
  8. deadmanwanking

    deadmanwanking Newbie

    Joined:
    Jun 26, 2015
    Messages:
    11
    Likes Received:
    3
    The real issue with node is that it solves the problem of parallelism, a substantial issue, by having none.
     
  9. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,567
    Likes Received:
    11,030
    Occupation:
    Pusillanimous Knitter
    Location:
    Buenos Aires
    It doesn't focus on parallelism, node isn't some MPI solution. It focuses on evented IO.
     
  10. deadmanwanking

    deadmanwanking Newbie

    Joined:
    Jun 26, 2015
    Messages:
    11
    Likes Received:
    3
    My point exactly. MPIs area also so 90s man.
     
    • Thanks Thanks x 1
  11. noon3

    noon3 Registered Member

    Joined:
    Jan 12, 2014
    Messages:
    91
    Likes Received:
    6
    I just recently started learning NodeJS (just curious about it)
    what do you people use it for ? I mean alright you can make a side-server application in Node.js , but what for ? if you get me!
     
  12. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,567
    Likes Received:
    11,030
    Occupation:
    Pusillanimous Knitter
    Location:
    Buenos Aires
    Streaming is a great use case. Generally, when you need to handle a lot of IO, Node is your friend. JSON API services & scraping is what I use it for most of the time.
     
  13. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    970
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    Same here. It's a perfect fit for network applications.

     
    • Thanks Thanks x 1
  14. Ramse

    Ramse Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 6, 2014
    Messages:
    816
    Likes Received:
    93
    Home Page:
    I'm so glad we got a nice discussion going around here.