Add a comment

 

Re: An architecturally-evident coding style

What I have found usefull, especially if you are not using some advanced stuff in mongo, is that you can easily replace a MongoCollection with a simple in memory list for testing. That is not so costly to implement (and you can reuse between different collections) and you are now able to test your components without a real Mongo. This way, you have no mock (only a reusable fake). Note that this does not work for complex stuff like geo indexes or fulltext indexes or advancet $set $push oerators.

Re: An architecturally-evident coding style


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).