Quick tutorial on Casbah, Scala’s MongoDB driver

(image from http://www.digitalcraftstudios.com)

For the past couple of months I have been playing with Scala, Casbah (Scala’s MongoDB driver) and Salat (a serialization library for json and bison).

For the most part, it’s been a fun experience, although the documentation on Casbah is not as great as I would have hoped. A guide does exists, but is not exhaustive. If like me you find yourself spending quite a bit of time looking for things not contained in it, here are some code snippets and I hope can act as a tutorial of sort on how to perform certain operations using Casbah.

Continue reading “Quick tutorial on Casbah, Scala’s MongoDB driver”

Advertisements
Quick tutorial on Casbah, Scala’s MongoDB driver

The ideals of the Ronin Engineer

I had previously mentioned that, in my preparation of my future book, I would be posting excerpts on my blog for the world to see. The topic of my book is centered around Software Engineers, and the ideals of a Ronin Software Engineer.

“there is nothing outside of yourself that can ever enable you to get better, stronger, richer, quicker, or smarter. Everything is within. Everything exists. Seek nothing outside of yourself.” ― Miyamoto Musashi, The Book of Five Rings

Continue reading “The ideals of the Ronin Engineer”

The ideals of the Ronin Engineer

Using C# dynamic type to build a datalayer

The dynamic type enables the operations in which it occurs to bypass compile-time type checking. Instead, these operations are resolved at run time. The dynamic type simplifies access to COM APIs such as the Office Automation APIs, and also to dynamic APIs such as IronPython libraries, and to the HTML Document Object Model (DOM) – Big Mike

I have always been fascinated by the dynamic keyword that was introduced in C# 4.0, but never got around to looking deeper into it…until today.
Continue reading “Using C# dynamic type to build a datalayer”

Using C# dynamic type to build a datalayer