←back to thread

257 points pmig | 10 comments | | HN request time: 0.515s | source | bottom
Show context
codr7 ◴[] No.43097605[source]
I'm pretty fond of Java; it's definitely a superior language to Go if you ask me, which I've also written a ton of code in.

But I stay away from Spring Boot, end the entire EE stack of crap that came before it, if at all possible.

I've had more success adding whatever I need on top of embedded Jetty.

It's mostly a cultural problem, no one is forcing you to go the AdapterFacadeInjectionBuilderWhatever way.

I've been working on a library to simplify interfacing with relational databases for a while now. With several implementations in Go and other languages. And the java version looks at least as nice as the rest to my eyes:

https://github.com/codr7/tyred-java

replies(2): >>43097654 #>>43098280 #
38[dead post] ◴[] No.43097654[source]
[flagged]
1. codr7 ◴[] No.43097734[source]
I could tell you why, based on writing a ton of code in both, but I doubt that would lead anywhere.
replies(1): >>43097761 #
2. 38 ◴[] No.43097761[source]
https://github.com/codr7/tyred-java/tree/main/src/codr7/tyre...

24 of those files are under 100 lines - some of them are as small as three lines of code. and that's not a personal preference - that's mandated by Java that each type needs to be in its own file, ridiculous.

replies(3): >>43098278 #>>43098338 #>>43098953 #
3. codr7 ◴[] No.43098278[source]
I don't see that as a problem at all, just like I don't see header files in C++ as a major problem, there are benefits as well and Java has the best IDEs of any language I've worked in except maybe SmallTalk.
replies(2): >>43098818 #>>43099592 #
4. throwaway2037 ◴[] No.43098338[source]

    > that's mandated by Java that each type needs to be in its own file, ridiculous.
Nested classes?
5. 38 ◴[] No.43098818{3}[source]
Java has the best IDEs, because as a language development is essentially impossible without one. contrast with Go where I can put as many types into one file as I like, and I can (and do) use Go without an IDE, both personally and professionally
replies(1): >>43101251 #
6. galkk ◴[] No.43098953[source]
> mandated by Java that each type needs to be in its own file, ridiculous.

Each public type, but in general I agree, this is ridiculous decision.

7. johnisgood ◴[] No.43099592{3}[source]
Let me know when you can work on a medium-sized Java codebase in Emacs or Vim smoothly.
replies(1): >>43103012 #
8. gf000 ◴[] No.43101251{4}[source]
What part of Java development is impossible without an IDE?

It's a stupidly simple language.

Just because people actually use it and thus IDEs were developed to aid the development process doesn't make it a necessity at all. I have programmed Java countless times from vim without any plugins. The only pain point is imports, which would be similarly painful in any other language ever created.

9. codr7 ◴[] No.43103012{4}[source]
I more or less live in Emacs, but I wouldn't use it for drawing pictures or writing SmallTalk either. The right tool for the job.
replies(1): >>43151125 #
10. johnisgood ◴[] No.43151125{5}[source]
I can use Emacs and Vim for pretty much everything, definitely not Java or JVM-like languages.