Greg Reimer

Results 72 comments of Greg Reimer

+1 Definitely would be good to see a framework-agnostic core emerge as the ecosystem evolves. Especially once node hits 0.12 and koa approaches mainstream viability.

It was counter-intuitive, but I finally managed to isolate the last `else` by inserting `/* istanbul ignore else */` before the *second-to-last* step in the chain. ```ts if (val ===...

@fubar - I didn't mean to suggest my second example is how code should be written, but rather to illustrate what Istanbul sees when it parses my first example, in...

@getify You suggested putting the comment immediately above the first `if`. Instead, try putting it in the second-to-last position like this: ```ts if (thing) { // included } else /*...

Just blew my morning on this issue. It would be helpful if there was a warning visible somewhere in the documentation, or a change to fix the underlying probelm.

I've been having the same/similar issue. In my case I'm using `createCluster()`. The symptoms are that after a few minutes, Node.js will predictably crash with an unhandled `SocketClosedUnexpectedlyError`, even though...

I think it's best when in doubt to not assume something is a programmer error. Polygoat could punt the question to library authors. If they do this: ``` js function...

The way I always approach this problem is: 1. Get into a real-world mindset and assume the database list ("titles", in your case) would eventually grow to have more things...

In the past, seems like I've seen XHR requests report response code of "0" when the network is down or the host is unreachable.

Another option might be to use memoization. This is super-simplified, but hopefully shows the idea. ``` js function getUserById(id) { // call the REST service // return a promise }...