Saturday, September 18, 2021

Proof that JS is a right wing agenda

In a JavaScript interpreter the expression 1/x when x is 0 is Infinity. At a first glance, it may seem an innocent bad design choice of ECMA (as has been through the entire lifetime of it) but little people do realize the subliminal political preference underlaid, unless they're Byomkesh Bakshi-grade detective mathematicians that seek truth (like me).

So in today's article we prove that how this "simple" and apparently "bad design" is a pushing a political agenda. I advice the leftists who've been using it; to just simply switch to Python if they care about their ideals and not their web-developer certificate.

Why does it?

I assume you all to have preliminary knowledge of limits, though don't worry its not complicated at all.

We all are aware that right limit of 1/x as x tends to 0 is Infinity; but if we do it from the left it goes to -Infinity.

What did I just say? If we keep reaching towards zero in the X-axis from the positive side (right side in the graph) then 1/x will keep reaching Infinity, but if we do the same but from the negative side (left side in the graph) then 1/x will keep reaching -Infinity.

Now JS doesn't throw an exception ZeroDivisionError like Python or SIGFPE or querying with fetestexcept like C/C++ (another great™ decision of ECMA). Perhaps to make it a bit natural to mathematicians; it evaluates to Infinity.

The "proof"

Recall what I said about limits of 1/x . It has no two-sided limits but two one-sided limits. JS developers chose the right one, but why right one? Obviously because they're right-wing.

So next time if you come around a weird choice of a programming language, don't take it lightly. It always has a subliminal agenda underlaid which deceive the eyes of a computer enthusiast. Politics is everywhere my brother '-' you ain't safe.