-
Notifications
You must be signed in to change notification settings - Fork 11
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
gives and needs sugar #19
Comments
apart from 1, I think these complicate the code too much. better to be simple. it's a few more characters... but lots more logic & tests. I don't think it's worth it, and the discussion is a bikeshed! but I don't mind if you have a library function that can export a correct depject object, but use whatever syntax you like. |
Just handling the first case would be fine with me. |
Oh, actually, I know how I'd put it: this proposal is like an electric can opener, an electric can opener seems like a convienence, because it takes slightly less time to open a can. But, it's a lot more expensive, and how much time do you spend opening cans per day? Also, it's too large to fit in the drawer, so it must live on the bench, there are a lot more ways for it to break down, and it requires a power socket, that could otherwise have been used for something more useful (like blender - which enables you to do something you can't otherwise do). Electric Can Openers seem like a convience, but they don't really make your life simpler. Persue simplicity, not convienence. Simplicity saves time in the long run, when it matters, when you need to read the code to understand how it really works. When the power goes out. When you have to debug something. |
exports.create = function(api) {
return sugar({
'cats.actions': { create, destroy }
})
} yet another way to open the can (by @mixmix + matt) |
published this as a helper module: |
I thought of another neutral name : lazy-nest
…On Mon, 13 Feb 2017 18:56 Mikey ***@***.***> wrote:
published this as a helper module: depnest
<https://github.com/ahdinosaur/depnest>! 🎉
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACitnrXvKLi7QAxKITy3mJn9qjVlKJZ9ks5rb_B6gaJpZM4L-dLs>
.
|
this seems resolved, closing |
with using nested plugs, sometimes the
gives
andneeds
objects can be somewhat annoying.here's some possible ways to sugar this cat:
of course these could be just helper modules, but opening a discussion to include here.
/cc @mixmix @pietgeursen @mmckegg
The text was updated successfully, but these errors were encountered: