←back to thread

257 points pmig | 1 comments | | HN request time: 0.208s | source
Show context
heluser ◴[] No.43096311[source]
I long for a deep article about the same topic. The real, core difference between Java and Go for backend is declarative vs imperative coding styles.

This one, as typical for such articles, repeats typical secondary talking points and even makes similar mistakes. For example it conflates the concept of DI with specifics of implementation in some frameworks.

Yes there are older Java frameworks that do runtime magic. But both new Java apps and well designed Go services use compile time dependency injection as a way of achieving dependency inversion.

replies(2): >>43096495 #>>43098968 #
jayceedenton ◴[] No.43096495[source]
Which of these languages is declarative? Aren't they both imperative?
replies(2): >>43096564 #>>43098429 #
1. CharlieDigital ◴[] No.43096564[source]
Maybe Java when using decorators?