3 ms·
I think so too. In JS it's rather easy to compose objects. In Java it feels clunky, you code looks kinda wrong when you done.
by k__ 12y ago
I think so too.
In JS it's rather easy to compose objects. In Java it feels clunky, you code looks kinda wrong when you done.
- zo1 12y agoI don't quite understand this. In my opinion JS "classes", if you want to call them that, look, feel and act very clunky. My opinion, of course... Please could you explain to me how you feel Java "classes" feel clunky and look wrong? I'm genuinely curious, and open to being convinced. Note I substituted your usage of "objects" with classes, because they're vastly different concepts. I know, murky water when it comes to JS, but still.
- k__ 12y agoMy point was, classes and inheritance feel natural in Java. Object-Composition feels natural in JS.