Tell me more ×  I am preparing a short (1-2 hour) presentation
about DIP to several (~5) junior developers (1-3 yr xp) in the
office. At the end of the presentation I want to know whether
they understood what I was presenting, what are some possible
questions that I ask in order to figure out their understanding?
Maybe something that can be answered and explained by them in 3
minutes or less?  share|improve this question add comment  3
Answers  With regard to patterns, I often find myself in the
situation that I don't fully understand and much less appreciate
the pattern until I can explain why it is a better solution than
a different pattern/style in a given situation.  Therefore, I
would present examples that precisely don't use dependency
injection and let the audience point out concrete difficulties
that these code snippets have (with regard to modularity,
testability), etc.  As a concrete example, show code of the
kind:  def sendMessage(msg):   if len(msg) > 160:     raise
MessageTooLongException('messag