I'm not sure what is so hard to follow. I could boil it down to 3 words: Stop using this.
this
The articles I write all preach a functional reactive paradigm. You might enjoy How I rediscovered my love for JavaScript after throwing 90% of it in the trash.
While my code doesn't require the use of this, there are many 3rd party libraries which force you to use this.
Example:
const events = new EventEmitter2({ wildcard: true }) events.on('button.*', function() { console.log('event:', this.event) }) events.emit('button.click')
or choose a different languge
The "If you don't like it go somewhere else approach" is not a solution.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm not sure what is so hard to follow. I could boil it down to 3 words: Stop using
this
.The articles I write all preach a functional reactive paradigm. You might enjoy How I rediscovered my love for JavaScript after throwing 90% of it in the trash.
While my code doesn't require the use of
this
, there are many 3rd party libraries which force you to usethis
.Example:
The "If you don't like it go somewhere else approach" is not a solution.