Hacker News new | past | comments | ask | show | jobs | submit login

What is with this bazaar conviction that classes are bad?



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.


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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: