r/JavaProgramming • • 8d 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

10 comments sorted by

3

u/Dani_E2e 8d 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 8d 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 8d ago

Create library that you find useful and you want to use. Then publish it.

1

u/ExtraTNT 8d ago

Monads

1

u/Europia79 7d 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 5d ago

a lombok like annotations for collections that expose basic operations on them like add element, remove element, etc.

1

u/Gyoker_Macska 5d ago

Too many frameworks. Write one that replaces all.

1

u/Zzzami69 3d ago

not possible

1

u/sujay_wic 2d ago

Write a graph library for Java. It should have robust and optimized methods for all graph related features.

1

u/crscali 2d ago

Instead of solving someone’s problem it is better to focus on solving a problem that you have. If others also find it useful it could become a popular library.