-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup #42
Comments
I'm happy to help. But I would be happier if the comment was more constructive. |
Fair point - and thanks! I was going to tackle this, but here is what I'd suggest - if sensible, we can create separate issues, but perhaps you know which classes can simply be removed to slim it down? (or marked as @deprecated with a comment to be removed in 1.33.
|
The "tabular" package was initially created as a solution for Issue #26 but was later replaced by what |
The initial reason why |
The goal (no trace/issue about it sorry) was to move everything in |
Supporting all the refactoring ideas. Just checked and my code still uses ArchiveFactory everywhere. Would be good to have just one factory, whichever it is I don't care. And validation could be a separate thing - if its needed at all |
@mdoering - would you prefer that we incorporate the refactor so that the ArchiveFactory API remains? I think that would be doable and might make adoption easier. |
you mean to keep |
Was asking if he'd prefer to keep |
ok, but it's already like that see https://github.com/gbif/dwca-io/blob/master/src/main/java/org/gbif/dwca/io/ArchiveFactory.java#L64 Unless I misunderstood. |
I reckon its simpler to keep ArchiveFactory instead of DwcFiles as its used a lot already and the main entry into the library. But its not a big deal for my codebase to switch to DwcFiles - whatever you guys prefer. But I also would like to see just one factory |
Thanks Markus,
I suggest we keep the ArchiveFactory adding any new public methods
necessary - mainly because we just don't know how many codebases will be
affected.
…On Sun, Mar 4, 2018 at 1:37 PM, Markus Döring ***@***.***> wrote:
I reckon its simpler to keep ArchiveFactory instead of DwcFiles as its
used a lot already and the main entry into the library. But its not a big
deal for my codebase to switch to DwcFiles - whatever you guys prefer. But
I also would like to see just one factory
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOepYHlXC82dCXsOC4XXY18frtRh8tiks5ta-ACgaJpZM4SXJRw>
.
|
I would suggest to keep Considering |
Just an FYI: In the last month, developers from institutions in Japan, France, Germany (not Markus), Sweden, Britain, Mexico, the Netherlands and a cloud build server have downloaded the artefact from us. |
@cgendreau, what was the thinking behind deprecating the The old way: Archive arch = ArchiveFactory.openArchive(new File("archive.zip"));
for (StarRecord rec : arch) {
...
} seems nicer than having to create a Would it be nice if we could do this? Archive arch = DwcFiles.fromLocation(Paths.get("archive.zip"));
for (StarRecord starRec : arch) {
...
}
for (Record coreRec : arch.getCore()) {
...
}
for (Record extRec : arch.getExtension(whatever)) {
...
} |
The main reason behind In short, I believe that sorting all files (core +ext) is not really the task of an iterator and that it should only be done if it's really required. |
This is unlikely to happen, so I won't fix it or even detect it; just document it. Relevant to #42
This project is a mess. There are comments about classes being removed in the near future and it is not clear how it is now meant to be used.
We should remove what can be and clean up. You get the sense it is overly complex for what should be a rather simple library
The text was updated successfully, but these errors were encountered: