Hacker Newsnew | past | comments | ask | show | jobs | submit | morghus's commentslogin

I would add beautiful people as well: https://www.youtube.com/watch?v=ewr-vzw4ZWo


Part I dislike most is that all this publicity just increases their exposure and probably their profits too.

I don't see how you could stop people like this and can't help but wonder how much good the backlash is actually doing.


We really have no way of knowing for which purpose or in which way any data that is collected about us is used by any company/person/entity.


Oversight by whoever dared leak this.


Kudos to the leaker. I am quite happy to contribute to a patreon page or the ACLU or whoever that makes sure these whistle blowers are taken care off.


Yes, except you can't do the most basic things with DocumentDB and it becomes very expensive very fast. Especially if you want multiple collections.

There's a lot lacking with DocumentDB, as evident from the feedback forum, that comparing it to Mongo is like comparing an infant to an adult. The infant might be cute, but it can't do a whole lot.

https://feedback.azure.com/forums/263030-documentdb/filters/...


To build something similarly sized with the free version of Mongo would also be expensive. It's a trade off.


Can anyone explain why this pattern doesn't work? Or point me to some resource?

  function myApiFunc(callback)
  {
    /*
     * This pattern does NOT work!
     */
    try {
      doSomeAsynchronousOperation(function (err) {
        if (err)
          throw (err);
        /* continue as normal */
      });
    } catch (ex) {
      callback(ex);
    }
  }


Try/catch is not async and exceptions do not bubble up through the async context, which makes sense as the caller moved on with execution. Try this in your console:

    try {
        console.log("see, ");
        setTimeout(() => {throw new Error("oops")}, 100);
        console.log(
            "I can't assume here that"
            + " the prev. line succeeded"
        );
    } catch(e) {
        console.log("error!");
    }



much obliged


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: