5 ms·
> I wish more programming languages provided interfaces for building libraries around the std library like what Go does. Java does, but apart from JDBC for dat
by fzeindl 3y ago
> I wish more programming languages provided interfaces for building libraries around the std library like what Go does.
Java does, but apart from JDBC for databases, and the servlet-API, I haven't seen many cases where that really improved the world of programming. Java-EE relied heavily on such abstractions, but nowadays those would be replaced by simpler, less abstract constructs with less redirections.
> This is huge for things like database drivers which might become outdated or not support certain features. In Go switching database drivers in as simple as importing the new library. You don't have to change your code.
Database drivers are an abstraction that tends to leak it's underlying technology very fast.
The idea of just being to swap your database out under the hood is neat, but generally holds only for simple projects.
Also the abstraction that helps you here is SQL really, not the driver.
- pjmlp 3y agoJava EE isn't gone away, it is the foundation of all modern Java frameworks, via Jakarta EE renaming and Microprofile. Spring, Quarkus, Helidon, Liberty, Wildfly, TomEE, Payara all support it. It turns out such standards are quite valuable for the industry at scale, instead of playing tetris with third party library stuff of various quality.