DEV Community

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

Collapse
 
jochemstoel profile image
Jochem Stoel

So I went ahead and removed this from the interpreter. Without this so far no unexpected side effects besides the whole concept of classes/prototypes no longer working and the super() method thinking it is not a function.

nothis

Collapse
 
joelnet profile image
JavaScript Joel

Haha that's hilarious!

That is actually the best solution. If you write your software in a way that never requires this. You will never have to debug this. Classes were a mistake to add to JavaScript.

Collapse
 
jochemstoel profile image
Jochem Stoel

I read your articles. It is trippy. I thought I had invented my own style but apparently others have too and it is called functional programming.
Up until now I just referred to it as context free programming and many developers I worked with argue that my code is unreadable. It was refreshing to say the least to read your post and discover it's a thing.

Thread Thread
 
joelnet profile image
JavaScript Joel

You might enjoy looking at one of my more recent code base github.com/joelnet/bitcoin-all-tim...

It's in a functional reactive style.

I'm curious about your style if you have code to share.