r/JavaProgramming • u/No_Use3178 • 3d ago
Java library
I'm planning to build a Java library. What's one feature or functionality you wish existed in Java that would make programming easier? I'd love to hear your ideas!
5
Upvotes
3
u/Dani_E2e 3d ago
Eigentlich machst du ja nichts anderes beim programmieren als Bibliotheken zu schreiben. Wenn du generisch gut wiederverwendbaren code schreibst ist das eine persönliche Bibliothek. Je nach Anwendung kann das unterschiedlich sein. Bei mir fing es an mit Funktionen zum loggen, String manipulieren für Dateinamen und andere Werkzeuge für ein eigenes Backup/ snapshot tool. Die Bibliotheken stehen extra separiert, dass man sie leicht wieder verwenden und finden kann.
Hier zum Beispiel: https://github.com/oldy-22/Danis-FileSync/tree/main/DFS/DFS/src
2
u/__raikar 3d ago
As a Java beginner, I'd find a library that simplifies repetitive coding tasks really useful. Something that makes working with collections, file handling, and exception handling easier without hiding how things actually work. It would help beginners write cleaner code while understanding what's happening behind the scenes.
2
u/Made-In-Slovakia 3d ago
Create library that you find useful and you want to use. Then publish it.
1
u/ExtraTNT 2d ago
Monads
1
u/Europia79 1d ago
I could really use an OTOM Library. Altho, I'm not sure I'd really make anything today "Java specific". So, it'd probably be better to do a C Library instead, then make "bindings" for popular languages—like Rust, Java, C#, Python, etc (since C is "interoperable" with most other languages). But also, just a heads up that the JNI looks scary AF, lol.
1
u/Delicious-Lack-2471 1h ago
a lombok like annotations for collections that expose basic operations on them like add element, remove element, etc.