I recently got to grips with interacting with MongoDB via the Mongoose library in Node.JS. That sentence is more of an ordeal than the actual process, which is straightforward enough — if you follow this handy guide!
Functions in JavaScript are ‘first class’, which means they are treated like any other variable — including being passed to or returned from other functions.
This is a short story about a test I couldn’t get to pass and what it taught me about 3 things:
I am continually delighted at the methods and syntax in Ruby which allow you to carry out complex operations with minimal lines of code.