Giter Club home page Giter Club logo

Comments (7)

ahdinosaur avatar ahdinosaur commented on June 3, 2024 1

published this as a helper module: depnest! 🎉

from depject.

dominictarr avatar dominictarr commented on June 3, 2024

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.

from depject.

mmckegg avatar mmckegg commented on June 3, 2024

Just handling the first case would be fine with me.

from depject.

dominictarr avatar dominictarr commented on June 3, 2024

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.

from depject.

mmckegg avatar mmckegg commented on June 3, 2024
exports.create = function(api) {
  return sugar({
     'cats.actions': { create, destroy }
  })
}

yet another way to open the can (by @mixmix + matt)

from depject.

mixmix avatar mixmix commented on June 3, 2024

from depject.

dominictarr avatar dominictarr commented on June 3, 2024

this seems resolved, closing

from depject.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.