social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

486
active users

#handler

0 posts0 participants0 posts today

🍮 Wissen zum Nachtisch: 🍨

Retröt: Der #Kapitalismus braucht für #Wachstum und #Gewinnmaximierung schier endlosen #Konsum. Also unser #Geld. Und deshalb tricksen #Verkäufer uns aus. Das muss aber nicht so sein.

oekologisch-unterwegs.de/ernae

🛍️ #Händler nutzen viele Strategien, um uns zu Käufen und hohen Ausgaben zu verleiten. Vieles davon basiert auf psychologischen #Tricks. Bleibe aufmerksam und kenne die Taktiken! So behältst Du die Kontrolle über Deine Ausgaben. 💡

www.oekologisch-unterwegs.deDie Tricks der Verkäufer: So schützen Sie sich vor Manipulation
More from Tino Eberl

🍮 Wissen zum Nachtisch: 🍨

Retröt: Der #Kapitalismus braucht für #Wachstum und #Gewinnmaximierung schier endlosen #Konsum. Also unser #Geld. Und deshalb tricksen #Verkäufer uns aus. Das muss aber nicht so sein.

oekologisch-unterwegs.de/ernae

🛍️ #Händler nutzen viele Strategien, um uns zu Käufen und hohen Ausgaben zu verleiten. Vieles davon basiert auf psychologischen #Tricks. Bleibe aufmerksam und kenne die Taktiken! So behältst Du die Kontrolle über Deine Ausgaben. 💡

www.oekologisch-unterwegs.deDie Tricks der Verkäufer: So schützen Sie sich vor Manipulation
More from Tino Eberl
Replied to Thomas Broyer

@tbroyer Ah you're right, I didn't realize the arrow function also inherited the `class` scope as well. Clearly I don't understand how `this` works either!

I'd still argue that needing arrow syntax over method syntax is a problem for the same reason, it shouldn't be necessary to do that.

Also doesn't `this.#handler = this.#handler.bind(this)` still create an instance property? I don't see how that can be avoided here.

Continued thread

The best pattern I've found for event listeners is effectively:

```javascript
class MyListener {
#handler = (() => {
// Has appropriate `this`.
}).bind(this);

start() {
window.addEventListener('something', this.#handler);
}

stop() {
window.removeEventListener('something', this.#handler);
}
}
```

I really hate that I _have_ to do that. It's incredibly confusing for anyone who doesn't understand `this` (which is most of the community) and creates a new function for each class instance.

Very much looking forward to an `@bound` decorator which does this more ergonomically.

Howdy y'all! #introduction post: My name is Chris. I will be migrating my posts from my Twitter @LthrmnChris over to here. I can't wait to make some new connections. I made a list of hashtags that include my interests so check em out!
#Leather #Gear #Leatherman #Poly #fisting #Gay #ws #vers #bottom #top #Dom #Sub #Switch #Art #Tattoos #bondage #Photography #Daddy #Boy #BDSM #ImpactPlay #Roleplay #Edging #Popperbating #Handler #PuppyPlay #NipplePlay #NSFW #Pig #PitPig
Continued in comments: