JavaScript is the Assembly programming language of the 21th Century

Are you a dinosaur, or can you adapt to the future?

Do you know how to concatenate two strings in CISCx86 assembly? Probably not. More importantly, do you know why you don’t know how to do this simple thing? Because it is almost a completely useless skill today!

Few if any developers are creating code in assembly today. The reasons why, is because the compiler does a much better job at creating your CPU’s instruction set, than you can possibly imagine ever being able to do yourselves by hand. The compiler is able to optimise your string concatenation algorithms, utilising the lates and coolest features from Intel and AMD, which you couldn’t even imagine to ever be able to understand “by hand”.

On this site, I have created performance comparisons between the traditional way of creating web apps, and the “compiler version” of creating web apps. And guess what; The “compiler Ajax approach” outperforms the traditional way of creating Ajax apps with orders of magnitudes – On every single parameter that exists! I refer to this “compiler JavaScript version” as Managed Ajax.

By having a simple JavaScript file, that never exceeds 4.8KB in total size, you can get away with declaring your HTML on the server. The server will automatically render your controls either as pure HTML, or as JSON updates sent back to the client, depending upon what type of HTTP request you’re handling. This approach allows me to put forth claims such as the following.

  • You will be 100x more productive
  • You will create 100x more secure code
  • Your apps will be 100x faster and more responsive
  • And you don’t need to know “assembly” (read; JavaScript)

The dinosaurs went extinct because they couldn’t adapt. If your competition is using managed Ajax, and you’re not, you are destined to go extinct. Simply because the above claims can be scientifically verified, and reproduced, within an empiric context! Just like the fact that few if any developers are able to outperform their C++ compiler when concatenating two strings. This is the reason why you don’t know assembly today. This should be the reason why you shouldn’t spend all your time learning JavaScript. JavaScript was the “King of the past”, just like dinosaurs were 65 million years ago. However, we all know where things are moving, and you really have no excuse to not embrace the future. After all, you are a mammal! We are still pretty early in the 21st century. However, I will be bold enough to make a prediction none the less.

Unless you stop using “assembly” (read; JavaScript), you will not be able to compete with your competitors in less than 5 years from now. Simply because there exists superior alternatives!

To prove that claim, let me demonstrate a simple piece of code in Hyperlambda from the following blog.

create-widget
  parent:content
  class:col-xs-12
  widgets
    sys42.samples.git-hub.file-browser

The above is 5 lines of code. Creating something similar in JavaScript would require several megabytes of JavaScript. The above results in only 4.8KB of JavaScript. In addition, if you tried to create something similar in JavaScript, you would end up having to create probably at least 10000 lines of code (LOC). The above is 5 lines of code.

To understand how I could do this, feel free to watch the following video, for then to read the following blog, which contains the code.

Leave a Reply

Please log in using one of these methods to post your comment:

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