laurent.orseau
2020-9-3 09:15:11

I wish there was a police of click-bait titles…


jcoo092
2020-9-3 09:16:16

To be honest, while the title is kinda click-bait-y, the article does in fact basically address that question.


laurent.orseau
2020-9-3 09:21:50

When I see a title like this, I can’t help spending minutes internally grumbling about everything that’s wrong with it and the impact on trust and information. So not click-bait but think-bait :smile:


jcoo092
2020-9-3 09:23:30

Applying critical thinking to what you read on the internet?! Madness!


laurent.orseau
2020-9-3 09:29:10

That’s certainly a highway toward madness!


notjack
2020-9-3 10:00:11

as one of the resident Java experts at Google, oh boy do I have Opinions about this


notjack
2020-9-3 10:00:40

a big one is that I wouldn’t count “class A implements interface B” as inheritance


notjack
2020-9-3 10:01:15

since there’s no sharing of implementation between supertype and subtype: only sharing of API


notjack
2020-9-3 10:01:49

I’m a big fan of that kind of sharing. But class-to-class inheritance can die in a fire.


notjack
2020-9-3 10:03:58

also java introduced lambdas like ten years ago, nowadays the better example for how FP is going mainstream is that java 14 and 15 are introducing records (immutable bags of data), pattern matching, and switch expressions :stuck_out_tongue:


samth
2020-9-3 11:07:07

I am …. not a fan of that article


samth
2020-9-3 11:08:36

For example, the history is mostly taken from a random talk by an Elm developer


rogarithm
2020-9-3 16:26:54

@rogarithm has joined the channel


samdphillips
2020-9-3 16:33:39

I’ve always thought the answer to “why is oop used so much, if everyone hates it” was that actually a minority hate oop they are just really loud about it.


notjack
2020-9-3 23:49:52

yeah but people who don’t hate it (like me) are unlikely to talk about it, so you don’t hear from them


sorawee
2020-9-4 02:20:17

I believe a part of the hate is that people equate OOP = Java = public static void main thing.


jcoo092
2020-9-4 03:09:58

That’s basically what the article gets at - that what OOP was intended to be, and what people hate, are not necessarily the same. The useful aspects of OO somehow ended up getting overshadowed by inheritance hierarchies and the like.

I think the problem is probably that, like many things in programming, some aspects of OOP ended up becoming a religion where you had to zealously obey some holy laws, no matter how much it may or may not make sense in a given context.