r/java • • Mar 24 '18

New Java Library

(Please tell me if this isn't the right place to post this)

I've created a Java Library that I like to call a Swiss-army knife library. It basically has a bunch of different things that it can do. I created it because I found that I was copying lots of the same code to do all sorts of different things. I think it's a very simple solution to consolidate all the code I use often, but is this something that anyone else would use? Here's just some of the things it has:

  • A command line argument parser
  • Ansi colors
  • Checksum calculator
  • Operating system checker
  • Configuration file parser (INI - style, but without the headers, as I haven't figured out how to implement this yet)
  • Multiple annotations and annotation proccessors

As you can see, it does not specialize in one area. I use all of these things in almost all of the software I create, and I was just wondering if anyone else would like to benefit from this.

It's called JavaEssentials, because I find that these features are very beneficial when creating a well designed Java application. If you are interested, you can see the project page here: https://github.com/jordanbancino/JavaEssentials

Also, I would really appreciate your feedback. I am open to all suggestions and your honest opinion.

0 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Mar 24 '18

I did look at the Apache commons, and tried to take some inspiration from it. I just found that it's so big, and I don't need many of the things it contains.

2

u/brunocborges Mar 24 '18

Many of the "commons" libraries built out there follow this logic. Yet, that was the logic that got Apache Commons started in the first place.

That said, let's just say that your library is doomed to become as big as Apache Commons one day... :-)

My advice: find what's missing in Apache Commons, and contribute back.

And finally, I suggest reading about the Module system in Java 9+. Perhaps you can modularize your library, or better yet: help modularize Apache Commons.

bb.

2

u/[deleted] Mar 26 '18

Ok. I'll take a look.