You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 forsnake_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 thebuffer
/handler
/whatever
_methods
table.The text was updated successfully, but these errors were encountered: