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 been thinking a bit about the friction I experience with utility libs (e.g., I never want to use more than one at a time, preferably the same one every time); I think it mainly has to do with the overhead of remembering all the namespaces involved, which increases drastically if you start using lots of small one-off utility libs.
One possible way of approaching that problem is to have a plugin that lets you declare all your utility functions in your project.clj and have them combined into a single special/magical namespace so that at least requires can be less noisy.
Which sounds a lot like what lein-shorthand does, with the crucial difference being you would want this special namespace to work the same in production.
I'm not sure if there's a decent way to do both of these things at the same time, and the name "lein-shorthand" doesn't really suggest the use case I'm talking about. But I thought I would bring it up anyways to see what others' thoughts are.
The text was updated successfully, but these errors were encountered:
I've been thinking a bit about the friction I experience with utility libs (e.g., I never want to use more than one at a time, preferably the same one every time); I think it mainly has to do with the overhead of remembering all the namespaces involved, which increases drastically if you start using lots of small one-off utility libs.
One possible way of approaching that problem is to have a plugin that lets you declare all your utility functions in your project.clj and have them combined into a single special/magical namespace so that at least requires can be less noisy.
Which sounds a lot like what lein-shorthand does, with the crucial difference being you would want this special namespace to work the same in production.
I'm not sure if there's a decent way to do both of these things at the same time, and the name "lein-shorthand" doesn't really suggest the use case I'm talking about. But I thought I would bring it up anyways to see what others' thoughts are.
The text was updated successfully, but these errors were encountered: