Message from JavaScript discussions

September 2020

— Kek, why you bind() that

— 

You already call it over correct object, so if you completely remove this.hasAge assignment and it will be ok

— You don't need bindings for this use-case

— Bindings are useful with the event handlers, to set the state of that object. take as a rule to not to bind if it's not event/callback

Message permanent page

— Use proper classes, if you want OOP :)

— 

class Person() {
constructor(age) {
this.age = age
}
hasAge() {
return this.age
}
}
const father = new Person(50)

father.hasAge() // 50

Message permanent page

— No bind, no prototype..

— Proper classes aren't as good as constructor pattern imo🤤

— Why did this make me laugh so hard

— Bruh do you even typescript

— Ye, i looked at Linus Torvald'z "dots" at github.. this is ridiculous, he must be a cyborg

— Pff shellscript that add's one letter as a comment and does a commit pfff