![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi69EhcbhUJPg5JvEyMWOOCkVKCCFr040afA8UENGuL7bhteh9wqdDekNhWDhaa8JbWv0ySyuib29EM4zPG0w5NchYtOk9aFuYLUkuyc28IlGLsBaCq1Llcpeiyy3xqYORpGk5/s200/IceCubes.jpeg)
Hi. I'm Jon Jagger, director of software at Kosli.
I built cyber-dojo, the place teams practice programming.
Agilis Deliberate Practice
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi69EhcbhUJPg5JvEyMWOOCkVKCCFr040afA8UENGuL7bhteh9wqdDekNhWDhaa8JbWv0ySyuib29EM4zPG0w5NchYtOk9aFuYLUkuyc28IlGLsBaCq1Llcpeiyy3xqYORpGk5/s200/IceCubes.jpeg)
Intention revealing #include ?
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmbuwrHmARLLKx36NS0iP80lVgbynamML6x1nvFejdsqtkbObVnEONPqKvkL-A5q2lzLmDG_xZ0zXHLnl_DsydlofoorSgSLGYQ8rVYZXskNntj_1TT0Z6hmldp_kU_ArM_-P/s200/cat-in-the-hat.jpeg)
#include "dice_thrower.hpp" #include <vector> class stub_dice_thrower : public dice_thrower { ... private: std::vector<int> stubbed; };
could be written like this:
#include REALIZES(dice_thrower.hpp) #include COMPOSES(vector) class stub_dice_thrower : public dice_thrower { ... private: std::vector<int> stubbed; };
Caveat emptor: I don't have any actual examples of this in real code. It's just an idea. It feels a bit like a solution looking for a problem. But I thought I would mention the idea here to see if anyone thinks it has any legs...
Subscribe to:
Posts (Atom)