Stream: dev

Topic: Unique code / standard code


view this post on Zulip Benedikt (May 08 2024 at 12:16):

i have a question about the code. sometimes SEP and sometimes File.separator are used and sometimes other codes are included. Can I change this and is there a default and preference? Otherwise I would use File.separator.

view this post on Zulip Philip Durbin ๐Ÿš€ (May 08 2024 at 12:31):

Sorry, SEP? Can you please link to the code?

view this post on Zulip Benedikt (May 08 2024 at 13:29):

Yes, of course... Still wanted to have made.
https://github.com/IQSS/dataverse/blob/07eb97be160faf9ae4059bf3159e1a334382ccb4/src/main/java/edu/harvard/iq/dataverse/DatasetVersionServiceBean.java#L9
https://github.com/IQSS/dataverse/blob/07eb97be160faf9ae4059bf3159e1a334382ccb4/src/main/java/edu/harvard/iq/dataverse/api/BatchServiceBean.java#L49
https://github.com/IQSS/dataverse/blob/07eb97be160faf9ae4059bf3159e1a334382ccb4/src/main/java/edu/harvard/iq/dataverse/batch/jobs/importer/filesystem/FileRecordJobListener.java#L84

And more...

view this post on Zulip Philip Durbin ๐Ÿš€ (May 08 2024 at 13:32):

Interesting. Personally, I would probably use File.separator but if you want to define it as SEP, I don't think anyone would object.

view this post on Zulip Benedikt (May 08 2024 at 13:33):

I have also found a few other things that I have been improving bit by bit. it's not bad, but make the code more readable and a bit more uniform. But I don't know if that's what you want.

view this post on Zulip Philip Durbin ๐Ÿš€ (May 08 2024 at 13:33):

Well, we had a recent conversation about coding style that resulted in #10524. If you have more you think we should add to that list, please let us know!

view this post on Zulip Benedikt (May 08 2024 at 13:34):

File.separator I was also favoured.

view this post on Zulip Benedikt (May 08 2024 at 13:37):

Yes, I will do that. But I thought I'd write here in the chat to see if what I personally think is okay.

view this post on Zulip Philip Durbin ๐Ÿš€ (May 08 2024 at 13:51):

Make sense. Should we have a thread/topic per idea? We could rename this one to SEP vs File.separator, for example.

view this post on Zulip Philip Durbin ๐Ÿš€ (May 08 2024 at 13:51):

There's also https://groups.google.com/g/dataverse-dev

view this post on Zulip Philip Durbin ๐Ÿš€ (May 08 2024 at 13:52):

I bring up that "dev" mailing list because not all of the core devs read Zulip.

view this post on Zulip Benedikt (May 08 2024 at 14:25):

okay. Thanks!

view this post on Zulip Benedikt (May 08 2024 at 14:47):

Can someone add (benedikt.meier@uit.no) me to the list: https://groups.google.com/g/dataverse-dev

view this post on Zulip Philip Durbin ๐Ÿš€ (May 08 2024 at 16:03):

@Benedikt sure, I just sent you an invite.

view this post on Zulip Benedikt (May 10 2024 at 06:03):

thanks!

view this post on Zulip Philip Durbin ๐Ÿš€ (May 10 2024 at 09:53):

@Benedikt thanks for posting https://groups.google.com/g/dataverse-dev/c/5QYTeIi3Zoc/m/2CT2Q7BaAAAJ


Last updated: Nov 01 2025 at 14:11 UTC