di icon indicating copy to clipboard operation
di copied to clipboard

di: Add more docs and examples

Open k0001 opened this issue 6 years ago • 2 comments

Particularly, explain why people should perhaps consider looking at di-core and stuff like that.

k0001 avatar May 07 '18 09:05 k0001

I also would like to see project examples which use di logging framework. I came up with almost same approach independently in one logging library. Looks like this way of logging is reasonable to many people... So I would like to see how di is actually used and what is users feedback. Thanks in advance!

chshersh avatar May 31 '18 08:05 chshersh

@ChShersh I don't know of projects using di yet other than my private own. To be fair, though, this makes sense to some extent, seeing how the most recent version of di (which changed radically from the one before, which I considered insufficient) was released very recently, and how little advertisement I have made. @cocreature mentioned some time ago that he was using di (more likely, di-core nowadays), but I don't know if he still is.

Seeing as most projects that do logging tend to be private, it would be nice to have a list (maybe in the README) where people using di could mention their projects if they wanted to. Interestingly, though, di (and more generally, di-core) makes it rather unobtrusive for libraries themselves to do logging by simply requiring that somebody provides a Di at some point (technically, MonadDi works as well, but that can be noisy in a library and not different from the dozen of mtl-like approaches to logging out there). I'm currently working on a migrations library that uses Di in this way.

k0001 avatar May 31 '18 14:05 k0001