Once there was a naïve Mongoose user who tried to run a Mongoose .find() over a whole collection and do operations on all of the documents found there. OK, maybe it was me, this morning. First approach It was something like this: SomeModel .find({}) .populate('someReferences') .exec(function(err, doc) { doStuff(doc); }); Can you guess what happened after that script churned on the collection for a while? Crash! This happened, node.

Continue reading

So, I’m coding happily, when I hear one of the guys in the office say: “Samurai, the backend crashed when I opened the iOS app.” This doesn’t sound good. Happiness has fled. I open a terminal window, press Ctrl+R, start to type hero and then my bash shell gives me this command from history (that I never otherwise remember): heroku logs --app OurAppName -t -n 5000: The dramatic claim of backend busted was not false.

Continue reading

Author's picture

Absurd Tech

Another Coder Blog