News for hackers. Stuff that matters.
Re:Java’s Cultural Problem by grishka on Monday September 19, 2022 @10:04AM (#32898473)
I can't stand any magic, it always inevitably feels like a massive liability to me and always bites me in the ass sooner or later.

I use http://sparkjava.com in my projects. It's as tiny as web frameworks get, it only handles routing and request/response, and you get to do everything else manually. Only thing I had to hack into it was response streaming. The one most internally convoluted and enterprise-y dependency I use is, surprisingly, the official MySQL driver. GraalVM complains about it as well.

Re:Java’s Cultural Problem by switchbak on Monday September 19, 2022 @10:20AM (#32898701)
The idea that someone would reuse the "Spark" name though? Not sure how that got past a cursory review, that must make googling endlessly difficult.
Re:Java’s Cultural Problem by mring33621 on Monday September 19, 2022 @11:01AM (#32899275)
https://javalin.io/ is similar to sparkjava and has a name that does not overlap with a well-known, big data framework.
Re:Java’s Cultural Problem by karmakaze on Monday September 19, 2022 @04:49PM (#32903765)
I actively looked for a lighter framework for microservices that could start up much faster than a Spring/Boot app.

Tried SparkJava and later decided that Javalin is a better choice which is now what I reach for. Also using JDBI to go along with it.

Re:Java’s Cultural Problem by rochak on Monday September 19, 2022 @02:19PM (#32901916)
This looks extremely similar to ExpressJS. Interesting. I kinda like it.
Re:Java’s Cultural Problem by grishka on Monday September 19, 2022 @04:03PM (#32903175)
Thing is, it's so simple and straightforward, you don't have to google anything. Reading the sources and poking things with a debugger has been enough for me so far.
Re:Java’s Cultural Problem by netvl on Saturday September 24, 2022 @08:21PM (#32967827)
The problem with SparkJava is that it is not maintained anymore :( according to GitHub, meaningful work on it last happened in 2020. It was indeed a great tool, but now I’d choose Javalin since it is maintained, or even better, Ktor if I’m using Kotlin.