November 8, 2015

Universal Guard for C++

When writing C++ code which deals with low-level system API (e.g. ::open  / ::close) it’s common to write various in-place guard classes. E.g.:

However it’s very annoying (need to replicate similar code for different APIs), inconvenient and pollutes the code. Recently I’ve realized that an universal guard could introduced using mix of   std::function and lambdas. (more…)

metracer – No Runtime Dependencies + Nice Indentation

Based on my experiments with adoption of metracer to JavaEE (link) a new version of metracer 1.0.5 was released. Source code of new 1.0.5 version: svn co https://github.com/kocherovms/develorium.com/tags/metracer_1.0.5/metracer

(more…)