American vision

How did JavaScript and Node.js become popular for IoT development?

@Quora to How did JavaScript and Node.js become popular for IoT development? u  do not want waste PWR running while(true)  loop-> 4evr checks 4 values, u want system to tell u what happened & then u can react.

Answer by Johan Öbrink:

Two reasons:

Javascript is a fundamentally event driven language

IoT is fundamentally event driven. In that sense, JS is a perfect match. You do not want to spend precious battery power on running a while(true) loop that constantly checks for values and spawns conditional events. Instead you want the system to tell you when and what happened and then you can react to that.

Javascript is easy to get started with

This one should not be underestimated. We've had the possibility to build IoT stuff for ages now. It just hasn't been very easy for non experts. What's happening now is that this power is being put in the hands of everyone. This is through the standardisation of hardware, the reduction of cost and in the simplification of writing software. Getting started with JavaScript is a lot easier than getting started with C. So when it suddenly becomes possible to construct an "intelligent" fork using JS and some stuff from SparkFun, it's obvious that it's going to become popular.

How did JavaScript and Node.js become popular for IoT development?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s