DEV Community

Discussion on: Rethinking JavaScript: The complete elimination and eradication of JavaScript's this.

Collapse
 
joelnet profile image
JavaScript Joel

I subscribe to the theory of Why Programmers Need Limits. I also subscribe to a functional reactive paradigm.

It goes against what I have been taught in school, but I have started to question why about a lot of things in the language. I ask myself stupid questions like "What if X didn't exist". Questions like these have led me to better code.

We just bang out a for loop without thinking. It's what we've been taught, what we are familiar with, so it's easy. But it's only because of repetition that the for loop is easy. Compared to other methods of iteration it's actually incredibly complicated. But because those other methods are less familiar, they seem harder. But they aren't harder, you just don't have that muscle memory to fall back on.

So I clear my mind of these biases, open my mind, and think from new. Why do we need this?

The true solution is to not code with this AT ALL. EVER. But in a codebase out of our control, this isn't always possible.

After I rediscovered my love for JavaScript after throwing 90% of it in the trash, I started to really enjoy JavaScript.

All those weird issues that other developers hate JavaScript for all went away.

this was just next on the chopping block.