I barely recognize anyone on esDiscuss. Heck, I barely recognize JS on esDiscuss, everybody is writing Java OOP style it seems.
@vjeux @brendaneich Everything classes do can be achieved with prototypes. Easily. Classes are just added for the sake of familiarity.
-
-
@yoshuawuyts@BrendanEich at fb we used to write classes the pure js way by creating a fn and them mutating the prototype directly -
@Vjeux@BrendanEich Similar to this? Was curious why you chose to not do that, could you enlighten me? -- https://gist.github.com/yoshuawuyts/1df67cf3feb5816728e8 … - 6 more replies
New conversation -
-
-
@yoshuawuyts@BrendanEich (1) is incompatible with the rest (2) is added to the byte count of your app (3) burden people with more learning -
@Vjeux@BrendanEich I'd say the express / koa frameworks are non-trivial. Although they have a different use case, they *just* use functions - 3 more replies
New conversation -
-
-
@yoshuawuyts a) `super` calling/constructing is not trivial; b) syntax is user interface, even ignoring `super` it can pay its way.@Vjeux -
@BrendanEich@Vjeux Fair enough. But is the way forward truly to wrap everything in bulky class blocks? - 1 more reply
New conversation -
-
-
@yoshuawuyts@BrendanEich every non trivial codebase out there implements its own flavor of class that essentially does the same thing butThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@yoshuawuyts@BrendanEich the result is that it confused people why they had to write that, and didn't really give any advantageThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@yoshuawuyts@BrendanEich we switched to use es6 classes and we're pretty happy with itThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.