r/learnjava • u/fishybusinessdev • 6d ago
Building My Custom Data Structure Library Feed-Back pt. 2
A while ago, I posted about a small project I was working on for fun: a Java library for N-dimensional array storage and manipulation.
Originally, I made it for my own game, but eventually decided to put it on GitHub in case anyone else found it useful. I posted here to get feedback, suggestions, and criticism, and I ended up learning quite a bit from the comments.
Since then, I've made several changes, reconsidered some of my original design decisions, and released a new version.
I'd love to get some more feedback: What's good? What's bad? What could be improved? Are there any questions you have about the library or its implementation? I'm open to constructive criticism and suggestions.
I know this kind of library isn't for everyone, and that's perfectly fine. Some people will prefer working directly with Java arrays or existing collections, and I understand that. I'm mainly interested in hearing what you think of the implementation, API, documentation, and overall usefulness.
I'm also interested in feedback on the presentation. I got some comments about the README being hard to read(kinda defeats the purpose, huh?), so I've redesigned it and added more information. Hopefully, that helps.
Anyway, here's the GitHub:
View all comments
Show parent comment
1
u/fishybusinessdev 4d ago
I'm not against alternative storage architectures. A Storage hierarchy could be a reasonable approach. But I'm not seeing what specifically makes it better for JArray.
Your example still requires separate primitive backing arrays and specialized storage implementations. It demonstrates another way to organize primitive storage, but doesn't establish that it's simpler, faster, or more maintainable than the current implementation.
Also, your generic
get()method returns boxed types likeInteger, which means it still involves boxing and unboxing when accessing primitive values through that method.If you see a specific problem with my architecture, I'd genuinely like to hear it. I'm open to changing things when there's a concrete reason to do so.