Commands and logging into mongo


I’ve decided to use the command pattern. I know that so far the domain part is small and therefore it is rushing things a bit. But I want to have small, but working application.
My idea was to log every command execution, with its content. Then it will be easy to find out who and in what way messed with our app. I’m using tactician. With it it is really easy to plug in logging middleware…
Continue reading “Commands and logging into mongo”

Approach at diet module, and important conclusions

Based on the earlier discussion, and my knowledge I’ve started implementing the diet module. So far It’s not enough code to write about. What is more important I’ve found out that my current implementation of patient module is rather procedural than objective. My mistake was to treat almost everything as data structure than living objects. Now It’s refactoring time! Continue reading “Approach at diet module, and important conclusions”