4 ms·
There are many, many more good libraries for Java in Maven Central than for .NET in Nuget. OS independence, if not quite platform independence, has informed mu
by sk5t 10y ago
There are many, many more good libraries for Java in Maven Central than for .NET in Nuget. OS independence, if not quite platform independence, has informed much of those libraries' development.
Maven, love it or hate it, can do a staggering number of things, some of them very useful.
JAX-RS servers and clients are more robust IME on Java. (Just try to find a capable path+querystring builder for .NET.)
JDBC is still the gold standard for database connectivity.
- revelation 10y agoMaven, where your build script is actually declarative XML that might or might not run. Maven, which spends a minute contacting random servers all over the world only to tell you there is a closing tag missing. I still have a repository where Surefire (hah) refuses to run any tests. Impossible to debug. No, that pile won't be missed.
- pjmlp 10y agoI will rather take Maven a full day over a few seconds with Gradle.
- vorg 10y agoSince Gradle 3, Kotlin is the preferred language for writing build scripts and addins, rather than just Apache Groovy. If you use Kotlin instead of Java for your Android coding, you can use the same language for writing your build scripts as you do for your system code.
- jongalloway2 10y agoCurious what you're looking for in a path+querystring builder. For ASP.NET controllers, I'd use attribute routing's URL generation: https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/routing#url-generation https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers... If you want a separate library for use outside of ASP.NET, and you want something more sophisticated than UriBuilder, there are several out there. I've used Superscribe in the past, but I just looked around and Flurl looks pretty neat: http://tmenier.github.io/Flurl/ http://tmenier.github.io/Flurl/
- sk5t 10y agoI mean something like WebTarget: https://jersey.java.net/documentation/latest/client.html#d0e4526 https://jersey.java.net/documentation/latest/client.html#d0e... Haven't yet found the .NET equivalent to allow webtarget.path("foo").path("bar").query("hello", "yes") without making the user try to remember which URI query-part-escaping static method is appropriate. Now that said, Flurl looks to have this pretty well covered, neat library!
- koolba 10y ago> JDBC is still the gold standard for database connectivity. The funny thing about that statement is that it's both true and insanely sad. JDBC is downright terrible but having a standard DB access layer has contributed a lot to Java's rise over the years.