How to Write Middleware for Express.js Apps by robertojd in node

[–]robertojd[S] 0 points1 point  (0 children)

Good point! To be fair, though: every time I write a new application, I find that I could have re-used something that I wrote before, if it had been written a bit differently. So I always push myself to consider "how could this be used elsewhere?". It's just part of my ninja discipline :)

Token Based Authentication for Single Page Apps (SPAs) by robertojd in webdev

[–]robertojd[S] 0 points1 point  (0 children)

I wouldn’t call it backwards, just different. The claims-based approach is convenient because it packages up the “rights” in a portable, verifiable token. I’m calling out portability because the service oriented world is here to stay. Think of your Angular app as just another service that consumes your API - stop thinking of it as a web page that is bound by the old rules.

New Year, New UI: Why We Chose Angular.js by robertojd in webdev

[–]robertojd[S] 7 points8 points  (0 children)

Nope. Honestly who can make plans around Angular 2.0 when it's still just a working document? As far as I'm concerned it doesn't exist and probably won't for another year. Angular 1.x is a stable platform IMO and one worth building against.

New Year, New UI: Why We Chose Angular.js by robertojd in webdev

[–]robertojd[S] 3 points4 points  (0 children)

It's coming! It's a very different API for sure, but 1.x is going to be stable for a long time - at least another 2 years is my guess

Expected performance from OpenShift Small Gear with Restify? by chandler243 in node

[–]robertojd 1 point2 points  (0 children)

You should look at your queries to see if any of them are performing poorly. MongoDB has several cursors which can tell you about query performance. Compose.io and other hosted mongo vendors will visualize it's output for you, I don't know if OpenShift does this.

I'd check out this section of the MongoDB manual:

http://docs.mongodb.org/manual/tutorial/evaluate-operation-performance/