yilin.wei10
2021-2-8 11:41:00

imo, Java get’s a lot of bad rap because of the coding culture around it rather than the language. It’s certainly verbose; but it really doesn’t help that it has a /ton/ of EE dogma.


jcoo092
2021-2-8 21:08:09

EE Dogma?


sorawee
2021-2-8 21:08:32

electrical enginnering?


sorawee
2021-2-8 21:08:40

I don’t know though what its dogma is


jcoo092
2021-2-8 21:09:02

That’s my best guess, but I can’t really see how that fits with Java :confused:


laurent.orseau
2021-2-8 21:09:26

Java Enterprise Edition?


samdphillips
2021-2-8 21:10:12

I think it’s all of the rote patterns and builder builders that some folks dislike about ee


jcoo092
2021-2-8 21:11:00

You mean you don’t want every class to be a SomethingBeanFactoryFactory? :stuck_out_tongue: (I should add, there are times when such a wacky sounding design can make sense)


sorawee
2021-2-8 21:18:13

that makes much more sense


samdphillips
2021-2-8 21:19:01

No one wants to write glue code


laurent.orseau
2021-2-8 21:19:09

DuplicateSingletonInstanceFactory


jcoo092
2021-2-8 21:20:52

The one that always gets me is when people dogmatically centre everything around the design patterns from the ‘Gang of Four’ book as if they’re infallible commandments passed down from God…


laurent.orseau
2021-2-8 21:50:46

Well, to be fair, if a programmer believes something like this, it may be much better for them to actually follow strict guidelines


laurent.orseau
2021-2-8 21:51:10

(for them and for the company they work for)


laurent.orseau
2021-2-8 21:51:42

That’s why java is such a huge success in big companies. It allows large teams of average programmers to work well together


yilin.wei10
2021-2-8 22:04:05

Ah sorry, it’s my catch-all term for the Spring/Java EE etc… which is in the Java space.


jcoo092
2021-2-8 22:04:45

Ah, so you were bang-on correct, @laurent.orseau :slightly_smiling_face:


yilin.wei10
2021-2-8 22:04:48

The reflection, builder, essentially /everything/ marketed as a single bullet for software design in Java.


yilin.wei10
2021-2-8 22:06:05

I’m always reminded of the Prachett quote, which is on a different subject


yilin.wei10
2021-2-8 22:06:10

It had been finding out that governments were not, on the whole, staffed by people who had a grip, and that plans were what people make instead of thinking.


yilin.wei10
2021-2-8 22:06:35

But substitute plans -> dogma and it’s sometimes the culture you get in some big enterprise Java shops.


jcoo092
2021-2-8 22:08:25

I definitely have the impression (rightly or wrongly) that when people complain about OOP, they usually have the Java EE sort of thing in mind. Along with incredibly massive, potentially incomprehensible, inheritance chains.

Of course, the ‘funny’ thing is that methods on objects really are equivalent (in most respects) to static functions which take the object in question as a parameter - if I’m not mistaken, that’s precisely how Rust and Go both define methods.


yilin.wei10
2021-2-8 22:11:41

It’s interesting because even in Haskell you have a similar pattern (typeclasses just to get the compiler to resolve the same symbol to 2 different functions depending on… the first parameter)



yilin.wei10
2021-2-8 22:12:16

For reference


vincent.sampieri5
2021-2-8 22:49:04

@vincent.sampieri5 has joined the channel