3 ms·
"The more powerful the language, the easier the libraries are to use." for anyone thinking of reading the title without the body It's true, you couldn't really
by morshu9001 10mo ago
"The more powerful the language, the easier the libraries are to use." for anyone thinking of reading the title without the body
It's true, you couldn't really do Express in Java, at least not back then.
- newsoftheday 10mo agoI don't understand, what's Express? As for libraries and Java, I'd argue Java became a well established enterprise language and platform exactly because it makes such highly effective use of libraries.
- morshu9001 10mo agoIt's the NodeJS webserver
- oaiey 10mo agoSee C#'s asp.net core minimal apis (a express clone). So it is definitely possible but you need to co-develop the language. I think as you point out.
- didip 10mo agoIt’s possible to have something like Express, take a look at Javalin. But Java problem is not the mechanics, it’s that the community doesn’t want nice things.
- morshu9001 10mo agoKinda now that Java has lambdas, but still async in that disn't work as easily as JS, which is important. This is only recently starting to change with Project Loom.
- brabel 10mo agoJavalin was inspired by https://sparkjava.com/ https://sparkjava.com/ which was inspired by Sinatra (which I think also inspired Express?). Anyway, libraries like this were only really feasible after Java 8 because of the reliance on lambdas. Having to instantiate anonymous nested classes for every "function" was a total pain before that.