Re:Angular 9.0
by rubicon33 on Friday February 07, 2020 @02:04AM
(#22263822)
What is with this bazaar conviction that classes are bad?
[ Parent
| on HN ]
Objects and messages good, classes and inheritance mostly bad.
Except maybe for modelling/simulating concrete classes of objects (ie, as in Simula, the language).
Proper multiple dispatch (a la common lisp CLOS) seems rare - I'm guessing java/c++ seemed like a sane trade-off for some type safety - but they probably should've stuck to self/smalltalk (for Java) or looked to standard ml/common lisp (c++).
I still don't understand why Javascript got classes, rather than some paint on the prototype system.
Re:Angular 9.0
by filoeleven on Friday February 07, 2020 @02:56AM
(#22264013)
I caught the Clojure strain of the functional bug. OOP is the devil, and mutable state is his pitchfork. “this” was a mistake.
The more I can compose with pure functions that operate on immutable data, the happier I am.