A look at the history of JavaScript and the fun stuff you can do with JavaScript in the cloud!
Traditionally, JavaScript is the language of the web (and it still is); but today, it’s so much more. With the advent of server-side JavaScript and JavaScript support in major cloud platforms, JavaScript’s power has increased dramatically. As a result, building, maintaining, optimizing, and deploying end-to-end JavaScript applications is possible with JavaScript in the cloud.
Cloud platforms give us the tools, elasticity, and scalability to create high-performing applications without managing the physical infrastructure. You can take advantage of the cloud while using a language you already know: JavaScript!
The cloud refers to software and services that run on the Internet instead of locally on your computer. The cloud is a server somewhere else, usually in a big data center. Cloud providers such as Azure, AWS, and Google Cloud allow you to rent space on a server and pay for what you use. They let you scale as your business needs change while they manage the physical infrastructure for you. Think of it as renting a house or renting a piece of land; it provides different control levels over managing the property, depending on which type of cloud computing you are using.
So in reality, there is no cloud; it’s just someone else’s computer.
JavaScript is a language that allows you to implement complex features on web pages.
It was created in 1995 in just ten days by Brendan Eich, who worked for Netscape. He created JavaScript as a scripting tool to manipulate web pages in the Netscape Navigator browser.
JavaScript took off to become the most popular client-side programming language. Today, 97% of the web uses JavaScript!
However, JavaScript is much more than just a client-side programming language. Scott Hanselman, a Partner Program Manager at Microsoft, even went so far as to say that he proposes “JavaScript is an operating system.” He based the comparison on the fact that JavaScript has the same characteristics as an operating system.
JavaScript is a flexible and robust language. Thus, it makes sense for us to use JavaScript in the cloud.
Initially, Eich wrote JavaScript as both a client and server-side language. However, it didn’t become popular as a server-side language until later on with the creation of Node.js in 2009.
Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser. The advent of Node.js as a server-side JavaScript programming language opened up the ability to use JavaScript in the cloud.
Today, all the major cloud providers support JavaScript in the cloud.
And, in the words of Scott Hanselman:
The cloud doesn’t care about language choice.
If you are looking to develop JavaScript in the cloud, there are some excellent tools and guides out there to help you. For example, JavaScript IDEs such as Visual Studio Code and WebStorm have extensions that let you integrate with your favorite cloud providers, access quickstart templates, write, debug, and deploy your cloud applications.
All major providers have a suite of SDKs and client libraries in JavaScript to integrate with their services from your JavaScript application. These libraries allow you to:
And much more!
JavaScript is a powerful language. We can use JavaScript for web, mobile, gaming, artificial intelligence, and so much more.
There is a concept called the Rule of Least Power from Tim Berners-Lee, the creator of the web. The rule suggests that choosing the least powerful language is suitable for a given purpose.
As a corollary to this rule, we get Atwood’s Law:
Any application that can be written in JavaScript, will eventually be written in JavaScript.
In conclusion, I hope that if you are not yet using JavaScript, you go out and learn it today. On the other hand, if you are already using JavaScript, I hope you start exploring what you can do with it.
The opportunities with JavaScript are endless, especially when paired with the power of the cloud.
Free Resources