Skip to content
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

Unify camel case and snake case in function names #144

Closed
automactic opened this issue May 30, 2018 · 14 comments
Closed

Unify camel case and snake case in function names #144

automactic opened this issue May 30, 2018 · 14 comments
Assignees
Milestone

Comments

@automactic
Copy link
Member

automactic commented May 30, 2018

We should unify camel case and snake case in function names. For example, currently in Searcher, there are functions add_reader and getNextResult. We should make a decision on which style to use.

@stale
Copy link

stale bot commented Nov 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Nov 21, 2019
@kelson42
Copy link
Collaborator

kelson42 commented Jun 8, 2021

@mgautierfr @veloman-yunkan @maneeshpm What is the status here? Do we at least know how it should be? How much work would be needed to fix the problem?

@stale stale bot removed the stale label Jun 8, 2021
@maneeshpm
Copy link
Contributor

@Kelson We recently took a step to change the libzim SearchIterator API to use camel case. IMO most of the API code if not all of it in libzim is in camel case, so we should try to do the same here.

I guess this is the right time to get decided on this one so that we can at least fix the libkiwix API with this scheme before the next major release.

@kelson42 kelson42 added this to the 10.0.0 milestone Jun 8, 2021
@kelson42 kelson42 pinned this issue Aug 4, 2021
@stale
Copy link

stale bot commented Aug 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Aug 18, 2021
@kelson42 kelson42 unpinned this issue Aug 19, 2021
@stale stale bot removed the stale label Aug 19, 2021
@kelson42
Copy link
Collaborator

@mgautierfr I guess this last ticket is for you. At the same time, might be a good idea to just go through the whole API and see if it looks coherent.

@veloman-yunkan
Copy link
Collaborator

Does this ticket apply only to the public API of libkiwix? If so then only kiwix::Searcher is affected. But then should be try to fix it or better get rid of kiwix::Searcher as suggested in #430?

@kelson42
Copy link
Collaborator

kelson42 commented Jan 9, 2022

@veloman-yunkan This is a good news! We should get rid of it... and make necessary adaptation in kiwix-tools and kiwix-desktop.

@mgautierfr
Copy link
Member

Does this ticket apply only to the public API of libkiwix?

It is mandatorry for the public API yes. For the private part, we can fix it now and fix it incrementally as we change other stuff.

If so then only kiwix::Searcher is affected. But then should be try to fix it or better get rid of kiwix::Searcher as suggested in #430?

It is probably better to mark it as deprecated (#654), we will remove it in a future release.

@kelson42
Copy link
Collaborator

@mgautierfr What is the advantage to keep it now, if we remove it within a month?

@mgautierfr
Copy link
Member

We don't break all existing code using it (Android wrapper is still based on kiwix structures). And I've not said it will be removed within a month, I've said it will be removed in the future :)

@kelson42
Copy link
Collaborator

kelson42 commented Jan 11, 2022

Android is broken anyway, we can not release the JNI binding anymore since a year. I see no reason to wait if we can quickly adapt kiwix-tools and kiwix-desktop.

@mgautierfr
Copy link
Member

I see no special reason to remove it now. Marking it as deprecated is almost straight forward.
Removing it means that we also need to remove the JNI wrapper (or adapt it). And it probably also means that we need to adapt our build system (should we continue to build android nightlies ?)

We can of course remove it now. But it would be yet another thing to do and check before doing the release. I would prefere reduce as far as possible the work to do before doing the release and handle not mandatory things after.

@kelson42
Copy link
Collaborator

Agree if making this deprecated is trivial. Quite sure, android nightlies are not done with cutting edge libkiwix.

@mgautierfr
Copy link
Member

So I'm closing the issue in favor of #654, we will "simply" mark kiwix::Searcher as deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants