Giter VIP home page Giter VIP logo

Comments (3)

alevy avatar alevy commented on September 1, 2024

Thanks for the comments! I'm going to break them up into separate issues so they can be addressed and closed independently, but also responding here:

  1. For the (err) parameter, this makes sense in general. Worth discussing this more in depth in a separate issue, specifically when/which errors to pass in specific cases.
  2. I disagree that errors should be bubbled up rather than logged. Definitely for certain errors (like failure of operations that will be retried), I think it's important for the caller to be oblivious to this happening (notice that in the case of retries it's still a user tunable parameter). I do agree that some errors (e.g. out of memory) should bubble up as well.
  3. RE: console logging. Again, this makes sense to me. The one caveat is that with memcache you often want to silently ignore failures (as long as they are transient) but log them so you know. I'm happy allowing other logging mechanisms as long as it doesn't complicate the common case. Perhaps just a config var that's a logging function the user can replace? Would just default to console.log...

Anyway, I'll create some specific issue around these comments, please feel free to comment/discuss/send pull requests on those as well. Thanks!

from memjs.

alevy avatar alevy commented on September 1, 2024

Marking as duplicate since I broke this into two separate issues.

from memjs.

hdachev avatar hdachev commented on September 1, 2024

Of course, thanks!
On Jun 19, 2012 10:12 PM, "Amit Levy" <
[email protected]>
wrote:

Marking as duplicate since I broke this into two separate issues.


Reply to this email directly or view it on GitHub:
#1 (comment)

from memjs.

Related Issues (20)

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.