[tor-bugs] #12868 [metrics-lib]: cyclic dependency

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 18 17:02:38 UTC 2014


#12868: cyclic dependency
-----------------------------+---------------------
     Reporter:  iwakeh       |      Owner:  karsten
         Type:  defect       |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  metrics-lib  |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+---------------------

Comment (by iwakeh):

 Well, dependency injection is interesting, but

  * The code for using the framework might be more overhead than other
 solutions.
  * Using dependency injection would also affect the metric-lib
 clients/users. How would they be affected?

 The metric-lib descriptor functionality is tied to heavy file io and url
 reading (afaik). In such a setting the additional abstraction level of
 dependency injection could be troublesome (i.e. Exception handling)?

 (I sound negative here. Maybe, I am a bit of "devil's advocate" in this
 case.)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12868#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list