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

Implement API Configuration #18

Open
viluon opened this issue Mar 31, 2017 · 0 comments
Open

Implement API Configuration #18

viluon opened this issue Mar 31, 2017 · 0 comments
Assignees
Milestone

Comments

@viluon
Copy link
Owner

viluon commented Mar 31, 2017

I've always wanted to have a desktox.cookAPI() function, which could transform the API into camelCase or TitleCase at will. In fact, one of the main reasons for snake_case was that it can be converted into other naming conventions easily and without clashes.

But we could do even more. Today on Gitter, I shared a rather interesting idea. There are multiple approaches to many of the existing methods of desktox.buffer, and more will probably arise over time for this module as well as for the other ones. Each approach suits a different scenario. Shipping these alternative functions with Desktox (either included within the module or separately) could then provide the users with heavily optimised tools that suit their use case best. Desktox could determine the best function to use (at library load time) by itself. Alternatively, the user him/herself could specify which implementation to pick for the buffer/handler/whatever _methods table.

@viluon viluon self-assigned this Mar 31, 2017
@viluon viluon added this to the 0.1 milestone Apr 2, 2017
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

1 participant